mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-24 07:26:30 +00:00
Adds MOVHPD unit test
This commit is contained in:
parent
f2c1feb61b
commit
1151abbb64
33
unittests/ASM/MOVHPD.asm
Normal file
33
unittests/ASM/MOVHPD.asm
Normal file
@ -0,0 +1,33 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"Match": "All",
|
||||
"RegData": {
|
||||
"RAX": "0xDEADBEEFBAD0DAD1",
|
||||
"RCX": "0xDEADBEEFBAD0DAD1",
|
||||
"XMM0": ["0", "0xDEADBEEFBAD0DAD1"]
|
||||
},
|
||||
"MemoryRegions": {
|
||||
"0x100000000": "4096"
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
; Data we want to store
|
||||
mov rax, 0xDEADBEEFBAD0DAD1
|
||||
|
||||
; Starting address to store to
|
||||
mov rdi, 0xe8000000
|
||||
|
||||
pxor xmm0, xmm0
|
||||
pxor xmm1, xmm1
|
||||
|
||||
mov [rdi], rax
|
||||
|
||||
movhpd xmm0, [rdi]
|
||||
movhpd [rdi + 8], xmm0
|
||||
|
||||
xor rcx, rcx
|
||||
mov rcx, [rdi + 8]
|
||||
|
||||
hlt
|
||||
|
Loading…
x
Reference in New Issue
Block a user