Tests: check v_movrelsd_b32 and v_movrelsd_2_b32 on the GPU #1174
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1174
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1174/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@microwave805 on GitHub · 2026-11-24 12:51 UTC · original
microwave805:gpu-tests-v-movrelsd→main· +63 −0 · 1 files · 1 commits · closed without mergingAdds GPU coverage for
v_movrelsd_b32andv_movrelsd_2_b32incrates/xcl/src/gpu/recomp/tests.rs(existinggpu_packed_math_dots_movrelonly exercisesv_movrels_b32andv_movreld_b32).What is in it
crates/xcl/src/gpu/recomp/tests.rs: addgpu_v_movrelsd_and_movrelsd_2alongsidegpu_v_swaprel_b32, checking:v_movrelsd_b32(vdst[+M0] = src[+M0]) with all lanes active, under an even-laneEXECmask (inactive lanes keep their original values), and as an overlapping self-copy (v11 = v11);v_movrelsd_2_b32(vdst[+M0[25:16]] = src[+M0[9:0]]) with non-zero upperM0bits (0xFC00_FC00) masked out and under an odd-laneEXECmask;Tested
cargo test -p xcl --lib gpu_v_movrelsd -- --nocapture: 1 passed, 0 failed.\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 742 passed, 0 failed, 41 ignoredgpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64)python -I scripts/pr_check.py --localon this PR's description and changed files:description okRegression run
crates/xcl/src/gpu/recomp/tests.rs(test-only).Not tested
AI use
v_movrel*coverage inemit.rs/tests.rs, wrote the GPU test and this PR description, and ran the test commands above.github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@DavidM1911 on GitHub · 2026-11-24 13:06 UTC · original
Independent verification on current
main384f7f7(branch already contains it — clean).Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug; DXC 1.8.2502.11.
cargo test -p xcl --lib movrelsd: 2 passed, 0 failed —gpu_v_movrelsd_and_movrelsd_2plus the mask-analysis test.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@bjarngard on GitHub · 2026-11-24 13:24 UTC · original
Test report for head
c88c74f(AMD, native wave64)Tested
XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored, no SKIPPEDXCL_REQUIRE_GPU=wave64:gpu_v_movrelsd_and_movrelsd_2passedNot tested: retail titles, RDNA3/RDNA4.
AI use: the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output.
@JoaoPauluu on GitHub · 2026-11-24 13:45 UTC · original
A run on Linux with vkd3d-proton, where the shaders go through dxil-spirv to Vulkan instead of a Windows driver's DXIL compiler.
Tested
x86_64-pc-windows-gnu.c88c74fas it is (based on47efa2e), no uncommitted changes. The lib test binary runs under Wine.gpu::recomp::tests::gpu_v_movrelsd_and_movrelsd_2(--exact, one process): ok, no SKIPPED. DXC compiled it and it ran on the GPU in about 0.8 s.Not tested
AI use
@throny on GitHub · 2026-11-24 19:38 UTC · original
Two contributors checked independently and found that this PR makes the same change as #1167: #1607, group D26. They suggest keeping #1167. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps.
This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@microwave805 on GitHub · 2026-11-24 19:42 UTC · original
Closing in favor of #1167 — checked both diffs and #1167 (opened right before this) is a clean strict superset covering VOP1 + VOP3, M0 masking, overlapping moves, partial EXEC, and both wave32/wave64. Thanks for flagging it in #1607!
Pull request closed