Commit Graph

3 Commits

Author SHA1 Message Date
7c59c185b0 tests/semantic: wave32 s_cbranch_vccz/vccnz read vcc_lo only (TEST-W32-VCCZ-VCC-HI)
In wave32, VCC is vcc_lo alone and vcc_hi is an ordinary SGPR. branch_condition reads %vcc_hi only under wave64
(`if g.wave64 and "vcc" not in g.cur_masks`), as test_control_flow_vcc.py's reference model (eval_vccz masks VCC to
the wave size) assumes, but no test pinned it: with tools/semantic_mutants.py, `and -> or` on that line survived all
four test files that reach branch_condition, run together.

A wave32 class next to the wave64 one in test_wave64_vcc_data_branch.py runs the same programs without the 64-bit op
that selects wave64, as two 32-lane subgroups, with SGPR-sourced and constant VCC writes: vcc_lo = 0 and vcc_hi != 0
takes s_cbranch_vccz. The mutant now fails the file (4 failures).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:33:10 +02:00
b88fdeaacd test: cover constant VCC half writes in wave64 branches 2026-11-22 14:11:32 -06:00
a6d559c301 rdna2spirv: test both VCC halves in wave64 VCCZ/VCCNZ branches 2026-11-22 13:58:07 -06:00