Tests: verify direct DXIL vs HLSL GPU parity for 32-bit and 64-bit SALU ops #2081

Open
ramon-victor wants to merge 1 commit from upstream-pr/2091 into main
ramon-victor commented 2026-11-25 03:45:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ramon-victor on 2026-11-25T03:45:10Z.


Add GPU differential parity tests between the direct RDNA2 → DXIL translator (xcl::gpu::dxil::kernel::translate, validated with dxil.dll) and the HLSL + DXC path (xcl::gpu::recomp) for lower.rs 32-bit and 64-bit scalar ALU instructions and SCC semantics across wave32 and wave64 (split wave64 on wave32-only GPUs). Test-only change; no runtime files modified.

What is in it

  • crates/xcl/tests/gpu_dxil_salu_parity.rs:
    • direct_dxil_salu_shift_add_pack_minmax_and_mul_hi_parity: S_LSHL1..4_ADD_U32 (with carry SCC), S_PACK_{LL,LH,HH}_B32_B16 (preserving SCC), S_MIN/MAX_{I,U}32 (including tie SCC=0), S_ABSDIFF_I32, S_SEXT_I32_{I8,I16}, and S_MUL_HI_{U,I}32.
    • direct_dxil_salu_overflow_carry_borrow_and_cmov_parity: S_ADD_I32/S_SUB_I32 signed overflow SCC, 64-bit S_ADD_U32+S_ADDC_U32 and S_SUB_U32+S_SUBB_U32 carry/borrow chains, and S_CMOV_B32/S_CMOVK_I32/S_CMOV_B64 under SCC=1 vs SCC=0.
    • direct_dxil_salu_32bit_logic_bitops_and_bfe_parity: S_{ANDN2,ORN2,NAND,NOR,XNOR}_B32, S_ASHR_I32, S_BITSET{0,1}_B32, S_BITCMP{0,1}_B32, S_BCNT{0,1}_I32_B32, S_FF{0,1}_I32_B32, S_FLBIT_I32{_B32,}, S_BREV_B32, S_BFM_B32, and S_BFE_{U,I}32.
    • direct_dxil_salu_64bit_shifts_bitops_and_bfe_parity: S_LSHL_B64/S_LSHR_B64/S_ASHR_I64, S_BITSET{0,1}_B64 and S_BITCMP{0,1}_B64 on high-word bits, S_BCNT{0,1}_I32_B64, S_FF{0,1}_I32_B64, S_FLBIT_I32_{B64,I64}, S_BREV_B64, S_BFM_B64, and cross-dword S_BFE_{U,I}64.

