Recompiler tests: GPU checks for v_fmac_f32, v_fmamk_f32 and v_fmaak_f32 #732

Open
13hourstilliland wants to merge 1 commit from upstream-pr/737 into main
13hourstilliland commented 2026-11-24 04:21:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by 13hourstilliland on 2026-11-24T04:21:31Z.


Adds a GPU test for three RDNA2 instructions that emit.rs translates but no test runs: v_fmac_f32 (the destination is the addend), v_fmamk_f32 (a * K + b) and v_fmaak_f32 (a * b + K). Test only, no runtime change.

What is in it

  • gpu_valu_fmac_fmamk_fmaak in crates/xcl/src/gpu/recomp/tests.rs, after gpu_nonfused_mad_and_mac_prevent_fma_contraction (away from the lines open PRs add to): one kernel with all 3 instructions, run as wave64 where the adapter has it and as wave32 everywhere (gpu_waves), a 12 x 12 x 8 grid (±0, ±1, 2, 0.5, -3, 1.5, 0.25, ±inf and NaN for the factors; ±0, 1, -2.5, 100, 0.75, inf and NaN for the addend), 1152 triples per wave size, each lane compared with the RDNA2 definition computed on the CPU with f32::mul_add and the literal K in its place, bit for bit (any NaN for NaN); the products on this grid are exact, so fused and unfused multiply-adds agree.
  • A failure lists the lane, instruction, operands, result and expected value, and counts the wrong results per instruction.
  • Checked that it catches bugs, on a local copy, measured on 3db536e (before the rebase onto main 91f9a5e; the test code did not change): with the reference changed (wrong reference for v_fmamk_f32 (K_AK instead of K_MK): wave32, 696 wrong (V_FMAMK_F32: 696), no other instruction) the test fails; with the fmac addend replaced by 0, and the literal moved to the other operand in fmamk and in fmaak applied to emit.rs all at once it fails and names every instruction (wave32, 2034 wrong (V_FMAC_F32: 550, V_FMAMK_F32: 708, V_FMAAK_F32: 776), 550 to 776 wrong per instruction). Those edits are not in the PR.
  • The legacy FMA forms are not in this PR; #670 covers them.

Tested

  • NVIDIA GeForce RTX 3070 8 GB, driver 610.88; Intel Core i5-12600K; Windows 11 Home build 26200
  • Rust 1.100.0 stable-x86_64-pc-windows-gnu (MinGW linker), DXC 1.9.2609.5, debug build, commit 9b5e344268 (on main 91f9a5e9f0)
  • cargo test --workspace --no-fail-fast -- --test-threads=4, run in the interactive desktop session: 693 passed, 0 failed, 41 ignored (lib: 653 passed, 0 failed, 21 ignored; e2e 3 of 3; gpu_valu_fmac_fmamk_fmaak ok). main 91f9a5e9f0 on the same machine: 692 passed, 0 failed, 41 ignored (lib: 652 passed, 0 failed, 21 ignored)
  • SKIPPED (no wave64 on this GPU): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware

Not tested

  • The wave64 path: the RTX 3070 has 32-lane waves only, so the test ran as wave32. Not run on AMD.
  • The MSVC toolchain (stable-x86_64-pc-windows-msvc): built with the GNU toolchain only.
  • A release build.
  • A retail title: not needed for a test-only change (no crates/xcl/src runtime file changes).

AI use

  • Hermes Agent with Claude Opus 5.5: wrote the test, ran the tests and the mutation check on the hardware above, and wrote this description.
