FEX/unittests/ASM/X87_F64/D8_07_F64.asm
2022-04-22 01:36:56 +09:30

24 lines
354 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "0x4000000000000000"
},
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
}
%endif
mov rdx, 0xe0000000
mov rax, 0x3ff0000000000000 ; 1.0
mov [rdx + 8 * 0], rax
mov rax, 0x40000000 ; 2.0
mov [rdx + 8 * 1], rax
fld qword [rdx + 8 * 0]
fdivr dword [rdx + 8 * 1]
fst qword [rdx + 8 * 2]
mov rax, [rdx + 8 * 2]
hlt