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

27 lines
395 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "0x4008000000000000"
},
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
}
%endif
mov rdx, 0xe0000000
mov rax, 0x3ff0000000000000 ; 1.0
mov [rdx + 8 * 0], rax
mov rax, 0x4000000000000000 ; 2.0
mov [rdx + 8 * 1], rax
fld qword [rdx + 8 * 0]
fld qword [rdx + 8 * 1]
; fadd st(0), st(i)
fadd st0, st1
fst qword [rdx + 8 * 2]
mov rax, [rdx + 8 * 2]
hlt