Commit Graph

1 Commits

Author SHA1 Message Date
1b88414e61 Tests: s_andn2_saveexec_b64 and s_andn2_wrexec_b64 on wave64, GPU and CPU
Neither instruction had a test (the _b32 forms are in #1299). The translator
needs no change: both pass.

- runtime/test/shaders/cs_w64x_andn2_exec.asm: one 64-lane wave. Each result
  has lanes in one half of the wave only, so an EXEC or an SCC taken from the
  other half alone shows; D is checked to be the old EXEC for saveexec and the
  new one for wrexec. In check.py and run_gpu_tests.py as a wave64 dump.
- tests/semantic/test_andn2_exec_b64.py: 12 pairs of S0 and EXEC for each
  instruction on all 64 lanes, against the ISA's definition written as
  integers; also runs the GPU test's fixture.

Run on an RX 9070 XT (AMD 26.11.2, Windows 11): passes natively 64-wide and
with LEONIDA_W64_EMULATE=1; the whole GPU suite is 127/127 both ways and the
semantic suite 1175 tests OK. Breaking either instruction in the translator
(D of wrexec = the old EXEC, D of saveexec = the new one, andn2 as and) fails
the GPU test and 13 CPU subtests.

AI-assisted (Claude Code).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:22:13 +01:00