Tests: 16-bit integer VALU ops and the byte / half SADs on the GPU #633

Open
acaracargo wants to merge 1 commit from upstream-pr/638 into main
acaracargo commented 2026-11-24 02:45:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by acaracargo on 2026-11-24T02:45:56Z.


Adds a GPU test for 20 VOP3 instructions that emit.rs translates but no test runs:

  • The 16-bit add / sub / mul_lo / shifts / min / max / mad, in u16 and i16.
  • v_mad_u32_u16 and v_mad_i32_i16.
  • v_sad_hi_u8, v_sad_u16 and v_sad_u32.
  • v_cvt_pk_i16_i32.

Eleven lanes carry edge values: sign and carry boundaries, shift counts past 15, and i16 saturation in both directions. The high half of every 16-bit source holds another value, so a translation that reads the whole register shows up. Each lane is compared with the ISA's pseudo-code. Only D[15:0] of a 16-bit result is compared.

#590 tests the 24-bit and high-half multiplies, so this one leaves them out. #445 has the 16-bit min3 / max3 / med3.

What is in it

  • crates/xcl/src/gpu/recomp/tests.rs: gpu_valu_16_bit_integer_and_sad.

Tested

  • NVIDIA GeForce RTX 4060 (32-lane waves only), driver 610.88; Intel Core i5-13400F; Windows 11 Pro 26300; Rust 1.100.0 x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug.
  • cargo test --workspace -- --test-threads=4 on 253f749: 685 passed, 0 failed, 41 ignored (main 9ce2070: 684 / 0 / 41).
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64).
  • Breaking v_ashrrev_i16 into a logical shift, or making v_sad_u16 skip the high half, fails the test (checked locally, reverted).

Regression run

  • Test-only change, no runtime regression run.

Not tested

  • AMD GPUs and native wave64; console hardware.
  • D[31:16] of 16-bit results.

AI use

  • Claude Code (Claude Opus 5.5) wrote the test and the original description and ran the tests and mutation checks. ChatGPT assisted with editing the PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5465112976 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/638). Originally posted by [acaracargo](https://github.com/acaracargo) on 2026-11-24T02:45:56Z. --- Adds a GPU test for 20 VOP3 instructions that `emit.rs` translates but no test runs: - The 16-bit add / sub / mul_lo / shifts / min / max / mad, in u16 and i16. - `v_mad_u32_u16` and `v_mad_i32_i16`. - `v_sad_hi_u8`, `v_sad_u16` and `v_sad_u32`. - `v_cvt_pk_i16_i32`. Eleven lanes carry edge values: sign and carry boundaries, shift counts past 15, and i16 saturation in both directions. The high half of every 16-bit source holds another value, so a translation that reads the whole register shows up. Each lane is compared with the ISA's pseudo-code. Only D[15:0] of a 16-bit result is compared. #590 tests the 24-bit and high-half multiplies, so this one leaves them out. #445 has the 16-bit min3 / max3 / med3. **What is in it** - `crates/xcl/src/gpu/recomp/tests.rs`: `gpu_valu_16_bit_integer_and_sad`. **Tested** - NVIDIA GeForce RTX 4060 (32-lane waves only), driver 610.88; Intel Core i5-13400F; Windows 11 Pro 26300; Rust 1.100.0 `x86_64-pc-windows-msvc`; DXC 1.9.2602.17; debug. - `cargo test --workspace -- --test-threads=4` on `253f749`: 685 passed, 0 failed, 41 ignored (`main` `9ce2070`: 684 / 0 / 41). - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64). - Breaking `v_ashrrev_i16` into a logical shift, or making `v_sad_u16` skip the high half, fails the test (checked locally, reverted). **Regression run** - Test-only change, no runtime regression run. **Not tested** - AMD GPUs and native wave64; console hardware. - D[31:16] of 16-bit results. **AI use** - Claude Code (Claude Opus 5.5) wrote the test and the original description and ran the tests and mutation checks. ChatGPT assisted with editing the PR description.
MesshM commented 2026-11-24 07:05:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T02:55:02Z.


Test run of 253f74917b147deb949fa9633db1ea88eabd54ac on AMD RDNA4; the PR was tested on NVIDIA only. I merged it onto current main 18c105a locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 690 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 650 passed, 0 failed, 21 ignored
  • 0 SKIPPED; gpu_valu_16_bit_integer_and_sad passes.

Review: The CPU references match the RDNA2 pseudo-code where I checked: v_sad_u16 sums both half differences plus S2, v_sad_hi_u8 shifts the byte SAD by 16 before adding S2, v_mad_u32_u16 / v_mad_i32_i16 widen before the multiply, v_cvt_pk_i16_i32 saturates each word, and the *rev shifts take the count from S0[3:0]. Comparing only D[15:0] for the 16-bit results is right, since the high half is not defined by these opcodes without op_sel. I found nothing to change.

Not tested: no retail title or regression run (I have no unpacked game), no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

<!-- greyfinch-sync:ivall/xcl:comment:7120599454 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/638#issuecomment-7120599454). Originally posted by [MesshM](https://github.com/MesshM) on 2026-11-24T02:55:02Z. --- Test run of `253f74917b147deb949fa9633db1ea88eabd54ac` on AMD RDNA4; the PR was tested on NVIDIA only. I merged it onto current `main` `18c105a` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **690 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 650 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `gpu_valu_16_bit_integer_and_sad` passes. **Review:** The CPU references match the RDNA2 pseudo-code where I checked: `v_sad_u16` sums both half differences plus S2, `v_sad_hi_u8` shifts the byte SAD by 16 before adding S2, `v_mad_u32_u16` / `v_mad_i32_i16` widen before the multiply, `v_cvt_pk_i16_i32` saturates each word, and the `*rev` shifts take the count from S0[3:0]. Comparing only D[15:0] for the 16-bit results is right, since the high half is not defined by these opcodes without `op_sel`. I found nothing to change. **Not tested:** no retail title or regression run (I have no unpacked game), no `XCL_SAMPLE_*` tests, release build; the PR's head on its old base was not run, only its merge onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
marquezinii commented 2026-11-24 07:06:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by marquezinii on 2026-11-24T04:31:07Z.


Test run of 253f74917b147deb949fa9633db1ea88eabd54ac on NVIDIA Blackwell with a newer driver than the one in the description. I merged it onto current main f4ce27c locally (clean merge, 75 lines in tests.rs) and tested that tree.

Tested

  • NVIDIA GeForce RTX 5070 12 GB (32-lane waves only), driver 621.24; Windows 11 Pro 26300; rustc 1.99.1 stable-x86_64-pc-windows-msvc, debug; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0)
  • cargo test --workspace -- --test-threads=4: 702 passed, 0 failed, 41 ignored; --test-threads=1: the same
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64)
  • gpu_valu_16_bit_integer_and_sad passes
  • Two emitter breaks other than the ones in the description, each made by hand and reverted, fail the test: v_sad_hi_u8 shifting the sum by 8 instead of 16 (a=0x12340001 b=0xabcdffff c=0x55550002: got 0x55582f02, want 0x58840002), and v_ashrrev_i16 masking the shift count with 31 instead of 15 (a=0xa5a50011 b=0x0f0f8001: got 0xffff, want 0xc000)

Not tested

  • AMD / Intel, native wave64

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and the emitter-break checks and wrote this report.
<!-- greyfinch-sync:ivall/xcl:comment:7122091968 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/638#issuecomment-7122091968). Originally posted by [marquezinii](https://github.com/marquezinii) on 2026-11-24T04:31:07Z. --- Test run of `253f74917b147deb949fa9633db1ea88eabd54ac` on NVIDIA Blackwell with a newer driver than the one in the description. I merged it onto current `main` `f4ce27c` locally (clean merge, 75 lines in `tests.rs`) and tested that tree. **Tested** - NVIDIA GeForce RTX 5070 12 GB (32-lane waves only), driver 621.24; Windows 11 Pro 26300; rustc 1.99.1 `stable-x86_64-pc-windows-msvc`, debug; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0) - `cargo test --workspace -- --test-threads=4`: 702 passed, 0 failed, 41 ignored; `--test-threads=1`: the same - SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64) - `gpu_valu_16_bit_integer_and_sad` passes - Two emitter breaks other than the ones in the description, each made by hand and reverted, fail the test: `v_sad_hi_u8` shifting the sum by 8 instead of 16 (`a=0x12340001 b=0xabcdffff c=0x55550002: got 0x55582f02, want 0x58840002`), and `v_ashrrev_i16` masking the shift count with 31 instead of 15 (`a=0xa5a50011 b=0x0f0f8001: got 0xffff, want 0xc000`) **Not tested** - AMD / Intel, native wave64 **AI use** - Claude Code (Claude Opus 5.5) ran the tests and the emitter-break checks and wrote this report.
4usphs commented 2026-11-24 10:04:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by 4usphs on 2026-11-24T09:37:43Z.


Measured on RDNA2 hardware, for the two points under Not tested: console-generation hardware, and D[31:16] of 16-bit results.

Method. The Radeon iGPU of a Ryzen 7 9800X3D (gfx1036, RDNA2), Windows 11 Pro 26200, display driver 32.0.21045.29003, AMD OpenCL 3652.0 (PAL,LC). Each instruction runs as inline RDNA2 assembly in an OpenCL C kernel (the #518 / #772 method), in its VOP3 form (_e64), on this test's 11 input triples, one per work-item. VDST is preset to 0xCAFEBABE. The test runs 6 times, 3 in wave32 and 3 in wave64, with identical output. The reference is a Python port of this test's 20 closures.

Result.

  • All 20 instructions × 11 inputs match the test's reference on the compared bits.
  • D[31:16] of a 16-bit result is kept. All 14 16-bit instructions in the test leave the high half at the preset 0xCAFE, for every input. These are v_add/sub_nc_u16/i16, v_mul_lo_u16, the three *_b16/_i16 shifts, v_min/max_u16/i16 and v_mad_u16/i16. That is what valu16 does ((cur & 0xFFFF0000u) | t, emit.rs:3051 on main 077ce40). So the test could preset the destinations and compare all 32 bits. v_cvt_u16_f16 / v_cvt_i16_f16 keep it too (measured for #639). The assembler refuses a VOP2 (_e32) form of these 16-bit instructions on gfx1036, so I could not compare an encoding without op_sel.

For comparison, an RX 9070 XT (gfx1201, RDNA4, OpenCL 3686.0) gives the same results and also keeps D[31:16].

Not tested: the console itself (gfx1036 is a desktop RDNA2 APU of the same generation), RDNA1, the op_sel forms (writing D[31:16] instead), this PR's D3D12 test on this GPU.

AI use: Claude Code (Claude Opus 5.5) wrote the OpenCL probes and the port of the reference, ran them on my PC and wrote this comment. I have not reviewed the code.

<!-- greyfinch-sync:ivall/xcl:comment:7127672871 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/638#issuecomment-7127672871). Originally posted by [4usphs](https://github.com/4usphs) on 2026-11-24T09:37:43Z. --- Measured on RDNA2 hardware, for the two points under **Not tested**: console-generation hardware, and D[31:16] of 16-bit results. **Method.** The Radeon iGPU of a Ryzen 7 9800X3D (`gfx1036`, RDNA2), Windows 11 Pro 26200, display driver 32.0.21045.29003, AMD OpenCL `3652.0 (PAL,LC)`. Each instruction runs as inline RDNA2 assembly in an OpenCL C kernel (the #518 / #772 method), in its VOP3 form (`_e64`), on this test's 11 input triples, one per work-item. VDST is preset to `0xCAFEBABE`. The test runs 6 times, 3 in wave32 and 3 in wave64, with identical output. The reference is a Python port of this test's 20 closures. **Result.** - **All 20 instructions × 11 inputs match the test's reference** on the compared bits. - **D[31:16] of a 16-bit result is kept.** All 14 16-bit instructions in the test leave the high half at the preset `0xCAFE`, for every input. These are `v_add/sub_nc_u16/i16`, `v_mul_lo_u16`, the three `*_b16`/`_i16` shifts, `v_min/max_u16/i16` and `v_mad_u16/i16`. That is what `valu16` does (`(cur & 0xFFFF0000u) | t`, `emit.rs:3051` on `main` `077ce40`). So the test could preset the destinations and compare all 32 bits. `v_cvt_u16_f16` / `v_cvt_i16_f16` keep it too (measured for #639). The assembler refuses a VOP2 (`_e32`) form of these 16-bit instructions on `gfx1036`, so I could not compare an encoding without op_sel. For comparison, an RX 9070 XT (`gfx1201`, RDNA4, OpenCL `3686.0`) gives the same results and also keeps D[31:16]. **Not tested:** the console itself (`gfx1036` is a desktop RDNA2 APU of the same generation), RDNA1, the op_sel forms (writing D[31:16] instead), this PR's D3D12 test on this GPU. **AI use:** Claude Code (Claude Opus 5.5) wrote the OpenCL probes and the port of the reference, ran them on my PC and wrote this comment. I have not reviewed the code.
JJAutoCompare commented 2026-11-25 07:05:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T06:36:53Z.


Empirical test report (253f7491)

Hardware / environment

  • PR #638 at 253f74917b147deb949fa9633db1ea88eabd54ac, checked out detached.
  • Intel Arc A770 selected with XCL_ADAPTER=A770. Windows x64, build 10.0.26200.0. CPU identifier AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD.
  • Rust 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). DXC 1.9.2609.5 (01b62ad4), DXIL 1.9.2609.5. Unoptimized test profile with debug info and incremental compilation disabled.

Commands and results

  • cargo test -p xcl --lib --no-run ran outside the Arc lock and exited 0. It built the library test executable.
  • xcl-00e28da3621caf64.exe --exact --nocapture --test-threads=1 gpu::recomp::tests::gpu_valu_16_bit_integer_and_sad ran under Invoke-ArcTest.ps1 with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1. The executable and wrapper both exited 0. Libtest reported 1 passed, 0 failed, 0 ignored, 0 measured, and 665 filtered out in 0.37 s. The captured stdout and stderr contained 0 lines beginning with SKIPPED .

Observed behavior

  • The new GPU test completed with no mismatches against its reference calculations across 20 VOP3 instructions and 11 input triples. Its assertions cover 16-bit arithmetic, shifts, min/max, multiply-add, byte and halfword SAD, 32-bit SAD, and packed signed saturation. It compares the low 16 bits for 16-bit destinations and the full output for 32-bit destinations.

Not tested

  • The full GPU workspace suite and game smoke runs were omitted.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr638-focused.log and published.

<!-- greyfinch-sync:ivall/xcl:comment:7154975295 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/638#issuecomment-7154975295). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T06:36:53Z. --- ### Empirical test report (253f7491) **Hardware / environment** - PR #638 at `253f74917b147deb949fa9633db1ea88eabd54ac`, checked out detached. - Intel Arc A770 selected with `XCL_ADAPTER=A770`. Windows x64, build `10.0.26200.0`. CPU identifier `AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD`. - Rust `1.100.0` (`0ef1bc386`, `x86_64-pc-windows-msvc`). DXC `1.9.2609.5` (`01b62ad4`), DXIL `1.9.2609.5`. Unoptimized test profile with debug info and incremental compilation disabled. **Commands and results** - `cargo test -p xcl --lib --no-run` ran outside the Arc lock and exited 0. It built the library test executable. - `xcl-00e28da3621caf64.exe --exact --nocapture --test-threads=1 gpu::recomp::tests::gpu_valu_16_bit_integer_and_sad` ran under `Invoke-ArcTest.ps1` with `XCL_ADAPTER=A770` and `RUST_TEST_NOCAPTURE=1`. The executable and wrapper both exited 0. Libtest reported 1 passed, 0 failed, 0 ignored, 0 measured, and 665 filtered out in 0.37 s. The captured stdout and stderr contained 0 lines beginning with `SKIPPED `. **Observed behavior** - The new GPU test completed with no mismatches against its reference calculations across 20 VOP3 instructions and 11 input triples. Its assertions cover 16-bit arithmetic, shifts, min/max, multiply-add, byte and halfword SAD, 32-bit SAD, and packed signed saturation. It compares the low 16 bits for 16-bit destinations and the full output for 32-bit destinations. **Not tested** - The full GPU workspace suite and game smoke runs were omitted. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr638-focused.log and published.
DavidM1911 commented 2026-11-25 13:05:12 +00:00 (Migrated from github.com)

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


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:7162771742 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/638#issuecomment-7162771742). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T12:43:40Z. --- 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!
github-actions[bot] commented 2026-11-29 07:42:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:42:50Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7252643875 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/638#issuecomment-7252643875). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:42:50Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
brainhay5 commented 2026-11-30 08:56:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T08:56:45Z.


merge-check claim
head: 253f74917b

<!-- greyfinch-sync:ivall/xcl:comment:7273539382 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/638#issuecomment-7273539382). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T08:56:45Z. --- merge-check claim head: 253f74917b147deb949fa9633db1ea88eabd54ac
brainhay5 commented 2026-11-30 09:02:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T09:02:46Z.


merge-check
base: d52ff48caa
head: 253f74917b
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2876 passed, 2 failed, 51 ignored; 29 SKIPPED lines

failing: test_title_runs_and_game_folder_is_untouched
review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review.
performance: not assessed beyond the suite.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017

correction: this check first reported the PR as "not yet" because of a test failure that is not the PR's. The base-comparison step failed to run (test names contain a double colon, not a legal Windows filename), so an empty read was mistaken for "passes on base". gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 fails on base d52ff48c by itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise.

<!-- greyfinch-sync:ivall/xcl:comment:7273667927 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/638#issuecomment-7273667927). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T09:02:46Z. --- merge-check base: d52ff48caade1f5350d513bfffd370396dadfeb6 head: 253f74917b147deb949fa9633db1ea88eabd54ac merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2876 passed, 2 failed, 51 ignored; 29 SKIPPED lines failing: test_title_runs_and_game_folder_is_untouched review: automated overnight check — diff inspected for safety only (no build/CI/toolchain/script changes, no process/network/runtime-loading code); no duplicate search performed; no line-by-line code review. performance: not assessed beyond the suite. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088); Ryzen 7 5800X3D, 64 GB; Windows 11 22631; OpenCode agent, DeepSeek V4.1 Flash 1017 correction: this check first reported the PR as "not yet" because of a test failure that is not the PR's. The base-comparison step failed to run (test names contain a double colon, not a legal Windows filename), so an empty read was mistaken for "passes on base". `gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16` fails on base d52ff48c by itself (verified separately with the same command: "assertion failed: 2D D16 resinfo clobbered v2/v3"). Verdict corrected. Apologies for the noise.
BBareth commented 2026-11-30 10:10:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T10:10:29Z.


merge-check claim
head: 253f74917b

<!-- greyfinch-sync:ivall/xcl:comment:7275230438 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/638#issuecomment-7275230438). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T10:10:29Z. --- merge-check claim head: 253f74917b147deb949fa9633db1ea88eabd54ac
BBareth commented 2026-11-30 10:22:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T10:22:38Z.


merge-check
base: 9dfbe3ea66
head: 253f74917b
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2886 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines). 28 SKIPPED lines, as on the base. The new test gpu_valu_16_bit_integer_and_sad passed.
review: no blocking finding; test-only, one file, read in full. One GPU test of the 16-bit integer VALU instructions and the byte / half SADs against the ISA's pseudo-code per lane, with edge values per lane and another value in each source's high half; only D[15:0] of a 16-bit result is compared. #738 (min3 / max3 / med3 u16) is the neighbouring test, not a duplicate.
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:7275505295 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/638#issuecomment-7275505295). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T10:22:38Z. --- merge-check base: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b head: 253f74917b147deb949fa9633db1ea88eabd54ac merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2886 passed, 1 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines). 28 SKIPPED lines, as on the base. The new test `gpu_valu_16_bit_integer_and_sad` passed. review: no blocking finding; test-only, one file, read in full. One GPU test of the 16-bit integer VALU instructions and the byte / half SADs against the ISA's pseudo-code per lane, with edge values per lane and another value in each source's high half; only D[15:0] of a 16-bit result is compared. #738 (min3 / max3 / med3 u16) is the neighbouring test, not a duplicate. 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.
Foniass commented 2026-12-01 03:50:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:50:45Z.


Triage (#1607) – head 253f749

No open or merged PR tests the same ops. Main has no GPU test of the 16-bit integer VALU ops, V_MAD_*32_*16 or V_CVT_PK_I16_I32. #1576 also checks V_SAD_U32 / V_SAD_HI_U8 / V_SAD_U16 (3 of the 20 ops here), and #202 checks V_MAD_I32_I16 / V_SAD_HI_U8 with CLAMP. Those are small overlaps, not the same change.
The reference closures match the RDNA2 pseudo-code: 4-bit shift counts, signed 16-bit sources, the high half of each 16-bit source ignored and 16-bit results masked.
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:7300121670 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/638#issuecomment-7300121670). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:50:45Z. --- **Triage (#1607)** – head 253f749 No open or merged PR tests the same ops. Main has no GPU test of the 16-bit integer VALU ops, V_MAD_*32_*16 or V_CVT_PK_I16_I32. #1576 also checks V_SAD_U32 / V_SAD_HI_U8 / V_SAD_U16 (3 of the 20 ops here), and #202 checks V_MAD_I32_I16 / V_SAD_HI_U8 with CLAMP. Those are small overlaps, not the same change. The reference closures match the RDNA2 pseudo-code: 4-bit shift counts, signed 16-bit sources, the high half of each 16-bit source ignored and 16-bit results masked. 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/638:upstream-pr/638'
git switch 'upstream-pr/638'

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/638'
git switch 'upstream-pr/638'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/638'
git switch 'upstream-pr/638'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/638'
git switch 'main'
git merge --squash 'upstream-pr/638'
git switch 'main'
git merge --ff-only 'upstream-pr/638'
git switch 'main'
git merge 'upstream-pr/638'
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!633
No description provided.