FEX/unittests/ASM/fadd.asm
Ryan Houdek 0c7c7ba670 Removes undefined behaviour in our unit tests
Most of these were relying on the upper 16bits of the 80bit MM registers
to be zero.
This isn't necessarily true as one will find out when running this under
the host runner.
2020-09-22 18:32:19 -07:00

21 lines
272 B
NASM

%ifdef CONFIG
{
"Match": "All",
"RegData": {
"MM7": ["0xc90fdb0000000000", "0x4001"]
}
}
%endif
; calcuate pi + pi
fld dword [rel pi]
fld dword [rel pi]
faddp
hlt
align 8
pi: dd 0x40490fdb ; 3.14...
one: dd 0x3f800000 ; 1.0
ptone: dd 0x3dcccccd ; 0.1