Commit Graph

3 Commits

Author SHA1 Message Date
e8f5997f71 test_ballot_votes: every lane writes its own slot after EXEC is restored
From @whattheflop's review of #3261: the per-lane stores ran before s_and_saveexec and only two wave-wide values
after the restore, so a restore that came too late passed for every nonempty mask. Each lane now writes a mark
after the restore and every slot is asserted. Moving the restore below that store fails all 19 nonempty masks
(8 wave32, 11 wave64); the listing as written passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:11:26 +01:00
f9de6c128e tests/semantic: ballots and votes through the translator; drop the v_dot2acc_f16_f16 model (TEST-603)
test_ballot_votes.py modelled OpGroupNonUniform* in its own Python interpreter and never translated anything, so
it passed whatever tools/rdna2spirv.py did. It now translates a wave64 and a wave32 compute listing and runs every
lane with spirv_mini_interp.run_workgroup: a lane mask built in VCC from s4:s5, read through s_bcnt1, s_ff1,
s_cmp_eq vcc/exec (vote all), s_cmp_lg vcc/0 (vote any), a per-lane v_cndmask, and s_and_saveexec with
v_readfirstlane and s_bcnt1 exec (then EXEC restored), over 12 wave64 and 9 wave32 masks (lane 31/32 edges,
halves, checkerboards). Expected values come from the input pattern only.

Mutating the translator so s_bcnt1 or s_ff1 drop the high half of a lane mask fails the new file (8 and 3
failures); the old file passed 31/31 under both.

test_alu_dot2acc_f16.py is removed: v_dot2acc_f16_f16 is no RDNA2 instruction (llvm-mc 21.1.8: "invalid
instruction" for gfx1013, gfx1030 and gfx1100), the f16 dot2 forms that do exist (v_dot2_f32_f16,
v_dot2c_f32_f16) are not on gfx1013 and the translator implements none of them, so there is nothing to translate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 20:56:18 +01:00
1d5cad4f98 test(semantic): add whole-wave subgroup ballot equality and comparison tests 2026-11-21 19:07:02 +01:00