mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 13:00:41 +02: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.
31 lines
455 B
NASM
31 lines
455 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"MM0": "0x1010101010101010",
|
|
"MM1": "0x1010101010101010",
|
|
"MM2": "0x1010101010101010"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
mov rdx, 0xe0000000
|
|
|
|
mov rax, 0xFFFFFFFFFFFFFFFF
|
|
mov [rdx + 8 * 0], rax
|
|
mov rax, 0x0
|
|
mov [rdx + 8 * 1], rax
|
|
|
|
mov rax, 0x1010101010101010
|
|
mov [rdx + 8 * 2], rax
|
|
mov rax, 0xFFFFFFFFFFFFFFFF
|
|
mov [rdx + 8 * 3], rax
|
|
|
|
movq mm0, [rdx]
|
|
pand mm0, [rdx + 8 * 2]
|
|
|
|
movq mm1, [rdx]
|
|
movq mm2, [rdx + 8 * 2]
|
|
pand mm1, mm2
|
|
|
|
hlt
|