-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unittests/ASM: Adds missing MMX PADDQ test
- Loading branch information
1 parent
8bee101
commit 5d47b91
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |