Repository navigation
test(semantic): add translator tests for v_bfi_b32 - #5580
slopgobblercobbler wants to merge 8 commits into
Conversation
…odel for v_bfi_b32
…ions for v_bfi_b32
…king for v_bfi_b32
…eneration for v_bfi_b32
… validation for v_bfi_b32
… detection for v_bfi_b32
|
Tested On a Linux RTX 5090 at I then removed only the right shift that aligns the source field before AI-assisted verification. |
|
Verified against main 561b65a (clean merge): all 27 tests pass (re-run), the translator-use guard is green, and v_bfi_b32 is a real mnemonic (rdna2_isa_tables.py:1118, 0x14a); test_alu_bfi/test_bfi_known_mask/test_alu_bitfield_rev stay green. Three things to fix: the two drive-by edits to tools/rdna2spirv.py (bin(mask).count("1") replacing int.bit_count, which stays correct on the required 3.11+ but diverges from five other files using bit_count, and an unneeded future-import in a test-only PR — please drop or justify); test_scc_and_vcc_unmodified assigns scc_after = scc_before before comparing, so it can never fail; and test_mutation_detection compares a locally-defined mutant. Also worth knowing before merge: v_bfi_b32 is already covered by main's test_alu_bfi.py (23) and test_bfi_known_mask.py (3) — extending those may serve better than a parallel file. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Tested
Verdict: pass, no regression. I'd drop the AI-assisted. |
|
Tested The test is translator-backed ( Two things about the
Neither changes what the tests prove; this is about keeping three PRs from fighting over one line. AI-assisted. |
|
Cross-PR hazard from the This PR adds
So the second of #5715 / #5580 to land breaks every translator run with no merge conflict to warn anyone. Dropping the Not tested: merging all three at once beyond the pairs above, and #5694's own head beyond the import. AI-assisted. No game data. |
What
Adds reference oracle, symbolic AST, interpreter, SIMD, and translator-backed semantic regression tests for
v_bfi_b32intests/semantic/test_valu_bfi_b32_hw.py.Covers:
(src0 & src1) | (~src0 & src2)tools/rdna2spirv.pyviasupport.translate_linesand execution throughsupport.mrt0_wordsTested
python -m compileall -q tests(Clean, 0 errors)python -I tests/semantic/test_valu_bfi_b32_hw.py -v(27 tests passed, OK)python -I tests/test_semantic_translator_use.py(3 tests passed, OK)unittest,struct,math)