Skip to content

Commit

Permalink
unittests/ASM: Adds missing MMX PADDQ test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonicadvance1 committed Jan 1, 2025
1 parent 8bee101 commit 5d47b91
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions unittests/ASM/TwoByte/0F_D4.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
%ifdef CONFIG
{
"RegData": {
"MM0": "0xa2a4a6a8aaacaeb0",
"MM1": "0xa2a4a6a8aaacaeb0"
}
}
%endif

mov rdx, 0xe0000000

mov rax, 0x6162636465666768
mov [rdx + 8 * 0], rax
mov rax, 0x7172737475767778
mov [rdx + 8 * 1], rax

mov rax, 0x4142434445464748
mov [rdx + 8 * 2], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 3], rax

movq mm0, [rdx]
paddq mm0, [rdx + 8 * 2]

movq mm1, [rdx]
movq mm2, [rdx + 8 * 2]
paddq mm1, mm2

hlt

0 comments on commit 5d47b91

Please sign in to comment.