mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-08 22:52:51 +00:00
Implements CVTPD2DQ unit test
This commit is contained in:
parent
7a80f2bcbb
commit
5a240c3586
38
unittests/ASM/REPNE/F2_E6.asm
Normal file
38
unittests/ASM/REPNE/F2_E6.asm
Normal file
@ -0,0 +1,38 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"XMM0": ["0x0000000200000001", "0x0"],
|
||||
"XMM1": ["0xFFFFFFFEFFFFFFFF", "0x0"]
|
||||
},
|
||||
"MemoryRegions": {
|
||||
"0x100000000": "4096"
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
mov rdx, 0xe0000000
|
||||
|
||||
mov rax, 0x3ff0000000000000
|
||||
mov [rdx + 8 * 0], rax
|
||||
mov rax, 0x4000000000000000
|
||||
mov [rdx + 8 * 1], rax
|
||||
|
||||
mov rax, 0xbff0000000000000
|
||||
mov [rdx + 8 * 2], rax
|
||||
mov rax, 0xc000000000000000
|
||||
mov [rdx + 8 * 3], rax
|
||||
|
||||
mov rax, 0x4142434445464748
|
||||
mov [rdx + 8 * 4], rax
|
||||
mov rax, 0x5152535455565758
|
||||
mov [rdx + 8 * 5], rax
|
||||
|
||||
movapd xmm0, [rdx + 8 * 4]
|
||||
movapd xmm1, [rdx + 8 * 4]
|
||||
|
||||
movapd xmm2, [rdx + 8 * 0]
|
||||
|
||||
cvtpd2dq xmm0, xmm2
|
||||
cvtpd2dq xmm1, [rdx + 8 * 2]
|
||||
|
||||
hlt
|
Loading…
Reference in New Issue
Block a user