Repository navigation
test(semantic): add translator tests for s_nand_b64 - #5628
slopgobblercobbler wants to merge 8 commits into
Conversation
|
Tested
No GPU, no game data. AI-assisted. |
|
Tested 38a51c7 merged with main 561b65a on Ubuntu (WSL2) / Python 3.12.16: pass tests/semantic/test_salu_nand_b64.py: 38 run, 38 passed, 0 failed (test-only PR, one file). Negative control: the tests pass on unmodified main code as expected (no source change); with a mutation in tools/rdna2spirv.py removing s_nand_b64 from the set that gets the final OpNot, 10 of 38 fail. Overlap note: open PR #5646 adds tests/semantic/test_salu_nand_b64_hw.py for the same instruction (18 tests), and #5849 adds a SALU 64-bit logic bundle covering s_nand_b64 as well. |
|
Verified against current main 1cc6e3c (re-merge-tested green; suite re-run here): 38 tests OK via unittest discover, translator-use guard green, neighbouring test_salu_nand_nor_saveexec_b64.py green. Every mnemonic exists in tools/rdna2_isa_tables.py, five tests drive the real translator via translate_lines, classes sit above unittest.main(), and the IEEE bit-pattern reading of NAND is the sound one. No filename or opcode collision with existing suites. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
What
Adds translator-backed regression tests and reference oracle for
s_nand_b64intests/semantic/test_salu_nand_b64.py.Covers:
D.u64 = ~(S0.u64 & S1.u64))s[0:1] = s[0:1] NAND s[2:3], partial window overlaps)tools/rdna2spirv.pyviasupport.translate_linesspirv_mini_interpTested
python -I)python -I tests/test_semantic_translator_use.py(Passes translator reachability check)python -I tests/semantic/test_salu_nand_b64.py(All test suites OK)unittest,struct,math)upstream/main