Skip to content

[upstream #1122] Tests: check v_fma_mix_f32, v_fma_mixlo_f16 and v_fma_mixhi_f16 on the GPU - #38

Closed
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1122
Closed

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1122

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Add GPU test coverage for v_fma_mix_f32, v_fma_mixlo_f16, and v_fma_mixhi_f16 (ENC_VOP3P) against a pure-Rust reference in both wave64 and wave32.

What is in it

  • crates/xcl/src/gpu/recomp/tests.rs: add gpu_fma_mix_f32_and_f16 covering OP_SEL_HI / OP_SEL_HI_2 / OP_SEL, NEG_HI (abs), NEG, CLAMP, SGPR SRC2, untouched 16-bit half preservation, chained mixlo + mixhi into one VDST, and dynamic S_ROUND_MODE RNE/RTZ rounding on v_fma_mixhi_f16.

Tested

  • AMD Radeon RX 9070 (RDNA4, native wave64, driver 32.0.32029.2010), AMD Ryzen 5 7500F, Windows 11 Pro 10.0.26300, rustc 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17, debug build
  • cargo test -p xcl --lib -- gpu_fma_mix_f32_and_f16 --nocapture --test-threads=1: 1 passed, 0 failed, 0 ignored (0 SKIPPED)
  • cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored (xcl --lib: 699 passed, 0 failed, 21 ignored; SKIPPED GPU tests: 0)

Not tested

  • NVIDIA / Intel GPUs, Linux / Wine, release build, retail titles (scripts/smoke.ps1; tests-only change)

AI use

  • Google Antigravity (Gemini 4 Neon) wrote the test, ran the builds and test suite locally, and drafted this description.

Mirror of xcl-dev#1122 (auto-synced, do not edit).

…e GPU

Add GPU coverage for ENC_VOP3P mixed-precision FMA ops (`v_fma_mix_f32`,
`v_fma_mixlo_f16`, `v_fma_mixhi_f16`) against a pure-Rust reference in
both wave64 and wave32, exercising `OP_SEL_HI`, `OP_SEL_HI_2`, `OP_SEL`,
`NEG_HI` (abs), `NEG`, `CLAMP`, SGPR `SRC2`, untouched 16-bit half
preservation, chained `mixlo` + `mixhi` writes to one VDST, and dynamic
`S_ROUND_MODE` RNE/RTZ rounding on `v_fma_mixhi_f16`.

Assisted-by: Google Antigravity (Gemini 4 Neon)
@ufoptg

ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Upstream PR xcl-dev#1122 was closed or merged.

@ufoptg ufoptg closed this Nov 25, 2026
@ufoptg
ufoptg deleted the upstream-pr/1122 branch November 25, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants