Repository navigation
test(semantic): add translator tests for s_nand_b64 - #5646
Open
slopgobblercobbler wants to merge 8 commits into
Open
slopgobblercobbler wants to merge 8 commits into
slopgobblercobbler wants to merge 8 commits into
Conversation
|
Tested
No GPU, no game data. AI-assisted. |
Contributor
|
Tested 441002a merged with main 561b65a on Ubuntu (WSL2) / Python 3.12.16: pass tests/semantic/test_salu_nand_b64_hw.py: 18 run, 18 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, 2 of 18 fail. Overlap note: open PR #5628 adds tests/semantic/test_salu_nand_b64.py for the same instruction, and #5849 adds a SALU 64-bit logic bundle that also covers s_nand_b64, so the three overlap in coverage. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds translator-backed regression tests and reference oracle for
s_nand_b64intests/semantic/test_salu_nand_b64_hw.py.Covers:
sdst = ~(ssrc0 & ssrc1)andSCC = (sdst != 0)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_hw.py(All test suites OK)unittest,struct,math)upstream/main