FEX/unittests/ASM/OpSize/66_7D.asm
Ryan Houdek bef4e2ff01 Fixes HSUB unit tests
I had the values reversed from what was expected.
Changed to reflect what changed in the previous commit.

Confirmed by host unit test runner
2020-09-23 00:32:28 -07:00

30 lines
470 B
NASM

%ifdef CONFIG
{
"RegData": {
"XMM0": ["0x3ff0000000000000", "0x4010000000000000"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4000000000000000 ; 2.0
mov [rdx + 8 * 0], rax
mov rax, 0x3ff0000000000000; 1.0
mov [rdx + 8 * 1], rax
mov rax, 0x4020000000000000 ; 8
mov [rdx + 8 * 2], rax
mov rax, 0x4010000000000000 ; 4
mov [rdx + 8 * 3], rax
movapd xmm0, [rdx]
movapd xmm1, [rdx + 8 * 2]
hsubpd xmm0, xmm1
hlt