Tests: check VOP3 3-operand integer ALU, bitwise and align ops on the GPU #1197
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1206"
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?
Imported from ivall/xcl. Originally posted by 0xTehuti on 2026-11-24T13:14:06Z.
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_i32andv_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_opsexercising 14 VOP3 instructions on the GPU.Tested
.\scripts\test.ps1: 699 passed, 0 failed, 21 ignored, 2 skipped (no wave64)cargo test -p xcl --lib gpu_recomp_vop3_three_operand_int_and_bit_ops: 1 passed, 0 failed (0.26s)Not tested
XCL_SAMPLE_*unset).AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T13:17:16Z.
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 vop3: 3 passed, 0 failed — includes the newgpu_recomp_vop3_three_operand_int_and_bit_ops.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-24T13:45:15Z.
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.e4307f2as it is (based on47efa2e), 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
AI use
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:00:24Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:07:23Z.
Triage (#1607) – head
e4307f2The ops in
gpu_recomp_vop3_three_operand_int_and_bit_opsare already tested by two earlier open PRs: #445 (v_alignbit_b32,v_alignbyte_b32,v_min3/max3/med3_u32/i32, with edge values on wave32 and wave64) and #703 (v_xad_u32,v_add_lshl_u32,v_lshl_or_b32,v_and_or_b32,v_or3_b32,v_xor3_b32over 16 edge cases). This PR tests one fixed input per op. The expected values here are correct, but the PR adds no op that those two do not cover.Recommendation: close (duplicate of #445 and #703).
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T15:57:23Z.
Closing as superseded: the same change is in #445, #703 (open, mergeable, required checks green). From Foniass's rechecked close list on #1607, checked again by script just now. If something here is still missing, say so and reopen it, or ask and I will.
AI use: Claude Code (Claude Opus 5.5).
Pull request closed