Tested

  • Hardware: NVIDIA GeForce RTX 3070 (8 GiB, driver 621.24, wave32), AMD Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.99.0 (x86_64-pc-windows-msvc), DXC 1.8.2502.11 (Windows SDK 10.0.26100.0), debug build.
  • cargo test -p xcl --test gpu_dxil_salu_parity -- --nocapture: 4 passed, 0 failed, 0 ignored (0 SKIPPED; each test ran both wave32 and split wave64 through both Direct DXIL and HLSL+DXC).
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4) on head fb0ecdc: 1158 passed, 0 failed, 46 ignored (24 SKIPPED GPU tests: 20 no wave64, 3 per-lane form #1426, 1 no heap windows).

Not tested

  • Native 64-lane hardware wave64 (AMD RDNA2/3/4) — RTX 3070 only supports 32-lane waves, so wave64 ran in split-wave64 mode.
  • Release build and retail game titles (test-only PR, no runtime changes).

AI use

  • Antigravity (Google DeepMind; Gemini frontier model — exact minor version not exposed to the agent): wrote the integration test file, ran the full test suite on the RTX 3070, and drafted this PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5484773605 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2091). Originally posted by [ramon-victor](https://github.com/ramon-victor) on 2026-11-25T03:45:10Z. --- Add GPU differential parity tests between the direct RDNA2 → DXIL translator (`xcl::gpu::dxil::kernel::translate`, validated with `dxil.dll`) and the HLSL + DXC path (`xcl::gpu::recomp`) for `lower.rs` 32-bit and 64-bit scalar ALU instructions and `SCC` semantics across wave32 and wave64 (split wave64 on wave32-only GPUs). Test-only change; no runtime files modified. **What is in it** - `crates/xcl/tests/gpu_dxil_salu_parity.rs`: - `direct_dxil_salu_shift_add_pack_minmax_and_mul_hi_parity`: `S_LSHL1..4_ADD_U32` (with carry `SCC`), `S_PACK_{LL,LH,HH}_B32_B16` (preserving `SCC`), `S_MIN/MAX_{I,U}32` (including tie `SCC=0`), `S_ABSDIFF_I32`, `S_SEXT_I32_{I8,I16}`, and `S_MUL_HI_{U,I}32`. - `direct_dxil_salu_overflow_carry_borrow_and_cmov_parity`: `S_ADD_I32`/`S_SUB_I32` signed overflow `SCC`, 64-bit `S_ADD_U32`+`S_ADDC_U32` and `S_SUB_U32`+`S_SUBB_U32` carry/borrow chains, and `S_CMOV_B32`/`S_CMOVK_I32`/`S_CMOV_B64` under `SCC=1` vs `SCC=0`. - `direct_dxil_salu_32bit_logic_bitops_and_bfe_parity`: `S_{ANDN2,ORN2,NAND,NOR,XNOR}_B32`, `S_ASHR_I32`, `S_BITSET{0,1}_B32`, `S_BITCMP{0,1}_B32`, `S_BCNT{0,1}_I32_B32`, `S_FF{0,1}_I32_B32`, `S_FLBIT_I32{_B32,}`, `S_BREV_B32`, `S_BFM_B32`, and `S_BFE_{U,I}32`. - `direct_dxil_salu_64bit_shifts_bitops_and_bfe_parity`: `S_LSHL_B64`/`S_LSHR_B64`/`S_ASHR_I64`, `S_BITSET{0,1}_B64` and `S_BITCMP{0,1}_B64` on high-word bits, `S_BCNT{0,1}_I32_B64`, `S_FF{0,1}_I32_B64`, `S_FLBIT_I32_{B64,I64}`, `S_BREV_B64`, `S_BFM_B64`, and cross-dword `S_BFE_{U,I}64`. **Tested** - Hardware: NVIDIA GeForce RTX 3070 (8 GiB, driver 621.24, wave32), AMD Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.99.0 (`x86_64-pc-windows-msvc`), DXC 1.8.2502.11 (Windows SDK 10.0.26100.0), debug build. - `cargo test -p xcl --test gpu_dxil_salu_parity -- --nocapture`: 4 passed, 0 failed, 0 ignored (0 SKIPPED; each test ran both wave32 and split wave64 through both Direct DXIL and HLSL+DXC). - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`) on head `fb0ecdc`: 1158 passed, 0 failed, 46 ignored (24 SKIPPED GPU tests: 20 `no wave64`, 3 `per-lane form` `#1426`, 1 `no heap windows`). **Not tested** - Native 64-lane hardware wave64 (AMD RDNA2/3/4) — RTX 3070 only supports 32-lane waves, so wave64 ran in split-wave64 mode. - Release build and retail game titles (test-only PR, no runtime changes). **AI use** - Antigravity (Google DeepMind; Gemini frontier model — exact minor version not exposed to the agent): wrote the integration test file, ran the full test suite on the RTX 3070, and drafted this PR description.
JJAutoCompare commented 2026-11-25 05:08:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T04:12:21Z.


PR #2091 Arc A770 test report

On 2026-11-25, PR #2091 was open at fb0ecdca4dcd3f8ff25d9e0f44d6ca6363f886e2 before and after testing. The existing checkout was clean and detached at that SHA for both tests. No equivalent same-head Arc report appeared in the PR description, comments, reviews, or the 173 comments returned for issue #42.

Tested

  • STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175. Rust and Cargo 1.100.0, x86_64-pc-windows-msvc. Unoptimized test profile. Both test processes loaded DXC and DXIL 1.9.2609.5.
  • Prebuilt outside the Arc mutex with cargo test --locked -p xcl --test gpu_dxil_salu_parity --no-run. Exit 0 in 40.24 s with two library deprecation warnings. Cargo used two jobs, CARGO_INCREMENTAL=0, and both CARGO_PROFILE_DEV_DEBUG=0 and CARGO_PROFILE_TEST_DEBUG=0. TEMP and TMP were under this report's run directory. Tests used XCL_ADAPTER=A770 and XCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64.
  • Each exact command ran in its own invocation of & 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { ... }. Separate stdout, stderr, start and end timestamps, and exit files are beside this report for the build, each fixture, and each wrapper.
& 'L:/XclTooling/pr1778-2e2ee55-20261125-020159/target/debug/build/xcl/aa483fcde098ccdf/out/gpu_dxil_salu_parity-aa483fcde098ccdf.exe' direct_dxil_salu_32bit_logic_bitops_and_bfe_parity --exact --nocapture --test-threads=1
& 'L:/XclTooling/pr1778-2e2ee55-20261125-020159/target/debug/build/xcl/aa483fcde098ccdf/out/gpu_dxil_salu_parity-aa483fcde098ccdf.exe' direct_dxil_salu_64bit_shifts_bitops_and_bfe_parity --exact --nocapture --test-threads=1
Fixture Passed Failed Ignored Explicit skips Filtered out Libtest time Fixture / wrapper exit
32-bit logic, bit operations and BFE 1 0 0 0 3 0.85 s 0 / 0
64-bit shifts, bit operations and BFE 1 0 0 0 3 0.45 s 0 / 0

The checked-in fixtures validated direct DXIL, executed it and HLSL compiled by DXC for cs_6_6, and matched 20 SGPRs for the 32-bit fixture and 26 for the 64-bit fixture plus final SCC for each. The checked-in expected-value assertions also passed, including signed and unsigned extraction across the 32-bit word boundary in the 64-bit fixture. Wave32 and split wave64 coverage follows from the fixtures' mode gate and the same-host A770 capability log, which records an 8–32 hardware lane range.

Both wrappers logged mutex release. The final release was at 2026-11-25 05:10:37.4450846 CET. The exclusive Cargo target slot at L:/XclTooling/pr1778-2e2ee55-20261125-020159/target is available for reuse.

Not tested

The other two SALU fixtures, the wider workspace suite, release builds, retail titles, native hardware wave64, and other adapters.

AI use

T3 Code / Codex (gpt-6.2-sol) ran the checked-in fixtures and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7152627649 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2091#issuecomment-7152627649). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T04:12:21Z. --- # PR #2091 Arc A770 test report On 2026-11-25, [PR #2091](https://github.com/xcl-dev/xcl/pull/2091) was open at `fb0ecdca4dcd3f8ff25d9e0f44d6ca6363f886e2` before and after testing. The existing checkout was clean and detached at that SHA for both tests. No equivalent same-head Arc report appeared in the PR description, comments, reviews, or the 173 comments returned for [issue #42](https://github.com/xcl-dev/xcl/issues/42). ## Tested - STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175. Rust and Cargo 1.100.0, `x86_64-pc-windows-msvc`. Unoptimized test profile. Both test processes loaded DXC and DXIL 1.9.2609.5. - Prebuilt outside the Arc mutex with `cargo test --locked -p xcl --test gpu_dxil_salu_parity --no-run`. Exit 0 in 40.24 s with two library deprecation warnings. Cargo used two jobs, `CARGO_INCREMENTAL=0`, and both `CARGO_PROFILE_DEV_DEBUG=0` and `CARGO_PROFILE_TEST_DEBUG=0`. TEMP and TMP were under this report's run directory. Tests used `XCL_ADAPTER=A770` and `XCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64`. - Each exact command ran in its own invocation of `& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { ... }`. Separate stdout, stderr, start and end timestamps, and exit files are beside this report for the build, each fixture, and each wrapper. ```powershell & 'L:/XclTooling/pr1778-2e2ee55-20261125-020159/target/debug/build/xcl/aa483fcde098ccdf/out/gpu_dxil_salu_parity-aa483fcde098ccdf.exe' direct_dxil_salu_32bit_logic_bitops_and_bfe_parity --exact --nocapture --test-threads=1 & 'L:/XclTooling/pr1778-2e2ee55-20261125-020159/target/debug/build/xcl/aa483fcde098ccdf/out/gpu_dxil_salu_parity-aa483fcde098ccdf.exe' direct_dxil_salu_64bit_shifts_bitops_and_bfe_parity --exact --nocapture --test-threads=1 ``` | Fixture | Passed | Failed | Ignored | Explicit skips | Filtered out | Libtest time | Fixture / wrapper exit | | --- | ---: | ---: | ---: | ---: | ---: | ---: | --- | | 32-bit logic, bit operations and BFE | 1 | 0 | 0 | 0 | 3 | 0.85 s | 0 / 0 | | 64-bit shifts, bit operations and BFE | 1 | 0 | 0 | 0 | 3 | 0.45 s | 0 / 0 | The checked-in fixtures validated direct DXIL, executed it and HLSL compiled by DXC for `cs_6_6`, and matched 20 SGPRs for the 32-bit fixture and 26 for the 64-bit fixture plus final SCC for each. The checked-in expected-value assertions also passed, including signed and unsigned extraction across the 32-bit word boundary in the 64-bit fixture. Wave32 and split wave64 coverage follows from the fixtures' mode gate and the [same-host A770 capability log](L:/XclTooling/pr1577/wave-capability-20261125-033726.log), which records an 8–32 hardware lane range. Both wrappers logged mutex release. The final release was at 2026-11-25 05:10:37.4450846 CET. The exclusive Cargo target slot at `L:/XclTooling/pr1778-2e2ee55-20261125-020159/target` is available for reuse. ## Not tested The other two SALU fixtures, the wider workspace suite, release builds, retail titles, native hardware wave64, and other adapters. ## AI use T3 Code / Codex (gpt-6.2-sol) ran the checked-in fixtures and wrote this report.
DarkPanda69 commented 2026-11-25 05:08:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-25T04:25:10Z.


Native 64-lane wave64 run on AMD, which this PR lists as not tested (the RTX 3070 ran wave64 split; the other report here is Arc).

Tested: pass, head fb0ecdc applied on its base main cbc296a, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17. cargo test -p xcl --test gpu_dxil_salu_parity -- --test-threads=4 with XCL_ADAPTER set to each GPU:

  • AMD RX 9070 XT (RDNA4), driver 32.0.32029.2010, waves 32..64: 4 passed, 0 failed, 0 SKIPPED.
  • NVIDIA RTX 3060, driver 32.0.16.1088: 4 passed, 0 failed, 0 SKIPPED.

AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7152824997 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2091#issuecomment-7152824997). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-25T04:25:10Z. --- Native 64-lane wave64 run on AMD, which this PR lists as not tested (the RTX 3070 ran wave64 split; the other report here is Arc). **Tested:** pass, head `fb0ecdc` applied on its base `main` `cbc296a`, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17. `cargo test -p xcl --test gpu_dxil_salu_parity -- --test-threads=4` with `XCL_ADAPTER` set to each GPU: - AMD RX 9070 XT (RDNA4), driver 32.0.32029.2010, waves 32..64: 4 passed, 0 failed, 0 SKIPPED. - NVIDIA RTX 3060, driver 32.0.16.1088: 4 passed, 0 failed, 0 SKIPPED. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
JoaoPauluu commented 2026-11-25 06:05:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-25T05:26:05Z.


A run with vkd3d-proton as the host D3D12, so both the direct DXIL and the HLSL → DXC output go through dxil-spirv and the NVIDIA Vulkan driver: all 4 parity tests pass, none skipped.

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, DXC 1.9.2609.5. Release, cross-built for x86_64-pc-windows-gnu. fb0ecdc as it is (merge base with main cbc296a), no uncommitted changes. The gpu_dxil_salu_parity test binary runs under Wine, one test per process.
    • direct_dxil_salu_32bit_logic_bitops_and_bfe_parity: ok
    • direct_dxil_salu_64bit_shifts_bitops_and_bfe_parity: ok
    • direct_dxil_salu_overflow_carry_borrow_and_cmov_parity: ok
    • direct_dxil_salu_shift_add_pack_minmax_and_mul_hi_parity: ok

Not tested

  • wave64 forms (this GPU has 32-lane waves only), the whole suite on this head, native Windows, AMD.

AI use

  • Claude Code (Claude Opus 5.5) built the commit, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
<!-- greyfinch-sync:ivall/xcl:comment:7153766063 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2091#issuecomment-7153766063). Originally posted by [JoaoPauluu](https://github.com/JoaoPauluu) on 2026-11-25T05:26:05Z. --- A run with vkd3d-proton as the host D3D12, so both the direct DXIL and the HLSL → DXC output go through dxil-spirv and the NVIDIA Vulkan driver: all 4 parity tests pass, none skipped. **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, DXC 1.9.2609.5. Release, cross-built for `x86_64-pc-windows-gnu`. `fb0ecdc` as it is (merge base with `main` `cbc296a`), no uncommitted changes. The `gpu_dxil_salu_parity` test binary runs under Wine, one test per process. - `direct_dxil_salu_32bit_logic_bitops_and_bfe_parity`: ok - `direct_dxil_salu_64bit_shifts_bitops_and_bfe_parity`: ok - `direct_dxil_salu_overflow_carry_borrow_and_cmov_parity`: ok - `direct_dxil_salu_shift_add_pack_minmax_and_mul_hi_parity`: ok **Not tested** - wave64 forms (this GPU has 32-lane waves only), the whole suite on this head, native Windows, AMD. **AI use** - Claude Code (Claude Opus 5.5) built the commit, ran the tests and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
DavidM1911 commented 2026-11-25 06:05:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T05:43:37Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7154080263 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2091#issuecomment-7154080263). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T05:43:37Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Decodere commented 2026-11-27 09:49:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T09:49:57Z.


Independent desktop NVIDIA verification of PR #2091 at head fb0ecdca4dcd3f8ff25d9e0f44d6ca6363f886e2 (1 commit; exact parent & merge-base: cbc296ab65a2661a61e3e2da109134bcd5319f60, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, Wave32-only Ada), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted GPU parity tests & build (fb0ecdca)

Command Result
cargo test --release -p xcl --test gpu_dxil_salu_parity -- --nocapture (3 consecutive runs) 4 passed; 0 failed; 0 ignored; 0 filtered out × 3 (0.56s, 0.30s, 0.31s, 0 skipped; live RTX 4060 wave32 + split-wave64 execution of direct_dxil_salu_shift_add_pack_minmax_and_mul_hi_parity, direct_dxil_salu_overflow_carry_borrow_and_cmov_parity, direct_dxil_salu_32bit_logic_bitops_and_bfe_parity, and direct_dxil_salu_64bit_shifts_bitops_and_bfe_parity)
cargo build --release -p xcl Clean build (1m 41s initial --test compile + 0.08s incremental --release build, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact parent & merge-base (cbc296ab65a2661a61e3e2da109134bcd5319f60, cached baseline on the same machine):

xcl-smoke v1
commit: cbc296ab65a2661a61e3e2da109134bcd5319f60
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1572 (PresentX 1572)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14509 MB

PR #2091 (fb0ecdca4dcd3f8ff25d9e0f44d6ca6363f886e2):

xcl-smoke v1
commit: fb0ecdca4dcd3f8ff25d9e0f44d6ca6363f886e2
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1529 (PresentX 1529)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14501 MB

Limits of coverage

  • This PR is test-only (crates/xcl/tests/gpu_dxil_salu_parity.rs, 0 production-code changes); all 4 direct-DXIL vs. HLSL 32-bit and 64-bit SALU differential parity tests executed and passed 3/3 on desktop RTX 4060 across wave32 and split-wave64 (gpu_modes() omits native Wave64 on Wave32-only Ada).
  • The 60 s retail smoke confirms non-regression of the unchanged runtime binary at this commit (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR).

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7215147473 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2091#issuecomment-7215147473). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T09:49:57Z. --- Independent desktop NVIDIA verification of **PR #2091** at head `fb0ecdca4dcd3f8ff25d9e0f44d6ca6363f886e2` (`1` commit; exact parent & merge-base: `cbc296ab65a2661a61e3e2da109134bcd5319f60`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, Wave32-only Ada), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted GPU parity tests & build (`fb0ecdca`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --test gpu_dxil_salu_parity -- --nocapture` (3 consecutive runs) | `4 passed; 0 failed; 0 ignored; 0 filtered out` × 3 (`0.56s`, `0.30s`, `0.31s`, `0` skipped; live RTX 4060 `wave32` + `split-wave64` execution of `direct_dxil_salu_shift_add_pack_minmax_and_mul_hi_parity`, `direct_dxil_salu_overflow_carry_borrow_and_cmov_parity`, `direct_dxil_salu_32bit_logic_bitops_and_bfe_parity`, and `direct_dxil_salu_64bit_shifts_bitops_and_bfe_parity`) | | `cargo build --release -p xcl` | Clean build (`1m 41s` initial `--test` compile + `0.08s` incremental `--release` build, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`cbc296ab65a2661a61e3e2da109134bcd5319f60`, cached baseline on the same machine): ``` xcl-smoke v1 commit: cbc296ab65a2661a61e3e2da109134bcd5319f60 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1572 (PresentX 1572) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14509 MB ``` PR #2091 (`fb0ecdca4dcd3f8ff25d9e0f44d6ca6363f886e2`): ``` xcl-smoke v1 commit: fb0ecdca4dcd3f8ff25d9e0f44d6ca6363f886e2 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1529 (PresentX 1529) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14501 MB ``` ### Limits of coverage - This PR is test-only (`crates/xcl/tests/gpu_dxil_salu_parity.rs`, `0` production-code changes); all 4 direct-DXIL vs. HLSL 32-bit and 64-bit SALU differential parity tests executed and passed `3/3` on desktop RTX 4060 across `wave32` and `split-wave64` (`gpu_modes()` omits native Wave64 on Wave32-only Ada). - The 60 s retail smoke confirms non-regression of the unchanged runtime binary at this commit (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR). *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
BBareth commented 2026-11-30 19:41:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T19:41:08Z.


merge-check claim
head: fb0ecdca4d

<!-- greyfinch-sync:ivall/xcl:comment:7289780306 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2091#issuecomment-7289780306). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T19:41:08Z. --- merge-check claim head: fb0ecdca4dcd3f8ff25d9e0f44d6ca6363f886e2
BBareth commented 2026-11-30 19:47:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T19:47:52Z.


merge-check
base: ff0c364b3d
head: fb0ecdca4d
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2893 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, run earlier today on the same commit: 2888 passed, 1 failed, 51 ignored, 28 SKIPPED lines; its one failure, hle::d3d12x::pso_async::used_tests::emission_resolves_the_retained_recipe_after_title_address_reuse, passed here and in ten other merged runs today, so it is intermittent on the base. The four new tests ran on the GPU and passed (direct_dxil_salu_shift_add_pack_minmax_and_mul_hi_parity, ..._overflow_carry_borrow_and_cmov_parity, ..._32bit_logic_bitops_and_bfe_parity, ..._64bit_shifts_bitops_and_bfe_parity); this card has no native wave64, so they ran in wave32 and split wave64.
review: no blocking finding; test-only, one new integration test file, every line read. Scalar ALU programs are translated by the direct DXIL kernel path (validated) and by HLSL + DXC, run on the GPU and compared over a register range plus SCC, then against fixed values; I checked a sample of the expected values by hand (s_lshl1_add wrap and carry, the three half packs, s_bfm_b32(6, 4) = 0x3F0, s_bfe_u32 / s_bfe_i32 of 0x0F0008F0 at offset 4 width 8, the 64-bit add / subtract chain). Skips with skip_test without a GPU, DXC or wave64 programs. Not covered here: the native wave64 mode of these tests, which needs a card that has it. No runtime code changes.
performance: none: tests only.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.

<!-- greyfinch-sync:ivall/xcl:comment:7289952161 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2091#issuecomment-7289952161). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T19:47:52Z. --- merge-check base: ff0c364b3de011c13ed45865480c21918a79ec89 head: fb0ecdca4dcd3f8ff25d9e0f44d6ca6363f886e2 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2893 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, run earlier today on the same commit: 2888 passed, 1 failed, 51 ignored, 28 SKIPPED lines; its one failure, `hle::d3d12x::pso_async::used_tests::emission_resolves_the_retained_recipe_after_title_address_reuse`, passed here and in ten other merged runs today, so it is intermittent on the base. The four new tests ran on the GPU and passed (`direct_dxil_salu_shift_add_pack_minmax_and_mul_hi_parity`, `..._overflow_carry_borrow_and_cmov_parity`, `..._32bit_logic_bitops_and_bfe_parity`, `..._64bit_shifts_bitops_and_bfe_parity`); this card has no native wave64, so they ran in wave32 and split wave64. review: no blocking finding; test-only, one new integration test file, every line read. Scalar ALU programs are translated by the direct DXIL kernel path (validated) and by HLSL + DXC, run on the GPU and compared over a register range plus SCC, then against fixed values; I checked a sample of the expected values by hand (s_lshl1_add wrap and carry, the three half packs, s_bfm_b32(6, 4) = 0x3F0, s_bfe_u32 / s_bfe_i32 of 0x0F0008F0 at offset 4 width 8, the 64-bit add / subtract chain). Skips with `skip_test` without a GPU, DXC or wave64 programs. Not covered here: the native wave64 mode of these tests, which needs a card that has it. No runtime code changes. performance: none: tests only. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
nminu commented 2026-11-30 19:57:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nminu on 2026-11-30T19:57:37Z.


merge-check
base: ff0c364b3d
head: fb0ecdca4d
merge: clean (also clean onto current main 86e86fcb33, which since the tested base only adds scripts/discord_mirror.py, its test and .github/workflows/discord-mirror.yml)
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2893 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 3 no D3D12 debug layer / d3d12SDKLayers.dll, 2 heap windows, 1 driver cache needs Developer Mode, 2 other); failing: none. The four new tests ran on the GPU in wave32 and split wave64 and passed. In the workspace run the xcl lib test binary stopped partway with 0xc0000005; a rerun of cargo test -p xcl --lib -- --test-threads=4 stopped with 0xc0000409 at a different place (after 1,626 passed); a third rerun completed (2741 passed, 0 failed, 31 ignored), and the count above is the workspace run's other 42 binaries plus that run. This PR does not change that binary (only crates/xcl/tests/ is touched; same lib test build hash as the base), so these stops are not from this PR; I did not find the test responsible.
review: no blocking finding; test-only, one new integration test file, every line read. It calls only the crate's test APIs (encode, the direct translator with dxil.dll validation, HLSL + DXC, the GPU runner): no processes, files or network. Each program is checked direct-vs-HLSL over the SGPR range plus SCC, then against fixed values; I recomputed most fixed values by hand (shift-add wrap and carry, the three half packs, min/max tie SCC, absdiff(INT_MAX, INT_MIN) = 1, both mul_hi, signed overflow SCC, cmov under SCC 0/1, ashr, bcnt/ff/flbit, bfm 0x3F0, 32- and 64-bit bfe including the cross-dword case, 64-bit bitcmp on bits 40/63) and they agree with the RDNA2 definitions. Nits only: S_LSHL3/4_ADD and the 32-bit logic ops are checked for parity but not against fixed values; gpu_modes skips the whole test (wave32 included) when wave64 programs are unsupported. Native wave64 hardware not covered (32-lane GPU).
performance: none: tests only.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 32.0.16.1692; Ryzen 7 9800X3D; Windows 11 Pro 26200; Rust 1.100.0; DXC 1.9.2609.5; debug build. Claude Code (Claude Opus 5.5) read the diff, ran the build and the tests and wrote this check.

<!-- greyfinch-sync:ivall/xcl:comment:7290195532 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2091#issuecomment-7290195532). Originally posted by [nminu](https://github.com/nminu) on 2026-11-30T19:57:37Z. --- merge-check base: ff0c364b3de011c13ed45865480c21918a79ec89 head: fb0ecdca4dcd3f8ff25d9e0f44d6ca6363f886e2 merge: clean (also clean onto current main 86e86fcb33f94fa5d0c809d9b50af7b84bf49cce, which since the tested base only adds scripts/discord_mirror.py, its test and .github/workflows/discord-mirror.yml) build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2893 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 3 no D3D12 debug layer / d3d12SDKLayers.dll, 2 heap windows, 1 driver cache needs Developer Mode, 2 other); failing: none. The four new tests ran on the GPU in wave32 and split wave64 and passed. In the workspace run the `xcl` lib test binary stopped partway with 0xc0000005; a rerun of `cargo test -p xcl --lib -- --test-threads=4` stopped with 0xc0000409 at a different place (after 1,626 passed); a third rerun completed (2741 passed, 0 failed, 31 ignored), and the count above is the workspace run's other 42 binaries plus that run. This PR does not change that binary (only `crates/xcl/tests/` is touched; same lib test build hash as the base), so these stops are not from this PR; I did not find the test responsible. review: no blocking finding; test-only, one new integration test file, every line read. It calls only the crate's test APIs (encode, the direct translator with `dxil.dll` validation, HLSL + DXC, the GPU runner): no processes, files or network. Each program is checked direct-vs-HLSL over the SGPR range plus SCC, then against fixed values; I recomputed most fixed values by hand (shift-add wrap and carry, the three half packs, min/max tie SCC, absdiff(INT_MAX, INT_MIN) = 1, both mul_hi, signed overflow SCC, cmov under SCC 0/1, ashr, bcnt/ff/flbit, bfm 0x3F0, 32- and 64-bit bfe including the cross-dword case, 64-bit bitcmp on bits 40/63) and they agree with the RDNA2 definitions. Nits only: S_LSHL3/4_ADD and the 32-bit logic ops are checked for parity but not against fixed values; `gpu_modes` skips the whole test (wave32 included) when wave64 programs are unsupported. Native wave64 hardware not covered (32-lane GPU). performance: none: tests only. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 32.0.16.1692; Ryzen 7 9800X3D; Windows 11 Pro 26200; Rust 1.100.0; DXC 1.9.2609.5; debug build. Claude Code (Claude Opus 5.5) read the diff, ran the build and the tests and wrote this check.
Foniass commented 2026-12-01 07:20:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:20:29Z.


Triage (#1607) – head fb0ecdc

Test-only: adds crates/xcl/tests/gpu_dxil_salu_parity.rs, which compares direct DXIL with HLSL for 32/64-bit SALU ops (shift-add, pack, min/max SCC, overflow SCC, add/sub carry, cmov, bit ops, BFE across the dword boundary). I checked the hard-coded expectations by hand and they are right. #1843 also uses S_ADDC_U32/S_SUBB_U32 in a different per-lane test, but nothing else overlaps.
No open or merged PR makes the same change. No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7303939540 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2091#issuecomment-7303939540). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:20:29Z. --- **Triage (#1607)** – head fb0ecdc Test-only: adds `crates/xcl/tests/gpu_dxil_salu_parity.rs`, which compares direct DXIL with HLSL for 32/64-bit SALU ops (shift-add, pack, min/max SCC, overflow SCC, add/sub carry, cmov, bit ops, BFE across the dword boundary). I checked the hard-coded expectations by hand and they are right. #1843 also uses S_ADDC_U32/S_SUBB_U32 in a different per-lane test, but nothing else overlaps. No open or merged PR makes the same change. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2091:upstream-pr/2091'
git switch 'upstream-pr/2091'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2091'
git switch 'upstream-pr/2091'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2091'
git switch 'upstream-pr/2091'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2091'
git switch 'main'
git merge --squash 'upstream-pr/2091'
git switch 'main'
git merge --ff-only 'upstream-pr/2091'
git switch 'main'
git merge 'upstream-pr/2091'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2081
No description provided.