mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 16:43:05 -05:00
With the f32 denormal field of FLOAT_MODE set to keep, v_cmp_X_f32 and v_cmpx_X_f32 read a denormal operand as zero: NVIDIA, RADV and lavapipe all flush denormals in their float compares. Compare the operands as sign-magnitude integers instead, with NaN handled apart. Compares with flushed denormals are unchanged. This matches RDNA2 (gfx1036) on 256 operand pairs per opcode, with f32 denormals kept and flushed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>