Tests: check VOP3 3-operand integer ALU, bitwise and align ops on the GPU #1206

Open
github-bot wants to merge 1 commit from github-bot/gh-1206 into main AGit
Owner

@⁠0xTehuti on GitHub · 2026-11-24 13:14 UTC · original
0xTehuti:test-rdna2-gpu-ops → main · +76 −0 · 1 files · 1 commits · open

Add GPU coverage for 14 translated RDNA2 3-operand integer and bitwise instructions with no existing GPU tests: v_alignbit_b32, v_alignbyte_b32, v_xad_u32, v_add_lshl_u32, v_lshl_or_b32, v_and_or_b32, v_or3_b32, v_xor3_b32, v_med3_u32, v_med3_i32, v_min3_u32, v_max3_u32, v_min3_i32 and v_max3_i32.

Exercises bit alignment shifts, 3-operand bitwise combinations, combined add-shifts, and signed/unsigned median and min/max selection across all 64 lanes.

What is in it

  • crates/xcl/src/gpu/recomp/tests.rs: gpu_recomp_vop3_three_operand_int_and_bit_ops exercising 14 VOP3 instructions on the GPU.

Tested

  • NVIDIA GeForce RTX 2070 SUPER (Driver 595.79 / 32.0.15.9579), Intel Core i7-10700K, Windows 11 x64, Rust 1.99.0
  • .\scripts\test.ps1: 699 passed, 0 failed, 21 ignored, 2 skipped (no wave64)
  • Specific test: cargo test -p xcl --lib gpu_recomp_vop3_three_operand_int_and_bit_ops: 1 passed, 0 failed (0.26s)

Not tested

  • Retail game packages (XCL_SAMPLE_* unset).

AI use

  • Tool: Antigravity / T3 Code
  • Model: Gemini 3.8 Flash
  • Details: Identified unexercised VOP3 instructions in emit.rs, wrote the test program and assertions, verified on real hardware with DXC.
**@⁠0xTehuti** on GitHub · 2026-11-24 13:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1206) `0xTehuti:test-rdna2-gpu-ops` → `main` · +76 −0 · 1 files · 1 commits · open Add GPU coverage for 14 translated RDNA2 3-operand integer and bitwise instructions with no existing GPU tests: `v_alignbit_b32`, `v_alignbyte_b32`, `v_xad_u32`, `v_add_lshl_u32`, `v_lshl_or_b32`, `v_and_or_b32`, `v_or3_b32`, `v_xor3_b32`, `v_med3_u32`, `v_med3_i32`, `v_min3_u32`, `v_max3_u32`, `v_min3_i32` and `v_max3_i32`. Exercises bit alignment shifts, 3-operand bitwise combinations, combined add-shifts, and signed/unsigned median and min/max selection across all 64 lanes. **What is in it** - `crates/xcl/src/gpu/recomp/tests.rs`: `gpu_recomp_vop3_three_operand_int_and_bit_ops` exercising 14 VOP3 instructions on the GPU. **Tested** - NVIDIA GeForce RTX 2070 SUPER (Driver 595.79 / 32.0.15.9579), Intel Core i7-10700K, Windows 11 x64, Rust 1.99.0 - `.\scripts\test.ps1`: 699 passed, 0 failed, 21 ignored, 2 skipped (no wave64) - Specific test: `cargo test -p xcl --lib gpu_recomp_vop3_three_operand_int_and_bit_ops`: 1 passed, 0 failed (0.26s) **Not tested** - Retail game packages (`XCL_SAMPLE_*` unset). **AI use** - Tool: Antigravity / T3 Code - Model: Gemini 3.8 Flash - Details: Identified unexercised VOP3 instructions in emit.rs, wrote the test program and assertions, verified on real hardware with DXC.
Add GPU coverage for 14 translated RDNA2 3-operand integer and bitwise instructions with no existing GPU tests: v_alignbit_b32, v_alignbyte_b32, v_xad_u32, v_add_lshl_u32, v_lshl_or_b32, v_and_or_b32, v_or3_b32, v_xor3_b32, v_med3_u32, v_med3_i32, v_min3_u32, v_max3_u32, v_min3_i32 and v_max3_i32.

Exercises bit alignment shifts, 3-operand bitwise combinations, combined add-shifts, and signed/unsigned median and min/max selection across all 64 lanes.

Assisted-by: Antigravity (Gemini 3.8 Flash)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:47:00 +00:00
Author
Owner

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

Independent verification on current main 384f7f7 (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 vop3: 3 passed, 0 failed — includes the new gpu_recomp_vop3_three_operand_int_and_bit_ops.

AI use: test runs by Devin (Cognition, SWE-2); no code changes.

**@⁠DavidM1911** on GitHub · 2026-11-24 13:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/1206#issuecomment-7132614050) Independent verification on current `main` `384f7f7` (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 vop3`: **3 passed, 0 failed** — includes the new `gpu_recomp_vop3_three_operand_int_and_bit_ops`. AI use: test runs by Devin (Cognition, SWE-2); no code changes.
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. e4307f2 as it is (based on 47efa2e), no uncommitted changes. The lib test binary runs under Wine.
  • gpu::recomp::tests::gpu_recomp_vop3_three_operand_int_and_bit_ops (--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/1206#issuecomment-7133286326) 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`. `e4307f2` as it is (based on `47efa2e`), no uncommitted changes. The lib test binary runs under Wine. - `gpu::recomp::tests::gpu_recomp_vop3_three_operand_int_and_bit_ops` (`--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.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1206/head:github-bot/gh-1206'
git switch 'github-bot/gh-1206'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1206'
git switch 'github-bot/gh-1206'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1206'
git switch 'github-bot/gh-1206'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1206'
git switch 'main'
git merge --squash 'github-bot/gh-1206'
git switch 'main'
git merge --ff-only 'github-bot/gh-1206'
git switch 'main'
git merge 'github-bot/gh-1206'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.