mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-08 22:52:51 +00:00
44 lines
1.1 KiB
NASM
44 lines
1.1 KiB
NASM
%ifdef CONFIG
|
|
{
|
|
"HostFeatures": ["AVX"],
|
|
"RegData": {
|
|
"XMM0": ["0x6162636465666768", "0x7172737475767778", "0xFFFFFFFF65666768", "0x7172737475767778"],
|
|
"XMM1": ["0x4142434445464748", "0x5152535455565758", "0xFFFFFFFF45464748", "0x5152535455565758"],
|
|
"XMM2": ["0x2020202020202020", "0x2020202020202020", "0x0000000000000000", "0x0000000000000000"],
|
|
"XMM3": ["0x2020202020202020", "0x2020202020202020", "0x0000000020202020", "0x2020202020202020"],
|
|
"XMM4": ["0x2020202020202020", "0x2020202020202020", "0x0000000000000000", "0x0000000000000000"],
|
|
"XMM5": ["0x2020202020202020", "0x2020202020202020", "0x0000000020202020", "0x2020202020202020"]
|
|
},
|
|
"MemoryRegions": {
|
|
"0x100000000": "4096"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
lea rdx, [rel .data]
|
|
|
|
vmovapd ymm0, [rdx]
|
|
vmovapd ymm1, [rdx + 32]
|
|
|
|
; Memory operand
|
|
vpsubd xmm2, xmm0, [rdx + 32]
|
|
vpsubd ymm3, ymm0, [rdx + 32]
|
|
|
|
; Register only
|
|
vpsubd xmm4, xmm0, xmm1
|
|
vpsubd ymm5, ymm0, ymm1
|
|
|
|
hlt
|
|
|
|
align 32
|
|
.data:
|
|
dq 0x6162636465666768
|
|
dq 0x7172737475767778
|
|
dq 0xFFFFFFFF65666768
|
|
dq 0x7172737475767778
|
|
|
|
dq 0x4142434445464748
|
|
dq 0x5152535455565758
|
|
dq 0xFFFFFFFF45464748
|
|
dq 0x5152535455565758
|