mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-30 12:25:49 +00:00
v_fma_f32, v_fmac_f32, v_fmamk_f32 and v_fmaak_f32 threw "f32 denormal mode 2 is not implemented" whenever FLOAT_MODE flushed f32 denormal inputs but kept denormal results. On RDNA2 (gfx1036) at round to nearest even, mode 2 flushes the inputs and rounds the fused result once with gradual underflow, which the host's Fma gives under DenormPreserve 32. The translation now matches all 5,596 measured triples for the four forms at IEEE 0 and 1. Mode 1 keeps throwing: there the hardware flushes a result that is tiny after rounding with an unbounded exponent even when the addend is nonzero. Co-Authored-By: Claude Opus 5.5 <[email protected]>