tools: check float compares and v_cmpx over whole waves with a partly active EXEC #348
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/348"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-28T00:38:15Z.
What
A GPU check for the float compares: all 16 predicates of
v_cmp_*_f32andv_cmpx_*_f32, andv_cmp[x]_class_f32, for T2 (#333) and T3 (#334). Each result is read the way a whole wave reads it. That means some lanes are inactive on entry, programs run in wave32, wave64 and the paired form a 32-lane host uses, and av_cmpxresult is read from EXEC, from a write after it, and from a branch on an empty EXEC.s_denorm_modekeeps them; class reads the raw bits.s24also zeroess25. A compare's destination is one register in wave32.s_cbranch_execzafter av_cmpxis decided per lane. A scalar written inside the block then reaches only the lanes still in EXEC, while on the console it reaches the whole wave. The paired translation gets this right.It depends on #347, the first-lane ballot. Without it the RTX 5090 loses the device partway through, as described there.
Results
The two cards differ from the model only in the two expected faults:
I checked the expected-failure model offline against both receipts. It predicts exactly which cases fail, and the first wrong word of every failing output: 2,491 on AMD and 1,503 on NVIDIA. No passing case is predicted to fail. These runs predate the expected-failure table, so the check still needs a rerun on both cards in its current form.
tests/test_float_compares_reference.py.🤖 Generated with Claude Code