Repository navigation
Conversation
salu64 checked o.size == 32 for ins[1] (shift amounts / bfe controls) but unconditionally called read64 on ins[0]. In s_bfm_b64, SSRC0 is a 32-bit operand (rdna2_spec.rs), so passing m0 (124), exec_hi (127), or s105 failed translation with Err(op) because code64 rejects them as 64-bit register pairs. Use the same o.size == 32 check for both salu64 source operands, with a GPU test for s_bfm_b64 using m0 and s105 across wave32 and split wave64. Assisted-by: OpenCode (Gemini 4 Neon)
This was referenced Nov 24, 2026
Owner
Author
|
Upstream PR xcl-dev#1159 was closed or merged. |
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.
salu64checkedo.size == 32forins[1](shift amounts ands_bfecontrols) but unconditionally calledread64onins[0]. Ins_bfm_b64,SSRC0is a 32-bit operand (rdna2_spec.rs), so passingm0(124),exec_hi(127), ors105failed translation withErr("op")becausecode64rejects them as 64-bit register pairs.This uses the same
o.size == 32check for bothsalu64source operands.What is in it
crates/xcl/src/gpu/recomp/emit.rs: read 32-bitins[0]operands withread()instead ofread64()insalu64.crates/xcl/src/gpu/recomp/tests.rs: add GPU testgpu_s_bfm_b64_accepts_32bit_ssrc0testingS_BFM_B64withm0ands105across wave32 and split wave64 (verified failing translation before the fix).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 742 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2no wave64—gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware)cargo test -p xcl --lib gpu_s_bfm_b64_accepts_32bit_ssrc0: 1 passed, 0 failed across wave32 and split wave64 (failed withs_bfm_b64: opbefore the fix)Regression run
main:
PR:
Not tested
AI use
emit.rs, wrote the fix and GPU test, ran the test suite andscripts/smoke.ps1regression runs, and drafted this PR description.Mirror of xcl-dev#1159 (auto-synced, do not edit).