Repository navigation
fix(native): store the mask plane of wide two-state values - #2425
Merged
mergify[bot] merged 1 commit intoOct 28, 2026
Conversation
On the native x86 and arm64 backends, a store wider than 64 bits into a
4-state variable wrote its mask plane only when the source register had
wide mask chunks. A wide register loaded from a 2-state variable, or
produced by a 2-state operation, has at most a scalar mask, so the
destination kept a stale mask and read back as X or Z.
This showed up in 4-state simulation of a concatenation assignment from a
2-state value wider than 64 bits in a process, `{x, y, z} = w`: the value
is captured in a 4-state temporary and its slices are assigned, so the
targets read 0 (or X for 4-state targets), while Cranelift and wasm gave
the right values. The store now always writes every mask bit: the source's
wide mask chunks when it has them, otherwise its scalar mask for the low
chunk and zero above.
Change-Id: If46d411b2f1bc2e1aa4f99f79033b09df4e11067
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
✅ Merged into
|
| Condition | Required by | |
|---|---|---|
| ✅ | check-success = Conventional Commit title |
— |
| ✅ | check-success = Queue validation |
— |
| ✅ | any of: check-success = @github-actions/Lint & Format, check-neutral = @github-actions/Lint & Format, check-skipped = @github-actions/Lint & Format |
GitHub repository ruleset rule master |
| ✅ | any of: check-success = @github-actions/Rust Test & NAPI Build, check-neutral = @github-actions/Rust Test & NAPI Build, check-skipped = @github-actions/Rust Test & NAPI Build |
GitHub repository ruleset rule master |
| ✅ | any of: check-success = @github-actions/JS Test (Ubuntu), check-neutral = @github-actions/JS Test (Ubuntu), check-skipped = @github-actions/JS Test (Ubuntu) |
GitHub repository ruleset rule master |
| ✅ | any of: check-success = @github-actions/Conventional Commit title, check-neutral = @github-actions/Conventional Commit title, check-skipped = @github-actions/Conventional Commit title |
GitHub repository ruleset rule master |
| ✅ | any of: check-success = @github-actions/Queue validation, check-neutral = @github-actions/Queue validation, check-skipped = @github-actions/Queue validation |
GitHub repository ruleset rule master |
Times in UTC · dashboard · how the merge queue works
This was referenced Oct 28, 2026
mergify
Bot
deleted the
stack/tignear/fix/native-wide-concat/store-mask-plane-wide-two-state-values--f46d411b
branch
October 28, 2026 12:03
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.
On the native x86 and arm64 backends, a store wider than 64 bits into a
4-state variable wrote its mask plane only when the source register had
wide mask chunks. A wide register loaded from a 2-state variable, or
produced by a 2-state operation, has at most a scalar mask, so the
destination kept a stale mask and read back as X or Z.
This showed up in 4-state simulation of a concatenation assignment from a
2-state value wider than 64 bits in a process,
{x, y, z} = w: the valueis captured in a 4-state temporary and its slices are assigned, so the
targets read 0 (or X for 4-state targets), while Cranelift and wasm gave
the right values. The store now always writes every mask bit: the source's
wide mask chunks when it has them, otherwise its scalar mask for the low
chunk and zero above.