Repository navigation
Conversation
|
A note on denormals, from reading the diff (not run).
So for the usual float mode, passing the operands through AI-assisted (Claude Code). No game files. |
Lowers RDNA2's IEEE-754 f32 division pre-scale and post-scale FMA helpers (�_div_scale_f32 VOP3B 0x16d and �_div_fmas_f32 VOP3A 0x16f) in pure 32-bit DXIL (no INT64/F64 flags) with FTZ-immune exponent scaling, and wires implicit VCC tracking for �_div_fmas_f32 through IR and lane-mask structure analysis. AI-assisted with Gemini 4 Neon (Extra High Mode); synthetic tests only, zero game data used.
fbf1dc3 to
5cea8dd
Compare
|
Double rounding on denormal quotients The denormal-mode point is already raised above. One more: in Related: this uses FMad (DXIL op 46), which isn't guaranteed to be fused. That's the existing Static review (AI-assisted), read against |
…v_fmas_f32 Addresses review feedback on Marvisak#1747: - Flushes f32 inputs via `Self::ftz` and flushes subnormal outputs to signed zero in `scale_f32_pow2`, `div_scale_f32`, and `v_div_fmas_f32`, matching RDNA2's default f32 denormal mode (`FLOAT_MODE = 0xc0`, mode 0) and the rest of `emit::lower`. - Eliminates double rounding on denormal quotients (subnormal scaled outputs flush to signed zero; normal quotients match IEEE-754 at 0 ULP) and removes the `max_ulp = 1` allowance from `rdna2_fdiv32_pipeline_with_div_scale_and_div_fmas`. - Documents the existing `shortcut:` for DXIL `FMad` (op 46) in `v_div_fmas_f32`. - Updates tests to verify FTZ behavior on subnormal numerator/denominator inputs and quotients scaling into the subnormal range. Clean-room synthetic tests only; zero game data used. AI-assisted with Gemini 4 Neon (Extra High Mode).
|
Thanks @upipibi and @rminzao for the sharp RDNA2 denormal-mode and rounding feedback! Updated this branch to match VIctory's default f32 FTZ mode (
Re-verified on Windows 11 with NVIDIA GeForce RTX 3060 Ti + Microsoft D3D12 WARP +
(Clean-room synthetic tests only, zero game data. AI-assisted with Gemini 4 Neon (Extra High Mode).) |
|
Automated triage for the maintainers. Needs rebase. This pull request conflicts with Generated by Claude Code |
Summary
Lowers RDNA2's f32 IEEE-754 division pre-scale and post-scale instructions — �_div_scale_f32 (VOP3B