Tests: cover cube coords, V_PERM_B32, legacy FMA, frexp/ldexp, and f16 unary ops #1629

Open
piyonchu wants to merge 2 commits from upstream-pr/1639 into main
piyonchu commented 2026-11-24 18:31:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by piyonchu on 2026-11-24T18:31:11Z.


Tests only — adds GPU execution coverage in crates/xcl/src/gpu/recomp/tests.rs for previously untested RDNA2 ALU, cube coordinate, permutation, legacy FMA, frexp/ldexp, and unary f16 instructions (5656acd4, 82a6fb1f, rebased onto main fa204595).

What is in it

  • crates/xcl/src/gpu/recomp/tests.rs (5656acd4): adds gpu_cube_coords_perm_and_legacy_fma (V_CUBEID_F32, V_CUBESC_F32, V_CUBETC_F32, V_CUBEMA_F32, V_PERM_B32 selectors 0..13+, V_FMA_LEGACY_F32/V_FMAC_LEGACY_F32) and gpu_frexp_ldexp_and_unary_f16_ops (V_FREXP_MANT_F32, V_FREXP_EXP_I32_F32, V_FREXP_MANT_F16, V_FREXP_EXP_I16_F16, V_LDEXP_F16, V_FLOOR_F16, V_CEIL_F16, V_TRUNC_F16, V_RNDNE_F16, V_FRACT_F16, V_RCP_F16, V_RSQ_F16, V_SQRT_F16, V_LOG_F16, V_EXP_F16, V_SIN_F16, V_COS_F16).
  • crates/xcl/src/gpu/recomp/tests.rs (82a6fb1f): adds V_PERM_B32 selector 10 (0x0A070502) and swapped SRC0/SRC1 zero operands for V_FMA_LEGACY_F32 / V_FMAC_LEGACY_F32.

Note: gpu_frexp_ldexp_and_unary_f16_ops scopes frexp inputs to positive normal/special values (6.0, 0.375, 0.125, 0.0, +inf, NaN) and normal inputs without f32 subnormals (which flush under SM 6.6).

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 82a6fb1f1af90dd41a3805c5b05f8a6d8b4ed3eb:
  • cargo test -p xcl --lib gpu_cube_coords_perm_and_legacy_fma -- --nocapture: 1 passed, 0 failed (0.29s).
  • cargo test -p xcl --lib gpu_frexp_ldexp_and_unary_f16_ops -- --nocapture: 1 passed, 0 failed (0.27s).
  • cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=1: 205 passed, 0 failed, 18 ignored (19.74s).
  • python scripts/pr_check.py --local and git diff --check upstream/main..HEAD: passed.

Not tested

  • cargo test --workspace --test "*" -- --test-threads=1 passed the first 24 integration test binaries (303 passed, 0 failed, 22 ignored) before stopping at unrelated failure gpu_two_pass_cache_e2e (two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs), so later integration binaries and non-gpu::recomp unit modules were not re-run at this commit.
  • 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 suite, and drafted this PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5478036882 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-24T18:31:11Z. --- Tests only — adds GPU execution coverage in `crates/xcl/src/gpu/recomp/tests.rs` for previously untested RDNA2 ALU, cube coordinate, permutation, legacy FMA, frexp/ldexp, and unary `f16` instructions (`5656acd4`, `82a6fb1f`, rebased onto `main` `fa204595`). **What is in it** - `crates/xcl/src/gpu/recomp/tests.rs` (`5656acd4`): adds `gpu_cube_coords_perm_and_legacy_fma` (`V_CUBEID_F32`, `V_CUBESC_F32`, `V_CUBETC_F32`, `V_CUBEMA_F32`, `V_PERM_B32` selectors `0..13+`, `V_FMA_LEGACY_F32`/`V_FMAC_LEGACY_F32`) and `gpu_frexp_ldexp_and_unary_f16_ops` (`V_FREXP_MANT_F32`, `V_FREXP_EXP_I32_F32`, `V_FREXP_MANT_F16`, `V_FREXP_EXP_I16_F16`, `V_LDEXP_F16`, `V_FLOOR_F16`, `V_CEIL_F16`, `V_TRUNC_F16`, `V_RNDNE_F16`, `V_FRACT_F16`, `V_RCP_F16`, `V_RSQ_F16`, `V_SQRT_F16`, `V_LOG_F16`, `V_EXP_F16`, `V_SIN_F16`, `V_COS_F16`). - `crates/xcl/src/gpu/recomp/tests.rs` (`82a6fb1f`): adds `V_PERM_B32` selector `10` (`0x0A070502`) and swapped `SRC0`/`SRC1` zero operands for `V_FMA_LEGACY_F32` / `V_FMAC_LEGACY_F32`. Note: `gpu_frexp_ldexp_and_unary_f16_ops` scopes `frexp` inputs to positive normal/special values (`6.0`, `0.375`, `0.125`, `0.0`, `+inf`, `NaN`) and normal inputs without `f32` subnormals (which flush under SM 6.6). **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 `82a6fb1f1af90dd41a3805c5b05f8a6d8b4ed3eb`: - `cargo test -p xcl --lib gpu_cube_coords_perm_and_legacy_fma -- --nocapture`: 1 passed, 0 failed (`0.29s`). - `cargo test -p xcl --lib gpu_frexp_ldexp_and_unary_f16_ops -- --nocapture`: 1 passed, 0 failed (`0.27s`). - `cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=1`: 205 passed, 0 failed, 18 ignored (`19.74s`). - `python scripts/pr_check.py --local` and `git diff --check upstream/main..HEAD`: passed. **Not tested** - `cargo test --workspace --test "*" -- --test-threads=1` passed the first 24 integration test binaries (`303 passed, 0 failed, 22 ignored`) before stopping at unrelated failure `gpu_two_pass_cache_e2e` (`two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs`), so later integration binaries and non-`gpu::recomp` unit modules were not re-run at this commit. - 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 suite, and drafted this PR description.
