mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-07 14:10:23 +00:00
Implements PMULHRSW unit test
This commit is contained in:
parent
da16b40e12
commit
7b5892b0d5
25
unittests/ASM/H0F38/66_0B.asm
Normal file
25
unittests/ASM/H0F38/66_0B.asm
Normal file
@ -0,0 +1,25 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"XMM0": ["0x31A6343B36E09E7A", "0x48134B294E4F5186"]
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
mov rdx, 0xe0000000
|
||||
|
||||
mov rax, 0x4142434445468748
|
||||
mov [rdx + 8 * 0], rax
|
||||
mov rax, 0x5152535455565758
|
||||
mov [rdx + 8 * 1], rax
|
||||
|
||||
mov rax, 0x6162636465666768
|
||||
mov [rdx + 8 * 2], rax
|
||||
mov rax, 0x7172737475767778
|
||||
mov [rdx + 8 * 3], rax
|
||||
|
||||
movaps xmm0, [rdx + 8 * 0]
|
||||
|
||||
pmulhrsw xmm0, [rdx + 8 * 2]
|
||||
|
||||
hlt
|
28
unittests/ASM/H0F38/XX_0B.asm
Normal file
28
unittests/ASM/H0F38/XX_0B.asm
Normal file
@ -0,0 +1,28 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"MM0": "0x00830087008B008F",
|
||||
"MM1": "0x0100FF0000FF0100"
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
mov rdx, 0xe0000000
|
||||
|
||||
mov rax, 0x4142434445464748
|
||||
mov [rdx + 8 * 0], rax
|
||||
mov rax, 0x8001800280038004
|
||||
mov [rdx + 8 * 1], rax
|
||||
mov rax, 0x0101010101010101
|
||||
mov [rdx + 8 * 2], rax
|
||||
mov rax, 0xFF000100FF01FF00
|
||||
mov [rdx + 8 * 3], rax
|
||||
|
||||
movq mm0, [rdx + 8 * 0]
|
||||
movq mm1, [rdx + 8 * 1]
|
||||
|
||||
pmulhrsw mm0, [rdx + 8 * 2]
|
||||
|
||||
pmulhrsw mm1, [rdx + 8 * 3]
|
||||
|
||||
hlt
|
Loading…
Reference in New Issue
Block a user