Repository navigation
test(semantic): add SALU 64-bit logic bundle suite - #5849
Open
slopgobblercobbler wants to merge 33 commits into
Open
slopgobblercobbler wants to merge 33 commits into
slopgobblercobbler wants to merge 33 commits into
Conversation
Contributor
|
Tested d897f93 merged with main 561b65a on Ubuntu (WSL2) / Python 3.12.16: pass tests/semantic/test_salu_logic_b64_bundle.py: 96 run, 96 passed, 0 failed (test-only PR, one file). Negative control: the new tests pass on unmodified main code as expected (nothing to revert); with a mutation in tools/rdna2spirv.py making s_nand/s_nor/s_xnor_b64 skip the final OpNot ( |
This was referenced Nov 23, 2026
|
Mutation check of the current head with a generic run ( Survivors:
AI-assisted (Claude Code). No game files. |
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.
Summary
Implement Bundle 4 (SALU 64-bit Logic Suite, 32 commits) in
tests/semantic/test_salu_logic_b64_bundle.py.Coverage
Comprehensive test suite covering all 8 RDNA2 64-bit scalar ALU bitwise logic operations:
s_and_b64:D = S0 & S1, SCC = (D != 0)s_or_b64:D = S0 | S1, SCC = (D != 0)s_xor_b64:D = S0 ^ S1, SCC = (D != 0)s_andn2_b64:D = S0 & ~S1, SCC = (D != 0)s_orn2_b64:D = S0 | ~S1, SCC = (D != 0)s_nand_b64:D = ~(S0 & S1), SCC = (D != 0)s_nor_b64:D = ~(S0 | S1), SCC = (D != 0)s_xnor_b64:D = ~(S0 ^ S1), SCC = (D != 0)Staging Structure (4 granular commits per opcode, 32 commits total)
For each opcode:
rdna2spirv, shader execution verification throughspirv_mini_interp, SCC status flag verification (zero and nonzero), and syntax rejection controls.Verification
py -3.10 -I tests/semantic/test_salu_logic_b64_bundle.pypy -3.10 -I tests/test_semantic_translator_use.pypy -3.10 -m compileall -q tests