Belox17 commented 2026-11-24 21:09:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Belox17 on 2026-11-24T20:02:51Z.


Test report for 77413a91 on NVIDIA (RTX 3060 Ti): both new GPU tests pass and nothing else changes

Tested

  • NVIDIA GeForce RTX 3060 Ti 8 GB (32-lane waves), driver 32.0.16.2124; Ryzen 5 5600X; Windows 11 build 26300; rustc 1.98.1 MSVC; DXC 1.8.2502.11 (Windows SDK 10.0.26100); debug build. Head 77413a91 as is (base 9e3831e), clean tree.
  • The new tests (gpu_cube_coords_perm_and_legacy_fma, gpu_frexp_ldexp_and_unary_f16_ops) with cargo test -p xcl --lib <name>: 2 passed (the GPU part ran on this adapter, no SKIPPED).
  • cargo test --workspace -- --test-threads=4 on the head: 778 passed, 0 failed, 41 ignored; its base 9e3831e on the same machine: 776 passed, 0 failed, 41 ignored. SKIPPED on both: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • Merged into current main c160d86e (clean merge): 860 passed, 0 failed, 42 ignored; main alone: 858 passed, 0 failed, 42 ignored, the same three SKIPPED as above.

Not tested

  • AMD / native wave64 hardware; any retail title (no smoke run).

AI use: Claude Code (Claude Opus 5.5) ran the commands on this machine and wrote this report from those runs.

<!-- greyfinch-sync:ivall/xcl:comment:7142965652 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639#issuecomment-7142965652). Originally posted by [Belox17](https://github.com/Belox17) on 2026-11-24T20:02:51Z. --- **Test report for `77413a91` on NVIDIA (RTX 3060 Ti): both new GPU tests pass and nothing else changes** **Tested** - NVIDIA GeForce RTX 3060 Ti 8 GB (32-lane waves), driver 32.0.16.2124; Ryzen 5 5600X; Windows 11 build 26300; rustc 1.98.1 MSVC; DXC 1.8.2502.11 (Windows SDK 10.0.26100); debug build. Head `77413a91` as is (base `9e3831e`), clean tree. - The new tests (`gpu_cube_coords_perm_and_legacy_fma`, `gpu_frexp_ldexp_and_unary_f16_ops`) with `cargo test -p xcl --lib <name>`: 2 passed (the GPU part ran on this adapter, no `SKIPPED`). - `cargo test --workspace -- --test-threads=4` on the head: **778 passed, 0 failed, 41 ignored**; its base `9e3831e` on the same machine: 776 passed, 0 failed, 41 ignored. SKIPPED on both: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - Merged into current `main` `c160d86e` (clean merge): **860 passed, 0 failed, 42 ignored**; `main` alone: 858 passed, 0 failed, 42 ignored, the same three SKIPPED as above. **Not tested** - AMD / native wave64 hardware; any retail title (no smoke run). **AI use:** Claude Code (Claude Opus 5.5) ran the commands on this machine and wrote this report from those runs.
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:08Z.


