FEX/unittests/ASM/X87/D9_F0.asm
Ryan Houdek a4f92b8564 Removes some undefined behaviour in f2xm1 unit test
If the input range is outside of -1.0 to +1.0 then the result is
undefined.
To avoid precision problems just check for zero, aka 2^0-1 which also
returns zero
2020-09-23 09:45:08 -07:00

22 lines
228 B
NASM

%ifdef CONFIG
{
"RegData": {
"MM7": ["0x0000000000000000", "0x0000"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
lea rdx, [rel data]
fld tword [rdx + 8 * 0]
f2xm1
hlt
align 8
data:
dt 0.0
dq 0