Three lowerings gave results the console's GPU does not (issue #2, from
hardware measurements published by another project):
- v_med3_f32/f16: with a NaN operand the hardware gives the minimum of
the three; we gave the median of the other two.
- v_fract_f32/f16: the hardware never reaches 1.0 (a tiny negative
input gives the largest value below it); the host's own fract differs
by vendor and can give 1.0.
- v_bfe_i32/s_bfe_i32: a signed field running past bit 31 extends from
bit 31; the shift is arithmetic now. Fields that fit are unchanged.
The fract case is asserted in float_semantics_are_the_consoles (the
console compiler emits v_fract_f32 for frac). The other two cannot be
produced from HLSL with the compiler the tests use and rest on the
measured values in the issue.
Still open from the issue: range reduction before sine and cosine, and
denormal operands of the legacy multiply.
Refs #2
Co-Authored-By: Claude Fable 5.2 <[email protected]>