FEX icon indicating copy to clipboard operation
FEX copied to clipboard

Reading an empty tagged x87 register doesnt raise exception nor substitutes QNaN Indefinite

Open simon902 opened this issue 3 months ago • 0 comments

Per the SDM, reading an x87 stack register whose tag is marked empty is a stack-underflow condition that sets IE and SF in the status word. When masked, the FPU substitutes the QNaN indefinite value into the register instead of its actual contents. FEX doesn't implement this at all, the same sequence leaves the value completely unchanged and never raises or substitutes anything.

simon902 avatar Sep 04 '26 10:09 simon902