Commit Graph

2 Commits

Author SHA1 Message Date
3d910f1f63 test_lds_src2: feed llvm-mc through stdin, so a WSL LLVM_MC can read it (TEST-LDS-SRC2-MC-STDIN)
assemble() wrote the listing to a temporary file and passed its path to
llvm-mc. With LLVM_MC set to the WSL form tools/mc_command.py documents
(wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc), llvm-mc runs inside WSL
and cannot open the Windows path, so every EncodingTests subtest failed
("No such file or directory") instead of checking the encodings. It now
reads stdin, as tools/shader_disasm.py does; the text is ASCII either way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 11:09:49 +01:00
May
be60ba3fc4 tests/semantic: pin the DS src2 forms as refused, checked against gfx1013 (TEST-738)
test_lds_add_sub_src2_u32.py was a stand-alone model of ds_add_src2_u32 and
ds_sub_src2_u32 that never ran the translator and wrote the ops with
offset0/offset1. Replace it with test_lds_src2.py:

- RefusedTests: all 31 ds_*_src2_* forms (with no offset, offset:4 and
  offset:65535) raise Unsupported naming the op in tools/rdna2spirv.py; the
  plain ds_add_u32 is the control that the program reaches the translator.
- EncodingTests (skipped without an AMDGPU llvm-mc): gfx1013 assembles every
  form as DS opcode 0x80-0x95 / 0xc0-0xd3 with one 16-bit offset, gfx1030
  rejects all of them, and offset0:/offset1: is not their operand form.

Found by @Vonsek.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:13:19 -03:00