Tests: cover SOPK, scalar bit reverse/ff0, f32 unary math, and f16 integer cvt on GPU #1662

Open
piyonchu wants to merge 2 commits from upstream-pr/1672 into main
piyonchu commented 2026-11-24 19:07:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by piyonchu on 2026-11-24T19:07:15Z.


Tests only — adds GPU execution coverage in crates/xcl/src/gpu/recomp/tests.rs for previously untested RDNA2 SOPK, scalar bit-manipulation, f32 unary math/rounding, and f16 integer conversion instructions (3d9b7023, 2492d786, rebased onto main fa204595).

What is in it

  • crates/xcl/src/gpu/recomp/tests.rs (3d9b7023): adds gpu_sopk_and_scalar_bit_reverse_zero_scan (S_ADDK_I32, S_MULK_I32, all 12 S_CMPK_{EQ,LG,LT,LE,GT,GE}_{I32,U32}, S_BREV_B32, S_BREV_B64, S_FF0_I32_B32, S_FF0_I32_B64, S_FLBIT_I32_B32, S_BFM_B32, S_BITSET0_B32) and gpu_f32_unary_and_cvt_f16_int_ops (V_FLOOR_F32, V_CEIL_F32, V_TRUNC_F32, V_RNDNE_F32, V_RCP_F32, V_RSQ_F32, V_SQRT_F32, V_LOG_F32, V_EXP_F32, V_SIN_F32, V_COS_F32, V_CVT_{F16_U16,F16_I16,U16_F16,I16_F16}).
  • crates/xcl/src/gpu/recomp/tests.rs (2492d786): adds high-bit (0x8000_0000 vs 1) and zero-extended 0xFFFF (65535) immediate cases across S_CMPK_*_U32.

Tested

  • NVIDIA GeForce RTX 4060 Laptop GPU (7956 MiB VRAM), Windows 11, DXC/DXIL 1.8.2502.11 (10.0.26100.0), debug build at commit 2492d78653fbd43563bd76a1efbca270d9553e35:
  • cargo test -p xcl --lib gpu_sopk_and_scalar_bit_reverse_zero_scan -- --nocapture: 1 passed, 0 failed (0.39s).
  • cargo test -p xcl --lib gpu_f32_unary_and_cvt_f16_int_ops -- --nocapture: 1 passed, 0 failed (0.28s).
  • cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=1: 205 passed, 0 failed, 18 ignored (21.17s; host-capability SKIPPED tests skip on RTX 4060 / no native wave64 / no heap windows).
  • cargo test --workspace --test "*" -- --test-threads=1: 134 passed, 0 failed, 20 ignored across 36 integration test binaries.
  • python scripts/pr_check.py --local and git diff --check upstream/main..HEAD: passed.

Not tested

  • Unfiltered single-process --lib run completed earlier non-gpu::recomp modules up to hle::d3d12x::bind::tests::gpu_two_pass_indirect_commands_keep_their_own_records, which failed due to 8 GB VRAM sparse-upload exhaustion in cumulative multi-test runs (gpu_two_pass_indirect_commands_keep_their_own_records passed 1/1 in 0.09s when run isolated).
  • Native wave64 hardware (AMD), Windows Developer Mode PSO cache disable, release builds, Wine/Linux, and retail titles (no game package present locally).

AI use

  • Antigravity (Claude) authored the tests, rebased onto main, ran the local test suites, and drafted this PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5478568782 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1672). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-24T19:07:15Z. --- Tests only — adds GPU execution coverage in `crates/xcl/src/gpu/recomp/tests.rs` for previously untested RDNA2 `SOPK`, scalar bit-manipulation, `f32` unary math/rounding, and `f16` integer conversion instructions (`3d9b7023`, `2492d786`, rebased onto `main` `fa204595`). **What is in it** - `crates/xcl/src/gpu/recomp/tests.rs` (`3d9b7023`): adds `gpu_sopk_and_scalar_bit_reverse_zero_scan` (`S_ADDK_I32`, `S_MULK_I32`, all 12 `S_CMPK_{EQ,LG,LT,LE,GT,GE}_{I32,U32}`, `S_BREV_B32`, `S_BREV_B64`, `S_FF0_I32_B32`, `S_FF0_I32_B64`, `S_FLBIT_I32_B32`, `S_BFM_B32`, `S_BITSET0_B32`) and `gpu_f32_unary_and_cvt_f16_int_ops` (`V_FLOOR_F32`, `V_CEIL_F32`, `V_TRUNC_F32`, `V_RNDNE_F32`, `V_RCP_F32`, `V_RSQ_F32`, `V_SQRT_F32`, `V_LOG_F32`, `V_EXP_F32`, `V_SIN_F32`, `V_COS_F32`, `V_CVT_{F16_U16,F16_I16,U16_F16,I16_F16}`). - `crates/xcl/src/gpu/recomp/tests.rs` (`2492d786`): adds high-bit (`0x8000_0000` vs `1`) and zero-extended `0xFFFF` (`65535`) immediate cases across `S_CMPK_*_U32`. **Tested** - NVIDIA GeForce RTX 4060 Laptop GPU (7956 MiB VRAM), Windows 11, DXC/DXIL `1.8.2502.11` (`10.0.26100.0`), debug build at commit `2492d78653fbd43563bd76a1efbca270d9553e35`: - `cargo test -p xcl --lib gpu_sopk_and_scalar_bit_reverse_zero_scan -- --nocapture`: 1 passed, 0 failed (`0.39s`). - `cargo test -p xcl --lib gpu_f32_unary_and_cvt_f16_int_ops -- --nocapture`: 1 passed, 0 failed (`0.28s`). - `cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=1`: 205 passed, 0 failed, 18 ignored (`21.17s`; host-capability `SKIPPED` tests skip on RTX 4060 / no native wave64 / no heap windows). - `cargo test --workspace --test "*" -- --test-threads=1`: 134 passed, 0 failed, 20 ignored across 36 integration test binaries. - `python scripts/pr_check.py --local` and `git diff --check upstream/main..HEAD`: passed. **Not tested** - Unfiltered single-process `--lib` run completed earlier non-`gpu::recomp` modules up to `hle::d3d12x::bind::tests::gpu_two_pass_indirect_commands_keep_their_own_records`, which failed due to 8 GB VRAM sparse-upload exhaustion in cumulative multi-test runs (`gpu_two_pass_indirect_commands_keep_their_own_records` passed 1/1 in `0.09s` when run isolated). - Native wave64 hardware (AMD), Windows Developer Mode PSO cache disable, release builds, Wine/Linux, and retail titles (no game package present locally). **AI use** - Antigravity (Claude) authored the tests, rebased onto `main`, ran the local test suites, and drafted this PR description.
mantavisual commented 2026-11-24 21:09:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mantavisual on 2026-11-24T20:03:10Z.


Test report for ced583d4b8a9450395c871f464c965b4d7bfdbf4.

Tested

  • RTX 4060 8 GB (driver 616.92, wave32), i5-13600K, 32 GB, Windows 11 Pro 22631, Rust 1.100.0 MSVC, DXC 1.9.2602.17 (SDK 10.0.26100), debug.
  • cargo test -p xcl --lib --locked <name>: both new tests pass.

Do the tests notice a broken translator? One break is not noticed:

  • The unsigned S_CMPK compares done as signed. The U32 cases use s23 = 500 and immediates 499 to 501, where both agree. Adding S_CMPK_EQ_U32 with 65535 / 0xFFFF and S_CMPK_GT_U32 with 0x80000000 / 1 (both expect 1) passes normally and fails with the break.

Four other breaks were caught.

Not tested: the whole suite, AMD, native wave64, retail title.

AI use: Claude Code (Claude Opus 5.5) ran this on my machine, wrote the report and posted it for me.

<!-- greyfinch-sync:ivall/xcl:comment:7142973308 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1672#issuecomment-7142973308). Originally posted by [mantavisual](https://github.com/mantavisual) on 2026-11-24T20:03:10Z. --- Test report for `ced583d4b8a9450395c871f464c965b4d7bfdbf4`. **Tested** - RTX 4060 8 GB (driver 616.92, wave32), i5-13600K, 32 GB, Windows 11 Pro 22631, Rust 1.100.0 MSVC, DXC 1.9.2602.17 (SDK 10.0.26100), debug. - `cargo test -p xcl --lib --locked <name>`: both new tests pass. **Do the tests notice a broken translator?** One break is not noticed: - The unsigned `S_CMPK` compares done as signed. The U32 cases use s23 = 500 and immediates 499 to 501, where both agree. Adding `S_CMPK_EQ_U32` with 65535 / `0xFFFF` and `S_CMPK_GT_U32` with `0x80000000` / 1 (both expect 1) passes normally and fails with the break. Four other breaks were caught. **Not tested:** the whole suite, AMD, native wave64, retail title. **AI use:** Claude Code (Claude Opus 5.5) ran this on my machine, wrote the report and posted it for me.
piyonchu commented 2026-11-24 21:09:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by piyonchu on 2026-11-24T20:34:25Z.


Thanks for the mutation check on RTX 4060, @mantavisual! Added high-bit (0x8000_0000 vs 1) and zero-extended 0xFFFF (65535) cases across all six S_CMPK_*_U32 operations (EQ/LG/LT/LE/GT/GE) in gpu_sopk_and_scalar_bit_reverse_zero_scan so signed comparison or sign-extending SIMM16 cannot pass. Re-verified gpu_sopk_and_scalar_bit_reverse_zero_scan (1 passed; 0 failed) and gpu_f32_unary_and_cvt_f16_int_ops (1 passed; 0 failed) on RTX 4060.

<!-- greyfinch-sync:ivall/xcl:comment:7143753295 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1672#issuecomment-7143753295). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-24T20:34:25Z. --- Thanks for the mutation check on RTX 4060, @mantavisual! Added high-bit (`0x8000_0000` vs `1`) and zero-extended `0xFFFF` (`65535`) cases across all six `S_CMPK_*_U32` operations (`EQ`/`LG`/`LT`/`LE`/`GT`/`GE`) in `gpu_sopk_and_scalar_bit_reverse_zero_scan` so signed comparison or sign-extending `SIMM16` cannot pass. Re-verified `gpu_sopk_and_scalar_bit_reverse_zero_scan` (`1 passed; 0 failed`) and `gpu_f32_unary_and_cvt_f16_int_ops` (`1 passed; 0 failed`) on RTX 4060.
DavidM1911 commented 2026-11-24 21:30:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T21:26:38Z.


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

  • cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7144936610 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1672#issuecomment-7144936610). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T21:26:38Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~22 ignored. Thanks!
raylitebull commented 2026-11-25 02:09:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T02:03:54Z.


CI \Build and test\ and \PR description\ passed on \ 235a39. With #1617\ now merged at the end of
ecomp/tests.rs, please rebase onto \main\ and obtain an AMD GPU pass on the rebased head.

<!-- greyfinch-sync:ivall/xcl:comment:7150274606 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1672#issuecomment-7150274606). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T02:03:54Z. --- CI \Build and test\ and \PR description\ passed on \ 235a39\. With \#1617\ now merged at the end of \ ecomp/tests.rs\, please rebase onto \main\ and obtain an **AMD** GPU pass on the rebased head.
piyonchu commented 2026-11-25 03:05:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by piyonchu on 2026-11-25T02:29:29Z.


Rebased onto main (cbc296a, with #1617 merged) at 06649f0 and re-ran the full GPU/workspace test suite on RTX 4060 Laptop GPU (1156 passed, 0 failed, 46 ignored, both new tests passing in 0.28s/0.26s).

Updated the PR description with the new head and counts. I do not have AMD GPU hardware locally, so native-wave64 AMD validation on 06649f0 remains untested on my end.

<!-- greyfinch-sync:ivall/xcl:comment:7150792101 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1672#issuecomment-7150792101). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-25T02:29:29Z. --- Rebased onto `main` (`cbc296a`, with `#1617` merged) at `06649f0` and re-ran the full GPU/workspace test suite on RTX 4060 Laptop GPU (`1156 passed, 0 failed, 46 ignored`, both new tests passing in `0.28s`/`0.26s`). Updated the PR description with the new head and counts. I do not have AMD GPU hardware locally, so native-wave64 AMD validation on `06649f0` remains untested on my end.
JJAutoCompare commented 2026-11-25 05:08:18 +00:00 (Migrated from github.com)

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


Tested

Independent Arc A770 verification of open PR #1672 at 06649f040fe082ec94b005fe649ee6f1e52c8fa0. The reused checkout was clean and detached at that SHA before and after testing.

STOR-WINLAB, Windows 11 Enterprise Evaluation 25H2 x64 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust and Cargo 1.100.0 x86_64-pc-windows-msvc. The fixture logged DXC/DXIL 1.9.2609.5. Used the unoptimized test profile, two Cargo jobs, incremental compilation and debug info disabled, and private TEMP/TMP.

cargo test --locked -p xcl --lib --no-run
$env:XCL_ADAPTER = 'A770'
$env:XCL_DIRECT_DXIL = '0'
$env:XCL_DXC_DIR = Join-Path $env:LOCALAPPDATA 'XclTooling/dxc-1.9.2609/bin/x64'
& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test {
    & 'L:/XclTooling/pr1310-234ec72c/target/debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe' 'gpu::recomp::tests::gpu_f32_unary_and_cvt_f16_int_ops' --exact --nocapture --test-threads=1
}

The prebuild exited 0 outside the mutex (43.07 s). The fixture reported 1 passed, 0 failed, 0 ignored, 0 GPU skips, 1,125 filtered out, 0.76 s. The native executable and wrapper exited 0. The wrapper logged lock release.

HLSL/DXC checked all 64 logical lanes in split wave64. The runner's selection and the same-host A770 capability range of 8–32 hardware lanes establish that the program used two hardware wave32s. All 1,216 assertions passed, covering FP32 rounding and unary math, FP16 conversions to and from signed and unsigned integers, and upper-half preservation. Conversion checks included truncation, saturation, and NaN-to-zero.

Not tested

Native wave64, standalone wave32 mode, direct DXIL, other fixtures or GPUs, the workspace suite, and retail titles.

AI use

T3 Code / Codex (gpt-6.2-sol) ran the checked-in fixture, verified the logs, and wrote the test report.

<!-- greyfinch-sync:ivall/xcl:comment:7152851673 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1672#issuecomment-7152851673). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T04:26:56Z. --- **Tested** Independent Arc A770 verification of open PR #1672 at `06649f040fe082ec94b005fe649ee6f1e52c8fa0`. The reused checkout was clean and detached at that SHA before and after testing. STOR-WINLAB, Windows 11 Enterprise Evaluation 25H2 x64 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust and Cargo 1.100.0 x86_64-pc-windows-msvc. The fixture logged DXC/DXIL 1.9.2609.5. Used the unoptimized test profile, two Cargo jobs, incremental compilation and debug info disabled, and private TEMP/TMP. ```powershell cargo test --locked -p xcl --lib --no-run $env:XCL_ADAPTER = 'A770' $env:XCL_DIRECT_DXIL = '0' $env:XCL_DXC_DIR = Join-Path $env:LOCALAPPDATA 'XclTooling/dxc-1.9.2609/bin/x64' & 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { & 'L:/XclTooling/pr1310-234ec72c/target/debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe' 'gpu::recomp::tests::gpu_f32_unary_and_cvt_f16_int_ops' --exact --nocapture --test-threads=1 } ``` The prebuild exited 0 outside the mutex (43.07 s). The fixture reported **1 passed, 0 failed, 0 ignored, 0 GPU skips**, 1,125 filtered out, 0.76 s. The native executable and wrapper exited 0. The wrapper logged lock release. HLSL/DXC checked all 64 logical lanes in split wave64. The runner's selection and the same-host A770 capability range of 8–32 hardware lanes establish that the program used two hardware wave32s. All 1,216 assertions passed, covering FP32 rounding and unary math, FP16 conversions to and from signed and unsigned integers, and upper-half preservation. Conversion checks included truncation, saturation, and NaN-to-zero. **Not tested** Native wave64, standalone wave32 mode, direct DXIL, other fixtures or GPUs, the workspace suite, and retail titles. **AI use** T3 Code / Codex (gpt-6.2-sol) ran the checked-in fixture, verified the logs, and wrote the test report.
DavidM1911 commented 2026-11-26 07:03:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T06:07:55Z.


Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current main on the new head — needs another rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7184122118 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1672#issuecomment-7184122118). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T06:07:55Z. --- Re-verification on RTX 3060 Ti (Windows 11): still a **merge conflict with current `main`** on the new head — needs another rebase before it can be tested.
piyonchu commented 2026-11-26 10:06:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by piyonchu on 2026-11-26T09:38:56Z.


@DavidM1911 Thanks for checking — #1672 is already rebased directly onto current main (b49be18) at 0c4e5c9 (0 commits behind main), shows MERGEABLE / CLEAN on GitHub, and merges cleanly with upstream/main (git merge-tree --write-tree clean, Build and test and PR description passing). Could your test runner be merging against a cached branch ref before fetching 0c4e5c9?

<!-- greyfinch-sync:ivall/xcl:comment:7188277309 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1672#issuecomment-7188277309). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-26T09:38:56Z. --- @DavidM1911 Thanks for checking — `#1672` is already rebased directly onto current `main` (`b49be18`) at `0c4e5c9` (`0` commits behind `main`), shows `MERGEABLE` / `CLEAN` on GitHub, and merges cleanly with `upstream/main` (`git merge-tree --write-tree` clean, `Build and test` and `PR description` passing). Could your test runner be merging against a cached branch ref before fetching `0c4e5c9`?
piyonchu commented 2026-11-29 01:14:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by piyonchu on 2026-11-29T01:14:25Z.


Rebased onto latest main (fa204595, head 2492d786) resolving the conflict at the end of crates/xcl/src/gpu/recomp/tests.rs.

Verified locally after rebase on RTX 4060 Laptop GPU (Windows 11, debug):

  • cargo test -p xcl --lib gpu_sopk_and_scalar_bit_reverse_zero_scan -- --nocapture: 1 passed, 0 failed (0.39s)
  • cargo test -p xcl --lib gpu_f32_unary_and_cvt_f16_int_ops -- --nocapture: 1 passed, 0 failed (0.28s)
  • cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=1: 205 passed, 0 failed, 18 ignored (21.17s)
  • cargo test --workspace --test "*" -- --test-threads=1: 134 passed, 0 failed, 20 ignored (36 integration binaries)
  • python scripts/pr_check.py --local: description ok; git diff --check upstream/main..HEAD: clean
<!-- greyfinch-sync:ivall/xcl:comment:7248652969 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1672#issuecomment-7248652969). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-29T01:14:25Z. --- Rebased onto latest `main` (`fa204595`, head `2492d786`) resolving the conflict at the end of `crates/xcl/src/gpu/recomp/tests.rs`. Verified locally after rebase on RTX 4060 Laptop GPU (`Windows 11`, debug): - `cargo test -p xcl --lib gpu_sopk_and_scalar_bit_reverse_zero_scan -- --nocapture`: 1 passed, 0 failed (`0.39s`) - `cargo test -p xcl --lib gpu_f32_unary_and_cvt_f16_int_ops -- --nocapture`: 1 passed, 0 failed (`0.28s`) - `cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=1`: 205 passed, 0 failed, 18 ignored (`21.17s`) - `cargo test --workspace --test "*" -- --test-threads=1`: 134 passed, 0 failed, 20 ignored (36 integration binaries) - `python scripts/pr_check.py --local`: `description ok`; `git diff --check upstream/main..HEAD`: clean
Foniass commented 2026-12-01 06:27:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:27:59Z.


Triage (#1607) – head 728a6a2

No open or merged PR adds these tests. Some instructions overlap with other open test PRs: V_LOG_F32 and V_RSQ_F32 with #643 and #1169, V_SIN_F32 with #643 (transcendentals), V_CVT_U16_F16 and V_CVT_I16_F16 with #639 and #1115. The SOPK cases (S_ADDK/S_MULK/S_CMPK_*), S_BREV_B64, S_FF0_I32_B32, S_BITSET0_B32 and the f32 rounding ops are not tested on main or in those PRs.
I checked the expected values by hand against RDNA2 semantics and the recompiler's emit (SIMM16 sign- vs zero-extension, the 64-bit brev/ff0 halves, valu16 keeping the high half): they match.
Risk: gpu_f32_unary_and_cvt_f16_int_ops compares v_rsq/v_log/v_exp results with assert_eq!. Those lower to approximate GPU instructions, so a vendor whose rsqrt(4.0) is 1 ulp off would fail. A small tolerance, like the one sin/cos already use, would be safer.
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:7302902992 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1672#issuecomment-7302902992). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:27:59Z. --- **Triage (#1607)** – head 728a6a2 No open or merged PR adds these tests. Some instructions overlap with other open test PRs: V_LOG_F32 and V_RSQ_F32 with #643 and #1169, V_SIN_F32 with #643 (transcendentals), V_CVT_U16_F16 and V_CVT_I16_F16 with #639 and #1115. The SOPK cases (S_ADDK/S_MULK/S_CMPK_*), S_BREV_B64, S_FF0_I32_B32, S_BITSET0_B32 and the f32 rounding ops are not tested on main or in those PRs. I checked the expected values by hand against RDNA2 semantics and the recompiler's emit (SIMM16 sign- vs zero-extension, the 64-bit brev/ff0 halves, valu16 keeping the high half): they match. Risk: `gpu_f32_unary_and_cvt_f16_int_ops` compares v_rsq/v_log/v_exp results with `assert_eq!`. Those lower to approximate GPU instructions, so a vendor whose rsqrt(4.0) is 1 ulp off would fail. A small tolerance, like the one sin/cos already use, would be safer. 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/1672:upstream-pr/1672'
git switch 'upstream-pr/1672'

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