Repository navigation
Preserve far-branch re-anchoring checks - #8764
Open
nova-aryan wants to merge 1 commit into
Open
nova-aryan wants to merge 1 commit into
nova-aryan wants to merge 1 commit into
Conversation
Grimkeh
reviewed
Nov 23, 2026
Grimkeh
left a comment
There was a problem hiding this comment.
Independent Linux CPU review (7862c6c9)
What changed: preserve far-branch re-anchoring checks in rdna2spirv; design.md + semantic tests.
Checked: test_far_branch 7 OK.
Looks correct; no game files.
|
Tested
No game files. AI-assisted (Devin). |
|
Verified head
( |
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.
Claimed in the coordination issue: Far-branch folding preserves re-anchoring checks
What and why
The far-branch fold recognized four instructions by mnemonic and operands. The disassembler's re-anchoring path can leave address gaps or mark instructions whose printed encoding differs from the native word. Substituting a single branch could hide those conditions from the reachability checks.
Require contiguous encoded instructions and preserve normalized instructions for the existing validation. Update the compiler contract and exercise the full translation path with synthetic fixtures. The valid control still jumps over an undecodable word after the complete sequence and writes the expected pixel.
Tested
867d922, the three gaps inside the sequence and the normalized instruction all translated successfully. The new regression cases now reject them. The positive control and existing forward and backward jump cases pass.test_image_atomics_guardandtest_image_store_d16. The documentation row check also reproduces the baseline failure for duplicate rows indocs/README.md.git diff --checkand the changed-file game-data check passed. CPU-only tests with synthetic inputs.AI-assisted: Yes (Codex).