Repository navigation
test(semantic): add Bundle 5 LDS swizzle and sub-dword memory suite - #5866
slopgobblercobbler wants to merge 29 commits into
Conversation
… for ds_swizzle_b32
… for ds_permute_b32
… for ds_bpermute_b32
… for ds_write_b16
… for ds_write_b32
|
Tested 578dcc0 merged with main 561b65a on Linux (WSL2), Python 3.12.16 -I: pass tests/semantic/test_lds_memory_swizzle_bundle.py: 40 run, 40 passed, 0 failed. Negative control: the PR is test-only, so the new tests also pass on main as coverage; I mutated tools/rdna2spirv.py so ds_read_i16 zero-extends instead of sign-extending, and 1 of the 40 failed (file restored afterwards). |
…and swizzle tests
|
Mutation check of the current head with a generic run ( Survivors that matter:
Not worth a case: AI-assisted (Claude Code). No game files. |
Description
This pull request implements Bundle 5: LDS Swizzle & Sub-Dword Memory Suite in
tests/semantic/test_lds_memory_swizzle_bundle.py.The test bundle provides 28 atomic commits (4 granular commits per opcode) covering 7 LDS swizzle and sub-dword memory instructions:
ds_swizzle_b32: cross-lane quad permute (QUAD_PERM) and bitmask permute (BITMASK_PERM)ds_permute_b32: forward (scatter) cross-lane permuteds_bpermute_b32: backward (gather) cross-lane permuteds_read_u16: 16-bit unsigned sub-dword load with zero extensionds_read_i16: 16-bit signed sub-dword load with sign extensionds_write_b16: 16-bit halfword store with byte preservationds_write_b32: 32-bit dword store into LDSFor each opcode, the four commit stages cover:
Verification
python -I,unittest,struct,math)python -m compileall -q testspython -I tests/semantic/test_lds_memory_swizzle_bundle.py(40 tests passing)python -I tests/test_semantic_translator_use.py(all tests passing)