tests/semantic: NSA address lists are live-ins of read_before_write_vgprs and reg_reads_writes (TEST-NSA-VLIST-LIVENESS) #894
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!894
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/894/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@qhukz13 on GitHub · 2026-11-24 15:01 UTC · original
qhukz13:cont/nsa-vlist-liveness→main· +18 −0 · 1 files · 1 commits · merged 2026-11-24 15:50 UTCClaimed in the coordination issue as: TEST-NSA-VLIST-LIVENESS
What and why
read_before_write_vgprsandreg_reads_writesintools/rdna2spirv.pyadd the registers of an NSA address list (regs += x["r"]for avlistoperand, lines 16678 and 16939 onmain), but no test reached that line. Withtools/semantic_mutants.pyfrom #734, removing either line survived all twelve test files that name these functions, run together; everything else in the two functions was caught.tests/semantic/test_store_liveins.pynow checks:image_sample v0, [v2, v3], ...: reads{2, 3}, writes{0};image_load v[4:7], [v2, v5, v9], ...: reads the non-contiguous{2, 5, 9}(a range from v2 would read v2..v4 and miss v5 and v9), writes{4..7};v_mov_b32 v5, 0: only v2 and v9 are live-ins forread_before_write_vgprs.Test only, no translator change.
Tested
python -m unittest discover -s tests/semantic -p test_store_liveins.py: 4 tests OK.semantic_mutants --function read_before_write_vgprs/--function reg_reads_writeswith this file: the line-16678 and line-16939 removals now fail it (3 failures each).tests/test_semantic_translator_use.py,scripts/check_no_game_data.py: OK.Linux, CPU only; no GPU, no game files.
AI-assisted (Claude Code).
🤖 Generated with Claude Code
@LewisStephens99 on GitHub · 2026-11-24 15:13 UTC · original
Independent verification on Windows 11, Python 3.14:
n-python -I tests/test_audit_shader4_regs.py: 20/20 passed.n- No game data or GPU used. AI-assisted.