<!-- greyfinch-sync:ivall/xcl:issue:5466026985 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/737). Originally posted by [13hourstilliland](https://github.com/13hourstilliland) on 2026-11-24T04:21:31Z. --- Adds a GPU test for three RDNA2 instructions that `emit.rs` translates but no test runs: `v_fmac_f32` (the destination is the addend), `v_fmamk_f32` (`a * K + b`) and `v_fmaak_f32` (`a * b + K`). Test only, no runtime change. **What is in it** - `gpu_valu_fmac_fmamk_fmaak` in `crates/xcl/src/gpu/recomp/tests.rs`, after `gpu_nonfused_mad_and_mac_prevent_fma_contraction` (away from the lines open PRs add to): one kernel with all 3 instructions, run as wave64 where the adapter has it and as wave32 everywhere (`gpu_waves`), a 12 x 12 x 8 grid (±0, ±1, 2, 0.5, -3, 1.5, 0.25, ±inf and NaN for the factors; ±0, 1, -2.5, 100, 0.75, inf and NaN for the addend), 1152 triples per wave size, each lane compared with the RDNA2 definition computed on the CPU with `f32::mul_add` and the literal `K` in its place, bit for bit (any NaN for NaN); the products on this grid are exact, so fused and unfused multiply-adds agree. - A failure lists the lane, instruction, operands, result and expected value, and counts the wrong results per instruction. - Checked that it catches bugs, on a local copy, measured on 3db536e (before the rebase onto main 91f9a5e; the test code did not change): with the reference changed (wrong reference for `v_fmamk_f32` (`K_AK` instead of `K_MK`): `wave32, 696 wrong (V_FMAMK_F32: 696)`, no other instruction) the test fails; with the fmac addend replaced by 0, and the literal moved to the other operand in fmamk and in fmaak applied to `emit.rs` all at once it fails and names every instruction (`wave32, 2034 wrong (V_FMAC_F32: 550, V_FMAMK_F32: 708, V_FMAAK_F32: 776)`, 550 to 776 wrong per instruction). Those edits are not in the PR. - The legacy FMA forms are not in this PR; #670 covers them. **Tested** - NVIDIA GeForce RTX 3070 8 GB, driver 610.88; Intel Core i5-12600K; Windows 11 Home build 26200 - Rust 1.100.0 `stable-x86_64-pc-windows-gnu` (MinGW linker), DXC 1.9.2609.5, debug build, commit 9b5e3442686c (on main 91f9a5e9f031) - `cargo test --workspace --no-fail-fast -- --test-threads=4`, run in the interactive desktop session: 693 passed, 0 failed, 41 ignored (lib: 653 passed, 0 failed, 21 ignored; `e2e` 3 of 3; `gpu_valu_fmac_fmamk_fmaak` ok). `main` 91f9a5e9f031 on the same machine: 692 passed, 0 failed, 41 ignored (lib: 652 passed, 0 failed, 21 ignored) - `SKIPPED` (no wave64 on this GPU): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` **Not tested** - The wave64 path: the RTX 3070 has 32-lane waves only, so the test ran as wave32. Not run on AMD. - The MSVC toolchain (`stable-x86_64-pc-windows-msvc`): built with the GNU toolchain only. - A release build. - A retail title: not needed for a test-only change (no `crates/xcl/src` runtime file changes). **AI use** - Hermes Agent with Claude Opus 5.5: wrote the test, ran the tests and the mutation check on the hardware above, and wrote this description.
MesshM commented 2026-11-24 07:06:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T04:39:54Z.


Test run of 9b5e3442686c2c1878b63bca3254667d466573f5 on AMD RDNA4. I merged it onto current main 64b3f35 locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, mesh shaders), 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: 702 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 661 passed, 0 failed, 21 ignored
  • 0 SKIPPED; gpu_valu_fmac_fmamk_fmaak passes.

Review: fmac uses the destination as the addend, fmamk is a·K + b and fmaak a·b + K, compared against mul_add (one rounding), and the literal K is placed as the encoding expects. 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:7122225853 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/737#issuecomment-7122225853). Originally posted by [MesshM](https://github.com/MesshM) on 2026-11-24T04:39:54Z. --- Test run of `9b5e3442686c2c1878b63bca3254667d466573f5` on AMD RDNA4. I merged it onto current `main` `64b3f35` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64, mesh shaders), 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: **702 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 661 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `gpu_valu_fmac_fmamk_fmaak` passes. **Review:** `fmac` uses the destination as the addend, `fmamk` is a·K + b and `fmaak` a·b + K, compared against `mul_add` (one rounding), and the literal K is placed as the encoding expects. 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.
futurepro62 commented 2026-11-24 07:06:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T04:46:47Z.


An NVIDIA run, since the report above is on RDNA4 (native wave64). Tested exact head 9b5e344 (on its base 91f9a5e).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 693 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new test ran and passed (not skipped): gpu::recomp::tests::gpu_valu_fmac_fmamk_fmaak ... ok.
    Not tested
  • AMD (covered above), a release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7122331188 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/737#issuecomment-7122331188). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T04:46:47Z. --- An NVIDIA run, since the report above is on RDNA4 (native wave64). Tested exact head `9b5e344` (on its base `91f9a5e`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **693 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new test ran and passed (not skipped): `gpu::recomp::tests::gpu_valu_fmac_fmamk_fmaak ... ok`. **Not tested** - AMD (covered above), a release build. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
