FEX/unittests/ASM/X87/DB_C0.asm
2020-09-23 09:42:10 -07:00

32 lines
395 B
NASM

%ifdef CONFIG
{
"RegData": {
"MM5": ["0x0000000000000000", "0x0000"],
"MM6": ["0x8000000000000000", "0x3FFF"],
"MM7": ["0x8000000000000000", "0x3FFF"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov eax, 0x3f800000 ; 1.0
mov [rdx + 8 * 0], eax
fld1
fldz
mov eax, 2
cmp eax, 1
fcmovnb st0, st1
fldz
cmp eax, 3
fcmovnb st0, st2
hlt