FEX icon indicating copy to clipboard operation
FEX copied to clipboard

x87 instructions do not produce indefinite result on invalid operand

Open simon902 opened this issue 3 months ago • 0 comments

On an operand that is in an unsupported format (Pseudo-NaN, Pseudo-Infinity, Unnormal), FEX's F80Fallback layer either fails to detect the invalid condition or never returns indefinite value (QNaN or packed-BCD).

Affects (at least):

  • F2XM1, FYL2X, FYL2XP1, FPATAN , FPTAN, FSIN, FCOS, FSINCOS, FBSTP.

FADD/FSUB/FMUL and so on seem to be unaffected as they use Berkeley SoftFloat primitives.

simon902 avatar Sep 02 '26 07:09 simon902