ItsMrDubey commented 2026-11-24 07:06:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ItsMrDubey on 2026-11-24T04:57:24Z.


Test report for 9b5e3442686c2c1878b63bca3254667d466573f5 (this PR's head)

Tested

  • NVIDIA GeForce RTX 4070 Ti 12 GB (Ada), driver 617.14; Intel Core i9-10900K, 32 GB RAM; Windows 11 Pro build 26300
  • Rust 1.88.0 (stable-x86_64-pc-windows-msvc), debug; DXC 1.9.2602.17 from Windows SDK 10.0.26100
cargo build --workspace
cargo test --workspace --no-fail-fast -- --test-threads=4

16 test binaries: 692 passed, 1 failed, 41 ignored. Same machine, main 64b3f3559: 700 passed, 1 failed, 41 ignored.

This PR's tests:

  • gpu::recomp::tests::gpu_valu_fmac_fmamk_fmaak: ok

Failures:

  • hle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory fails on this machine on every run, on this PR's head and on main 64b3f3559 alike (5 of 5 reruns on main), so it is not from this PR. #650 fixes it here.

16 test binaries instead of main's 17 because this branch predates tests/sparse_reinit.rs; nothing crashed.

SKIPPED (no wave64 on this GPU): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.

AI use: Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report from their output.

<!-- greyfinch-sync:ivall/xcl:comment:7122490814 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/737#issuecomment-7122490814). Originally posted by [ItsMrDubey](https://github.com/ItsMrDubey) on 2026-11-24T04:57:24Z. --- Test report for `9b5e3442686c2c1878b63bca3254667d466573f5` (this PR's head) **Tested** - NVIDIA GeForce RTX 4070 Ti 12 GB (Ada), driver 617.14; Intel Core i9-10900K, 32 GB RAM; Windows 11 Pro build 26300 - Rust 1.88.0 (`stable-x86_64-pc-windows-msvc`), debug; DXC 1.9.2602.17 from Windows SDK 10.0.26100 ``` cargo build --workspace cargo test --workspace --no-fail-fast -- --test-threads=4 ``` 16 test binaries: **692 passed, 1 failed, 41 ignored**. Same machine, `main` `64b3f3559`: 700 passed, 1 failed, 41 ignored. This PR's tests: - `gpu::recomp::tests::gpu_valu_fmac_fmamk_fmaak`: ok Failures: - `hle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memory` fails on this machine on every run, on this PR's head and on `main` `64b3f3559` alike (5 of 5 reruns on `main`), so it is not from this PR. #650 fixes it here. 16 test binaries instead of `main`'s 17 because this branch predates `tests/sparse_reinit.rs`; nothing crashed. SKIPPED (no wave64 on this GPU): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. AI use: Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report from their output.
JJAutoCompare commented 2026-11-25 06:06:08 +00:00 (Migrated from github.com)

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


Empirical test report (9b5e3442)

Verified PR #737 at 9b5e3442686c2c1878b63bca3254667d466573f5 in a clean detached checkout.

Hardware / environment

  • Intel Arc A770 (XCL_ADAPTER=A770), Windows x64 build 26200. The machine reported CPU identifier AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD.
  • Rust 1.100.0 (0ef1bc386 2026-11-09), host x86_64-pc-windows-msvc. The DXC executable reported 1.9.2609.5 (01b62ad47), and the fixture logged loading dxcompiler and DXIL version 1.9.2609.5.
  • Cargo's unoptimized test profile ran with incremental compilation and debug info disabled.

Commands and results

  • cargo test -p xcl --lib --no-run --message-format=json exited 0 in 59.93s outside the GPU lock. The Cargo artifact record identified the library test executable.
  • Under Invoke-ArcTest.ps1, with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1, ran xcl-00e28da3621caf64.exe gpu::recomp::tests::gpu_valu_fmac_fmamk_fmaak --exact --nocapture --test-threads=1. It exited 0 in 0.64s of test time. The harness reported 1 passed, 0 failed, 0 ignored, and 673 filtered out. The captured output contained 0 SKIPPED lines.

Observed behavior

  • The fixture ran one kernel containing V_FMAC_F32, V_FMAMK_F32, and V_FMAAK_F32 over 1,152 operand triples per wave size exercised, including signed zeros, infinities, and NaNs. All results met the CPU f32::mul_add reference check, which compares result bits and accepts any NaN when the reference is NaN.
  • The fixture always exercises wave32 after GPU initialization and adds wave64 when the adapter reports support. The success log does not list wave sizes individually.

Not tested

  • Omitted the full GPU workspace suite and game smoke runs. This fixture uses exact products and leaves cases that distinguish fused from unfused arithmetic outside its coverage.

AI use

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

<!-- greyfinch-sync:ivall/xcl:comment:7154393293 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/737#issuecomment-7154393293). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T06:03:14Z. --- ### Empirical test report (9b5e3442) Verified PR #737 at `9b5e3442686c2c1878b63bca3254667d466573f5` in a clean detached checkout. **Hardware / environment** - Intel Arc A770 (`XCL_ADAPTER=A770`), Windows x64 build 26200. The machine reported CPU identifier `AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD`. - Rust `1.100.0 (0ef1bc386 2026-11-09)`, host `x86_64-pc-windows-msvc`. The DXC executable reported `1.9.2609.5 (01b62ad47)`, and the fixture logged loading dxcompiler and DXIL version `1.9.2609.5`. - Cargo's unoptimized test profile ran with incremental compilation and debug info disabled. **Commands and results** - `cargo test -p xcl --lib --no-run --message-format=json` exited 0 in 59.93s outside the GPU lock. The Cargo artifact record identified the library test executable. - Under `Invoke-ArcTest.ps1`, with `XCL_ADAPTER=A770` and `RUST_TEST_NOCAPTURE=1`, ran `xcl-00e28da3621caf64.exe gpu::recomp::tests::gpu_valu_fmac_fmamk_fmaak --exact --nocapture --test-threads=1`. It exited 0 in 0.64s of test time. The harness reported 1 passed, 0 failed, 0 ignored, and 673 filtered out. The captured output contained 0 `SKIPPED` lines. **Observed behavior** - The fixture ran one kernel containing `V_FMAC_F32`, `V_FMAMK_F32`, and `V_FMAAK_F32` over 1,152 operand triples per wave size exercised, including signed zeros, infinities, and NaNs. All results met the CPU `f32::mul_add` reference check, which compares result bits and accepts any NaN when the reference is NaN. - The fixture always exercises wave32 after GPU initialization and adds wave64 when the adapter reports support. The success log does not list wave sizes individually. **Not tested** - Omitted the full GPU workspace suite and game smoke runs. This fixture uses exact products and leaves cases that distinguish fused from unfused arithmetic outside its coverage. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr737-focused.log` and published.
DavidM1911 commented 2026-11-25 12:06:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T11:28:57Z.


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:7161104389 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/737#issuecomment-7161104389). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T11:28:57Z. --- 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:41:47 +00:00 (Migrated from github.com)

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


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:7252632953 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/737#issuecomment-7252632953). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:41:47Z. --- 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.
relativespace2K commented 2026-11-30 03:28:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by relativespace2K on 2026-11-30T03:28:04Z.


merge-check
base: 53e85fb1
head: 9b5e344268
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2789 passed, 6 failed, 49 ignored; failing: gpu::dxil::compact_tests::gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form, gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline, ram_budget::tests::windows_takes_a_working_set_maximum_and_lifts_it, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (in --test gpu_two_pass_cache_e2e, so 5 failing tests give 6 failures). The same five fail on base 53e85fb1 alone (2788 passed, 6 failed, 49 ignored there), so none comes from this PR; its new GPU test passed and is not among the SKIPPED lines, so it ran on the RX 6800 XT in both wave sizes. 13 SKIPPED lines, all environmental: no D3D12 debug layer / d3d12SDKLayers.dll, no heap windows, no GPU_UPLOAD, per-lane f16/f32 forms refused.
review: no blocking finding; the whole diff is one test of 50 lines. It compares the three multiply-add forms against f32::mul_add with the literal where each instruction puts it (v_fmac_f32 takes the destination as addend, v_fmamk_f32 a literal multiplier, v_fmaak_f32 a literal addend), over a cross product of values that includes the signed zeros, both infinities and NaN, and it compares bits rather than a tolerance, with NaN handled by is_nan. The operands are dyadic so every product is exact: the comment says that on purpose, because an unfused and a fused result agree there and the test is aimed at the wiring of the three forms, not at contraction (that is #472 and #676's separate control). One note, not blocking: because the products are exact, the test cannot catch a backend that stops fusing these forms on inexact inputs; that is deliberate and stated.
performance: none: tests only.
verdict: safe to merge
hardware / tool and model: AMD Radeon RX 6800 XT 16 GB (RDNA2, wave64), driver 32.0.21045.29003; Ryzen 5 5600, 32 GB RAM; Windows 10 IoT Enterprise LTSC 2024, 10.0.26100 build 26100.9974; Rust 1.100.0; DXC 1.9.2602.17; debug build. DeepSeek Harness coding agent, model DeepSeek V4.1 Flash.

<!-- greyfinch-sync:ivall/xcl:comment:7267917519 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/737#issuecomment-7267917519). Originally posted by [relativespace2K](https://github.com/relativespace2K) on 2026-11-30T03:28:04Z. --- merge-check base: 53e85fb1 head: 9b5e3442686c2c1878b63bca3254667d466573f5 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2789 passed, 6 failed, 49 ignored; failing: gpu::dxil::compact_tests::gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form, gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline, ram_budget::tests::windows_takes_a_working_set_maximum_and_lifts_it, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (in `--test gpu_two_pass_cache_e2e`, so 5 failing tests give 6 failures). The same five fail on base 53e85fb1 alone (2788 passed, 6 failed, 49 ignored there), so none comes from this PR; its new GPU test passed and is not among the SKIPPED lines, so it ran on the RX 6800 XT in both wave sizes. 13 SKIPPED lines, all environmental: no D3D12 debug layer / d3d12SDKLayers.dll, no heap windows, no GPU_UPLOAD, per-lane f16/f32 forms refused. review: no blocking finding; the whole diff is one test of 50 lines. It compares the three multiply-add forms against `f32::mul_add` with the literal where each instruction puts it (`v_fmac_f32` takes the destination as addend, `v_fmamk_f32` a literal multiplier, `v_fmaak_f32` a literal addend), over a cross product of values that includes the signed zeros, both infinities and NaN, and it compares bits rather than a tolerance, with NaN handled by `is_nan`. The operands are dyadic so every product is exact: the comment says that on purpose, because an unfused and a fused result agree there and the test is aimed at the wiring of the three forms, not at contraction (that is #472 and #676's separate control). One note, not blocking: because the products are exact, the test cannot catch a backend that stops fusing these forms on inexact inputs; that is deliberate and stated. performance: none: tests only. verdict: safe to merge hardware / tool and model: AMD Radeon RX 6800 XT 16 GB (RDNA2, wave64), driver 32.0.21045.29003; Ryzen 5 5600, 32 GB RAM; Windows 10 IoT Enterprise LTSC 2024, 10.0.26100 build 26100.9974; Rust 1.100.0; DXC 1.9.2602.17; debug build. DeepSeek Harness coding agent, model DeepSeek V4.1 Flash.
Parakeet-Wheat commented 2026-11-30 03:30:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Parakeet-Wheat on 2026-11-30T03:30:05Z.


merge-check
base: cfb9753a8c
head: 9b5e344268
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2835 passed, 0 failed, 51 ignored; SKIPPED: 26 (22 no wave64, 2 no heap windows, 1 driver cache needs Developer Mode, 1 no GPU_UPLOAD heaps); failing: none
review: No blocking finding; whole diff read. gpu_valu_fmac_fmamk_fmaak passes as wave32; this GPU has no wave64. On current main, kernel_wave builds the test's kernel with the direct DXIL translator by default (gpu/dxil/kernel.rs:43-47). The description's mutation edits emit.rs, the HLSL path, which this test reaches only with XCL_DIRECT_DXIL=0. We swapped v_fmamk_f32's operands (a · K + c to c · K + a) and ran the test. With the swap in emit.rs, the test passes by default and fails with XCL_DIRECT_DXIL=0 (588 wrong, all V_FMAMK_F32). With the swap in the direct translator (lower_valu.rs:670), the test fails by default (588 wrong). This test does not reach the second direct v_fmamk_f32 lowering (lower_valu.rs:1200): with the same swap there, it passes. The description says no test runs these instructions. On main, check_f32_arithmetic checks v_fmac_f32, and check_f32_three_source checks fmamk and fmaak (lower.rs:2799, lower.rs:2893). The new test adds ±0, ±inf and NaN as factors and addends.
performance: No runtime change: the PR changes only gpu/recomp/tests.rs. This check made no title run.
verdict: safe to merge (test-only; the new test passes on our RTX 3070 and catches a swapped v_fmamk_f32 operand on the path it runs)
hardware / tool and model: RTX 3070 8 GB (610.88), AMD Ryzen 5 5600X, Windows 11 Home 26300, Rust 1.95.0, debug / Claude Code, Claude Opus 5.5 (merge, build, suite, hand mutations and review)

<!-- greyfinch-sync:ivall/xcl:comment:7267946039 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/737#issuecomment-7267946039). Originally posted by [Parakeet-Wheat](https://github.com/Parakeet-Wheat) on 2026-11-30T03:30:05Z. --- merge-check base: cfb9753a8cbf5517ee36914b7041cb62b4a97582 head: 9b5e3442686c2c1878b63bca3254667d466573f5 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2835 passed, 0 failed, 51 ignored; SKIPPED: 26 (22 no wave64, 2 no heap windows, 1 driver cache needs Developer Mode, 1 no GPU_UPLOAD heaps); failing: none review: No blocking finding; whole diff read. `gpu_valu_fmac_fmamk_fmaak` passes as wave32; this GPU has no wave64. On current main, `kernel_wave` builds the test's kernel with the direct DXIL translator by default (`gpu/dxil/kernel.rs:43-47`). The description's mutation edits `emit.rs`, the HLSL path, which this test reaches only with `XCL_DIRECT_DXIL=0`. We swapped `v_fmamk_f32`'s operands (a · K + c to c · K + a) and ran the test. With the swap in `emit.rs`, the test passes by default and fails with `XCL_DIRECT_DXIL=0` (588 wrong, all `V_FMAMK_F32`). With the swap in the direct translator (`lower_valu.rs:670`), the test fails by default (588 wrong). This test does not reach the second direct `v_fmamk_f32` lowering (`lower_valu.rs:1200`): with the same swap there, it passes. The description says no test runs these instructions. On main, `check_f32_arithmetic` checks `v_fmac_f32`, and `check_f32_three_source` checks fmamk and fmaak (`lower.rs:2799`, `lower.rs:2893`). The new test adds ±0, ±inf and NaN as factors and addends. performance: No runtime change: the PR changes only `gpu/recomp/tests.rs`. This check made no title run. verdict: safe to merge (test-only; the new test passes on our RTX 3070 and catches a swapped `v_fmamk_f32` operand on the path it runs) hardware / tool and model: RTX 3070 8 GB (610.88), AMD Ryzen 5 5600X, Windows 11 Home 26300, Rust 1.95.0, debug / Claude Code, Claude Opus 5.5 (merge, build, suite, hand mutations and review)
brainhay5 commented 2026-11-30 03:32:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T03:32:16Z.


merge-check claim
head: 9b5e344268

<!-- greyfinch-sync:ivall/xcl:comment:7267977568 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/737#issuecomment-7267977568). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T03:32:16Z. --- merge-check claim head: 9b5e3442686c2c1878b63bca3254667d466573f5
brainhay5 commented 2026-11-30 03:37:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T03:37:59Z.


merge-check
base: cfb9753a8c
head: 9b5e344268
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2834 passed, 1 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

<!-- greyfinch-sync:ivall/xcl:comment:7268060854 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/737#issuecomment-7268060854). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T03:37:59Z. --- merge-check base: cfb9753a8cbf5517ee36914b7041cb62b4a97582 head: 9b5e3442686c2c1878b63bca3254667d466573f5 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2834 passed, 1 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
Foniass commented 2026-12-01 04:02:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:02:18Z.


Triage (#1607) – head 9b5e344

Main's F32_THREE_SOURCE program (9231d486) already checks v_fmamk_f32 / v_fmaak_f32 on the GPU with exact products. This PR adds v_fmac_f32 (VOP2, destination as addend) and signed zeros, infinities and NaN on wave32 and wave64. No open PR adds the same test. #590 and #738 (same author) cover other instructions.
No problems found: with exact products, a fused and an unfused reference agree, as the doc comment says.
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:7300314562 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/737#issuecomment-7300314562). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:02:18Z. --- **Triage (#1607)** – head 9b5e344 Main's `F32_THREE_SOURCE` program (9231d486) already checks v_fmamk_f32 / v_fmaak_f32 on the GPU with exact products. This PR adds v_fmac_f32 (VOP2, destination as addend) and signed zeros, infinities and NaN on wave32 and wave64. No open PR adds the same test. #590 and #738 (same author) cover other instructions. No problems found: with exact products, a fused and an unfused reference agree, as the doc comment says. 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/737:upstream-pr/737'
git switch 'upstream-pr/737'

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