Commit Graph

1 Commits

Author SHA1 Message Date
f4edee1530 tests/semantic: s_or_saveexec_b32/b64 run lane by lane
s_or_saveexec_b32 is translated but nothing in tests/ or the fuzzers ran it.
The new test translates a synthetic compute shader per case and runs every
lane in lockstep with spirv_mini_interp.run_workgroup, in wave32 (_b32) and
native wave64 (_b64), and checks per lane the new EXEC bit, the D bit and
SCC against the RDNA2 ISA pseudocode (section 12.3, opcodes 37 and 61):
D = EXEC; EXEC = S0 | EXEC; SCC = (EXEC != 0).

D is preset to all ones and SCC to the opposite of the expected value, so a
result the translator never writes cannot pass. --wave64-emulate is checked
to translate only (the interpreter does not run its workgroup barriers).
2026-11-22 11:53:17 +01:00