Repository navigation
Conversation
…ector-only blocks
… of the sample_b flow check
added 8 commits
November 26, 2026 07:23
- a voted block may hold only instructions whose destinations are VGPRs (no carry-out, compare, readlane); - s_endpgm in a voted block only when no EXEC write follows the branch; - a scalar EXEC write from a non-mask source (s_mov exec, 1) records a lane-exec break. Three refused fixtures with recorded words; each fails on the previous 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.
Part of #1723
What this unblocks:
image_sample_b/image_get_lodafters_wqm_b64 exec, execon a lane-narrowed EXEC (a kill or cmpx followed by a whole-quad restore), which was refused as a lane-EXEC break.Stacked on #2736 (this branch contains its commits until that merges; the new work is the last two commits). Builds on #2659.
What changed
s_wqm exec, execon a narrowed EXEC is lowered asexec = x2w_quad_any(exec) ? 1u : 0u;: the guest turns on every lane of a quad with an active lane, which is exactly the vote the branches already use. It is taken only where the quad runs the statement together (uniform_cfholds, no earlier lane-EXEC break, pixel program without a backward branch).s_wqmforms (other operands) still break and stay refused.s_wqmis still not voted (the startup: keep sample_b and get_lod past a divergent EXEC with a per-quad vote #2736 vector-only gate), so the op is refused there.Tests
wqm(cmpx, thens_wqm_b64 exec, exec, then the subtraction, then the op) instartup_image_sample_b_flow_check.pyandstartup_image_get_lod_flow_check.py: u1 = 1/8 when the whole quad is back on, 5/8 if s_wqm were a no-op. Mutant "s_wqm as a no-op" must fail the draw. Words reassemble with llvm-mc.wqm_breakrefused fixture of startup: keep sample_b and get_lod past a divergent EXEC with a per-quad vote #2736 became this accepted fixture.Verification (Linux only):
Win2025 WARP dev+release: pending Stage-2.
AI-assisted; commands listed were executed locally.