mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-29 04:01:27 +01:00
FEX's ASM unitests had the problem that they were copy and pasted templates and MemoryRegion was copied in to almost all tests. Very few tests actually use the MemoryRegion they were asking for and instead used none, or the hardcoded memory regions that the TestHarnessRunner provides. This is entirely a sed replacement and minor fixups plus reverts for the few tests that actually use the region asked for.
56 lines
952 B
NASM
56 lines
952 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"MM0": "0x4142434445464748",
|
|
"MM1": "0x4546474800000000",
|
|
"MM2": "0x0",
|
|
"MM3": "0x4142434445464748",
|
|
"MM4": "0x4546474800000000",
|
|
"MM5": "0x0"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
mov rdx, 0xe0000000
|
|
|
|
mov rax, 0x4142434445464748
|
|
mov [rdx + 8 * 0], rax
|
|
mov rax, 0x7172737475767778
|
|
mov [rdx + 8 * 1], rax
|
|
|
|
mov rax, 0x0
|
|
mov [rdx + 8 * 2], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 3], rax
|
|
|
|
mov rax, 0x20
|
|
mov [rdx + 8 * 4], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 5], rax
|
|
|
|
mov rax, 0x40
|
|
mov [rdx + 8 * 6], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 7], rax
|
|
|
|
movq mm0, [rdx + 8 * 0]
|
|
movq mm1, [rdx + 8 * 0]
|
|
movq mm2, [rdx + 8 * 0]
|
|
movq mm3, [rdx + 8 * 0]
|
|
movq mm4, [rdx + 8 * 0]
|
|
movq mm5, [rdx + 8 * 0]
|
|
|
|
movq mm6, [rdx + 8 * 2]
|
|
movq mm7, [rdx + 8 * 4]
|
|
|
|
psllq mm0, mm6
|
|
psllq mm1, mm7
|
|
movq mm7, [rdx + 8 * 6]
|
|
psllq mm2, mm7
|
|
|
|
psllq mm3, [rdx + 8 * 2]
|
|
psllq mm4, [rdx + 8 * 4]
|
|
psllq mm5, [rdx + 8 * 6]
|
|
|
|
hlt
|