Test report for 77413a910109ee7abe6ad1a9edaea89d43bd08af.

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? Two breaks are not noticed:

  • V_PERM_B32 selector 10 reading s0 bit 31 instead of bit 15. The comment lists 8..11, but selector 10 is not used. A case with selector 0x0A070502, expecting 0x00840243, passes normally and fails with the break.
  • fma_legacy ignoring a zero in the second operand. Only the first operand is ever zero. The same case with SRC0 and SRC1 swapped passes normally and fails with the break.

Three 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:7142972663 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639#issuecomment-7142972663). Originally posted by [mantavisual](https://github.com/mantavisual) on 2026-11-24T20:03:08Z. --- Test report for `77413a910109ee7abe6ad1a9edaea89d43bd08af`. **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?** Two breaks are not noticed: - `V_PERM_B32` selector 10 reading s0 bit 31 instead of bit 15. The comment lists 8..11, but selector 10 is not used. A case with selector `0x0A070502`, expecting `0x00840243`, passes normally and fails with the break. - `fma_legacy` ignoring a zero in the second operand. Only the first operand is ever zero. The same case with SRC0 and SRC1 swapped passes normally and fails with the break. Three 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:34 +00:00 (Migrated from github.com)

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


Thanks for the mutation check on RTX 4060, @mantavisual! Added both missing cases in gpu_cube_coords_perm_and_legacy_fma:

  • V_PERM_B32 with selector 0x0A_07_05_02 (exercising selector 10 = s0[bit15] -> 0x00_84_02_43).
  • V_FMA_LEGACY_F32 and V_FMAC_LEGACY_F32 with SRC0/SRC1 swapped ((+inf) * (+0.0 / -0.0) + c).

Re-verified gpu_cube_coords_perm_and_legacy_fma (1 passed; 0 failed) and gpu_frexp_ldexp_and_unary_f16_ops (1 passed; 0 failed) on RTX 4060.

<!-- greyfinch-sync:ivall/xcl:comment:7143782929 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639#issuecomment-7143782929). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-24T20:35:32Z. --- Thanks for the mutation check on RTX 4060, @mantavisual! Added both missing cases in `gpu_cube_coords_perm_and_legacy_fma`: - `V_PERM_B32` with selector `0x0A_07_05_02` (exercising selector `10` = `s0[bit15]` -> `0x00_84_02_43`). - `V_FMA_LEGACY_F32` and `V_FMAC_LEGACY_F32` with `SRC0`/`SRC1` swapped (`(+inf) * (+0.0 / -0.0) + c`). Re-verified `gpu_cube_coords_perm_and_legacy_fma` (`1 passed; 0 failed`) and `gpu_frexp_ldexp_and_unary_f16_ops` (`1 passed; 0 failed`) on RTX 4060.
DavidM1911 commented 2026-11-24 21:09:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T20:56:18Z.


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:7144257086 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639#issuecomment-7144257086). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T20:56:18Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~22 ignored. Thanks!
malzaharhub-ctrl commented 2026-11-24 21:29:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by malzaharhub-ctrl on 2026-11-24T21:10:32Z.


Independent AMD GPU validation — RX 7900 XTX

Tested PR #1639 at commit 7e55a23943ae5091b80606ea86f9d06bbfcedd4d.

Hardware and environment

  • Windows 11 Pro, build 26300
  • AMD Ryzen 7 5800X
  • AMD Radeon RX 7900 XTX, 24 GB
  • AMD driver 32.0.32029.2010 (18 November 2026)
  • Rust 1.100.0
  • DXC / DXIL 1.9.2602.17

Targeted GPU tests

Both tests were run with XCL_REQUIRE_GPU=wave64.

  • gpu_cube_coords_perm_and_legacy_fma: 1 passed, 0 failed.
  • gpu_frexp_ldexp_and_unary_f16_ops: 1 passed, 0 failed.

Full GPU recompiler test group

Command:

cargo test --locked -p xcl --lib gpu::recomp -- --test-threads=1 --show-output

Result:

  • 194 passed
  • 0 failed
  • 18 ignored
  • 538 filtered out
  • Runtime: 21.66 seconds

This was run with XCL_REQUIRE_GPU=wave64.

Full workspace validation

Ran scripts/test.ps1 using PowerShell with a temporary execution-policy bypass.

Result: exit code 0.

One optional GPU test was skipped because the adapter does not support heap windows. No test failures were reported.

The repository working tree remained clean throughout testing. No source changes were made.

I have not tested any game files.

AI assistance disclosure: ChatGPT assisted with interpreting test results and drafting this report. I independently executed the commands and tests on my hardware and verified the results.

<!-- greyfinch-sync:ivall/xcl:comment:7144577135 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639#issuecomment-7144577135). Originally posted by [malzaharhub-ctrl](https://github.com/malzaharhub-ctrl) on 2026-11-24T21:10:32Z. --- ### Independent AMD GPU validation — RX 7900 XTX Tested PR #1639 at commit `7e55a23943ae5091b80606ea86f9d06bbfcedd4d`. **Hardware and environment** - Windows 11 Pro, build 26300 - AMD Ryzen 7 5800X - AMD Radeon RX 7900 XTX, 24 GB - AMD driver `32.0.32029.2010` (18 November 2026) - Rust `1.100.0` - DXC / DXIL `1.9.2602.17` **Targeted GPU tests** Both tests were run with `XCL_REQUIRE_GPU=wave64`. - `gpu_cube_coords_perm_and_legacy_fma`: 1 passed, 0 failed. - `gpu_frexp_ldexp_and_unary_f16_ops`: 1 passed, 0 failed. **Full GPU recompiler test group** Command: `cargo test --locked -p xcl --lib gpu::recomp -- --test-threads=1 --show-output` Result: - 194 passed - 0 failed - 18 ignored - 538 filtered out - Runtime: 21.66 seconds This was run with `XCL_REQUIRE_GPU=wave64`. **Full workspace validation** Ran `scripts/test.ps1` using PowerShell with a temporary execution-policy bypass. Result: exit code 0. One optional GPU test was skipped because the adapter does not support heap windows. No test failures were reported. The repository working tree remained clean throughout testing. No source changes were made. I have not tested any game files. **AI assistance disclosure:** ChatGPT assisted with interpreting test results and drafting this report. I independently executed the commands and tests on my hardware and verified the results.
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:56Z.


CI \Build and test\ and \PR description\ passed on \8587f4e. 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 (earlier RX 7900 XTX pass was on \7e55a23).

<!-- greyfinch-sync:ivall/xcl:comment:7150275053 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639#issuecomment-7150275053). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T02:03:56Z. --- CI \Build and test\ and \PR description\ passed on \8587f4e\. 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 (earlier RX 7900 XTX pass was on \7e55a23\).
piyonchu commented 2026-11-25 03:05:44 +00:00 (Migrated from github.com)

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


Rebased onto main (cbc296a, with #1617 merged) at 5384af6 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.38s/0.27s).

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

<!-- greyfinch-sync:ivall/xcl:comment:7150849277 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639#issuecomment-7150849277). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-25T02:32:10Z. --- Rebased onto `main` (`cbc296a`, with `#1617` merged) at `5384af6` 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.38s`/`0.27s`). Updated the PR description with the new head and counts. I do not have AMD GPU hardware locally, so native-wave64 AMD validation on `5384af6` remains untested on my end.
JJAutoCompare commented 2026-11-25 07:05:43 +00:00 (Migrated from github.com)

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


Tested

Clean detached PR head 5384af6315b1d22fa523442d7f599dc7c92a5f7c on STOR-WINLAB. Windows 11 Enterprise Evaluation 25H2 x64 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust/Cargo 1.100.0 MSVC, DXC/DXIL 1.9.2609.5.

cargo test --locked -p xcl --lib --no-run completed outside the Arc mutex. The prebuilt executable ran under Invoke-ArcTest.ps1 -Test, with XCL_ADAPTER=A770 and XCL_DIRECT_DXIL=0:

& 'L:/XclTooling/pr1512-tiling-edges-fddfa267/target/debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe' gpu::recomp::tests::gpu_cube_coords_perm_and_legacy_fma --exact --nocapture --test-threads=1

1 passed, 0 failed, 0 ignored, 0 skipped, 1,125 filtered, 0.45 s. Native and wrapper exits were 0. HLSL/DXC used split wave64. All 704 assertions across 64 logical lanes passed, covering cube ID and projection on all six faces, three byte permutation outputs including selector 10, and legacy FMA/FMAC with signed zero and infinity and with finite inputs in both operand orders.

Not tested

Native wave64, direct DXIL, other fixtures and adapters, workspace suite, and retail smoke.

AI use

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

<!-- greyfinch-sync:ivall/xcl:comment:7155336123 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639#issuecomment-7155336123). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T06:57:31Z. --- **Tested** Clean detached PR head `5384af6315b1d22fa523442d7f599dc7c92a5f7c` on STOR-WINLAB. Windows 11 Enterprise Evaluation 25H2 x64 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust/Cargo 1.100.0 MSVC, DXC/DXIL 1.9.2609.5. `cargo test --locked -p xcl --lib --no-run` completed outside the Arc mutex. The prebuilt executable ran under `Invoke-ArcTest.ps1 -Test`, with `XCL_ADAPTER=A770` and `XCL_DIRECT_DXIL=0`: ```powershell & 'L:/XclTooling/pr1512-tiling-edges-fddfa267/target/debug/build/xcl/97fdf2b9ff8e1482/out/xcl-97fdf2b9ff8e1482.exe' gpu::recomp::tests::gpu_cube_coords_perm_and_legacy_fma --exact --nocapture --test-threads=1 ``` **1 passed, 0 failed, 0 ignored, 0 skipped**, 1,125 filtered, 0.45 s. Native and wrapper exits were 0. HLSL/DXC used split wave64. All 704 assertions across 64 logical lanes passed, covering cube ID and projection on all six faces, three byte permutation outputs including selector 10, and legacy FMA/FMAC with signed zero and infinity and with finite inputs in both operand orders. **Not tested** Native wave64, direct DXIL, other fixtures and adapters, workspace suite, and retail smoke. **AI use** T3 Code / Codex (`gpt-6.2-sol`) ran the fixture and wrote this report.
DavidM1911 commented 2026-11-26 06:06:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:58:15Z.


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:7183970762 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639#issuecomment-7183970762). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T05:58:15Z. --- 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:58Z.


@DavidM1911 Thanks for checking — #1639 is already rebased directly onto current main (b49be18) at aab2c7f (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 using a cached ref before fetching aab2c7f?

<!-- greyfinch-sync:ivall/xcl:comment:7188277858 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639#issuecomment-7188277858). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-26T09:38:58Z. --- @DavidM1911 Thanks for checking — `#1639` is already rebased directly onto current `main` (`b49be18`) at `aab2c7f` (`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 using a cached ref before fetching `aab2c7f`?
luckyteagirl commented 2026-11-26 11:05:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T10:17:35Z.


AMD RX 6800M retest of PR head aab2c7fcb14f3a92ae1566c7c9db291814d51872 (rebased on main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7)

Tested

  • Windows 11 Home build 26200, AMD Radeon RX 6800M, driver 30.0.13002.13003; Rust stable 1.99.0 MSVC, DXC/DXIL 1.8.2502.11, debug build, clean detached PR head.
  • With XCL_ADAPTER=6800M and XCL_REQUIRE_GPU=wave64, ran cargo test --locked -p xcl --lib -- gpu_cube_coords_perm_and_legacy_fma gpu_frexp_ldexp_and_unary_f16_ops gpu_bench_really_runs --test-threads=1 --show-output.
  • 3 passed, 0 failed, 0 ignored, 0 skipped, 1335 filtered out, 2.80 s. The two new GPU fixtures passed. The adapter sanity fixture printed GPU: AMD Radeon RX 6800M; there was no SKIPPED marker. The runner's explicit adapter selector and required GPU setting prevent a silent fallback on these fixtures.

Not tested

  • Full workspace suite, retail title, release build, other GPUs, or direct DXIL mode. This is a focused native AMD wave64 test of the current head.

Codex with GPT-6.2 Sol ran the test; Codex with GPT-6.2 Astra checked the exact head, log, and report before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7189170569 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639#issuecomment-7189170569). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T10:17:35Z. --- **AMD RX 6800M retest of PR head `aab2c7fcb14f3a92ae1566c7c9db291814d51872`** (rebased on `main` `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`) **Tested** - Windows 11 Home build 26200, AMD Radeon RX 6800M, driver 30.0.13002.13003; Rust stable 1.99.0 MSVC, DXC/DXIL 1.8.2502.11, debug build, clean detached PR head. - With `XCL_ADAPTER=6800M` and `XCL_REQUIRE_GPU=wave64`, ran `cargo test --locked -p xcl --lib -- gpu_cube_coords_perm_and_legacy_fma gpu_frexp_ldexp_and_unary_f16_ops gpu_bench_really_runs --test-threads=1 --show-output`. - **3 passed, 0 failed, 0 ignored, 0 skipped**, 1335 filtered out, 2.80 s. The two new GPU fixtures passed. The adapter sanity fixture printed `GPU: AMD Radeon RX 6800M`; there was no `SKIPPED` marker. The runner's explicit adapter selector and required GPU setting prevent a silent fallback on these fixtures. **Not tested** - Full workspace suite, retail title, release build, other GPUs, or direct DXIL mode. This is a focused native AMD wave64 test of the current head. Codex with GPT-6.2 Sol ran the test; Codex with GPT-6.2 Astra checked the exact head, log, and report before posting.
piyonchu commented 2026-11-29 01:19:40 +00:00 (Migrated from github.com)

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


Rebased onto latest main (fa204595, head 82a6fb1f) 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_cube_coords_perm_and_legacy_fma -- --nocapture: 1 passed, 0 failed (0.29s)
  • cargo test -p xcl --lib gpu_frexp_ldexp_and_unary_f16_ops -- --nocapture: 1 passed, 0 failed (0.27s)
  • cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=1: 205 passed, 0 failed, 18 ignored (19.74s)
  • python scripts/pr_check.py --local: description ok; git diff --check upstream/main..HEAD: clean
<!-- greyfinch-sync:ivall/xcl:comment:7248709851 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639#issuecomment-7248709851). Originally posted by [piyonchu](https://github.com/piyonchu) on 2026-11-29T01:19:40Z. --- Rebased onto latest `main` (`fa204595`, head `82a6fb1f`) 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_cube_coords_perm_and_legacy_fma -- --nocapture`: 1 passed, 0 failed (`0.29s`) - `cargo test -p xcl --lib gpu_frexp_ldexp_and_unary_f16_ops -- --nocapture`: 1 passed, 0 failed (`0.27s`) - `cargo test -p xcl --lib gpu::recomp::tests -- --test-threads=1`: 205 passed, 0 failed, 18 ignored (`19.74s`) - `python scripts/pr_check.py --local`: `description ok`; `git diff --check upstream/main..HEAD`: clean
Foniass commented 2026-12-01 06:22:06 +00:00 (Migrated from github.com)

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


Triage (#1607) – head 82a6fb1

Part of gpu_frexp_ldexp_and_unary_f16_ops repeats #1227, opened earlier: the same v_ceil/floor/trunc/rndne/fract_f16, v_frexp_mant/exp f32 and f16, and v_ldexp_f16 checks, which #1227 runs in VOP3 form on both wave sizes. V_PERM_B32 is also covered by #445 and #1057. The cube ops, legacy FMA/FMAC and the f16 rcp/rsq/sqrt/log/exp/sin/cos checks are not tested anywhere else.
The comment "negative/subnormal frexp_mant currently depends on raw HLSL frexp()" is out of date: #587 (merged) keeps the sign. Both tests run wave64 only (for l in 0..64, run_program). I checked the perm selector and cube face expectations by hand, and they match the RDNA2 definitions.
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:7302791350 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1639#issuecomment-7302791350). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:22:06Z. --- **Triage (#1607)** – head 82a6fb1 Part of `gpu_frexp_ldexp_and_unary_f16_ops` repeats #1227, opened earlier: the same v_ceil/floor/trunc/rndne/fract_f16, v_frexp_mant/exp f32 and f16, and v_ldexp_f16 checks, which #1227 runs in VOP3 form on both wave sizes. V_PERM_B32 is also covered by #445 and #1057. The cube ops, legacy FMA/FMAC and the f16 rcp/rsq/sqrt/log/exp/sin/cos checks are not tested anywhere else. The comment "negative/subnormal frexp_mant currently depends on raw HLSL frexp()" is out of date: #587 (merged) keeps the sign. Both tests run wave64 only (`for l in 0..64`, `run_program`). I checked the perm selector and cube face expectations by hand, and they match the RDNA2 definitions. 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/1639:upstream-pr/1639'
git switch 'upstream-pr/1639'

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