mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 14:28:40 +00:00
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>
This commit is contained in: