Tests: check v_movrelsd_b32, v_movrelsd_2_b32 and v_movreld_b32 on the GPU #1167

Closed
github-bot wants to merge 1 commit from gh-pr/1167/head into gh-pr/1167/base
Owner

@⁠mynzjerko on GitHub · 2026-11-24 12:47 UTC · original
tests/movrelsd-gpu → main · +84 −0 · 1 files · 1 commits · closed without merging

Add GPU test coverage for v_movrelsd_b32, v_movrelsd_2_b32, and non-VGPR v_movreld_b32 sources in both wave64 and wave32.

What is in it

  • crates/xcl/src/gpu/recomp/tests.rs: add gpu_movrelsd_and_movrel_b32 covering ENC_VOP1 and ENC_VOP3 encodings, dynamic M0 indexing and 10-bit M0 masking, overlapping source/destination ranges, partial EXEC masking, and v_movreld_b32 with SGPR and inline-literal sources.

Tested

  • AMD Radeon RX 9070 (RDNA4, native wave64, driver 32.0.32029.2010), AMD Ryzen 5 7500F, Windows 11 Pro 10.0.26300, rustc 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17, debug build
  • cargo test -p xcl --lib -- gpu_movrelsd_and_movrel_b32 --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored (0 SKIPPED)
  • cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored (xcl --lib: 699 passed, 0 failed, 21 ignored; SKIPPED GPU tests: 0)

Not tested

  • NVIDIA / Intel GPUs, Linux / Wine, release build, retail titles (scripts/smoke.ps1; tests-only change)

AI use

  • Google Antigravity (Gemini 4 Neon) wrote the test, ran the builds and test suite locally, and drafted this description.
**@⁠mynzjerko** on GitHub · 2026-11-24 12:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/1167) `tests/movrelsd-gpu` → `main` · +84 −0 · 1 files · 1 commits · closed without merging Add GPU test coverage for `v_movrelsd_b32`, `v_movrelsd_2_b32`, and non-VGPR `v_movreld_b32` sources in both `wave64` and `wave32`. **What is in it** - `crates/xcl/src/gpu/recomp/tests.rs`: add `gpu_movrelsd_and_movrel_b32` covering `ENC_VOP1` and `ENC_VOP3` encodings, dynamic `M0` indexing and 10-bit `M0` masking, overlapping source/destination ranges, partial `EXEC` masking, and `v_movreld_b32` with SGPR and inline-literal sources. **Tested** - AMD Radeon RX 9070 (RDNA4, native wave64, driver `32.0.32029.2010`), AMD Ryzen 5 7500F, Windows 11 Pro 10.0.26300, `rustc 1.100.0` (`stable-x86_64-pc-windows-msvc`), DXC `1.9.2602.17`, debug build - `cargo test -p xcl --lib -- gpu_movrelsd_and_movrel_b32 --nocapture --test-threads=1`: 1 passed, 0 failed, 0 ignored (`0 SKIPPED`) - `cargo test --workspace -- --test-threads=4`: 742 passed, 0 failed, 41 ignored (`xcl --lib`: 699 passed, 0 failed, 21 ignored; `SKIPPED` GPU tests: 0) **Not tested** - NVIDIA / Intel GPUs, Linux / Wine, release build, retail titles (`scripts/smoke.ps1`; tests-only change) **AI use** - Google Antigravity (Gemini 4 Neon) wrote the test, ran the builds and test suite locally, and drafted this description.
Add GPU coverage for `v_movrelsd_b32`, `v_movrelsd_2_b32`, and non-VGPR
`v_movreld_b32` sources in both wave64 and wave32, exercising ENC_VOP1
and ENC_VOP3 encodings, dynamic M0 indexing and 10-bit M0 masking,
overlapping source/destination ranges, partial EXEC masking, and
`v_movreld_b32` with SGPR and inline-literal sources.

Assisted-by: Google Antigravity (Gemini 4 Neon)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:45:48 +00:00
github-bot closed this pull request 2026-11-26 04:45:48 +00:00
Author
Owner

@⁠fromthemoonx on GitHub · 2026-11-24 13:13 UTC · original

NVIDIA (32-lane) run, since Not tested lists NVIDIA. On this card gpu_waves runs the test as wave32 and as split wave64.

Tested

  • NVIDIA GeForce RTX 3060 12 GB (32-lane waves only), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974), Graphics Tools installed; rustc 1.100.0 stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug

  • Exact head 09865b2fde86c77cd2b29ddfa1dfd92e57374204, which is on current main 47efa2e (so also the merged result): cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.

  • gpu_movrelsd_and_movrel_b32 alone, 10 runs: 10 of 10 passed

  • It catches broken translations that the existing test misses (local edits to emit.rs, reverted after; each run together with the existing gpu_packed_math_dots_movrel):

    • v_movrelsd_b32 without its write offset ((Some(m0), None)): the new test fails (wave32 lane 0 v_movrelsd_b32 VOP1), and gpu_packed_math_dots_movrel passes
    • v_movrelsd_2_b32 with the two M0 fields swapped: the new test fails (wave32 lane 0 v_movrelsd_2_b32 VOP3 M0-masked), and gpu_packed_math_dots_movrel passes

    So before this PR, neither mistake would have been caught by a test.

Not tested

  • Native wave64 (32-lane card); release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the build, tests and the two local mutations on the machine above and wrote this report from the output.
**@⁠fromthemoonx** on GitHub · 2026-11-24 13:13 UTC · [original](https://github.com/xcl-dev/xcl/pull/1167#issuecomment-7132513005) NVIDIA (32-lane) run, since **Not tested** lists NVIDIA. On this card `gpu_waves` runs the test as wave32 and as split wave64. **Tested** - NVIDIA GeForce RTX 3060 12 GB (32-lane waves only), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974), Graphics Tools installed; rustc 1.100.0 `stable-x86_64-pc-windows-msvc`; DXC 1.9.2602.17; debug - **Exact head `09865b2fde86c77cd2b29ddfa1dfd92e57374204`**, which is on current `main` `47efa2e` (so also the merged result): `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4`: **742 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - `gpu_movrelsd_and_movrel_b32` alone, 10 runs: **10 of 10 passed** - **It catches broken translations that the existing test misses** (local edits to `emit.rs`, reverted after; each run together with the existing `gpu_packed_math_dots_movrel`): - `v_movrelsd_b32` without its write offset (`(Some(m0), None)`): the new test fails (`wave32 lane 0 v_movrelsd_b32 VOP1`), and `gpu_packed_math_dots_movrel` **passes** - `v_movrelsd_2_b32` with the two M0 fields swapped: the new test fails (`wave32 lane 0 v_movrelsd_2_b32 VOP3 M0-masked`), and `gpu_packed_math_dots_movrel` **passes** So before this PR, neither mistake would have been caught by a test. **Not tested** - Native wave64 (32-lane card); release build. **AI use** - Claude Code (Claude Opus 5.5) ran the build, tests and the two local mutations on the machine above and wrote this report from the output.
Author
Owner

@⁠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

  • RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257 (DXIL → SPIR-V through dxil-spirv), DXC 1.9.2609.5. Release, cross-built for x86_64-pc-windows-gnu. 09865b2 as it is (based on 47efa2e), no uncommitted changes. The lib test binary runs under Wine.
  • gpu::recomp::tests::gpu_movrelsd_and_movrel_b32 (--exact, one process): ok, no SKIPPED. DXC compiled it and it ran on the GPU in about 0.8 s.

Not tested

  • the rest of the suite on this head; native Windows; AMD / native wave64.

AI use

  • Claude Code (Claude Opus 5.5) built the head, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
**@⁠JoaoPauluu** on GitHub · 2026-11-24 13:45 UTC · [original](https://github.com/xcl-dev/xcl/pull/1167#issuecomment-7133288293) 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** - RTX 3060 12 GB (NVIDIA 620.70.06, 32-lane waves), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 from #257 (DXIL → SPIR-V through dxil-spirv), DXC 1.9.2609.5. Release, cross-built for `x86_64-pc-windows-gnu`. `09865b2` as it is (based on `47efa2e`), no uncommitted changes. The lib test binary runs under Wine. - `gpu::recomp::tests::gpu_movrelsd_and_movrel_b32` (`--exact`, one process): **ok**, no SKIPPED. DXC compiled it and it ran on the GPU in about 0.8 s. **Not tested** - the rest of the suite on this head; native Windows; AMD / native wave64. **AI use** - Claude Code (Claude Opus 5.5) built the head, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.