mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-10 07:41:41 +00:00
43 lines
1.2 KiB
NASM
43 lines
1.2 KiB
NASM
%ifdef CONFIG
|
|
{
|
|
"HostFeatures": ["AVX"],
|
|
"RegData": {
|
|
"XMM0": ["0x3FF0000000000000", "0x4000000000000000", "0x4008000000000000", "0x4010000000000000"],
|
|
"XMM1": ["0x4014000000000000", "0x4018000000000000", "0x401C000000000000", "0x4020000000000000"],
|
|
"XMM2": ["0x4018000000000000", "0x4020000000000000", "0x4024000000000000", "0x4028000000000000"],
|
|
"XMM3": ["0x4018000000000000", "0x4020000000000000", "0x0000000000000000", "0x0000000000000000"],
|
|
"XMM4": ["0x4018000000000000", "0x4020000000000000", "0x4024000000000000", "0x4028000000000000"],
|
|
"XMM5": ["0x4018000000000000", "0x4020000000000000", "0x0000000000000000", "0x0000000000000000"]
|
|
},
|
|
"MemoryRegions": {
|
|
"0x100000000": "4096"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
lea rdx, [rel .data]
|
|
|
|
; Registers
|
|
vmovapd ymm0, [rdx]
|
|
vmovapd ymm1, [rdx + 32]
|
|
vaddpd ymm2, ymm0, ymm1
|
|
vaddpd xmm3, xmm0, xmm1
|
|
|
|
; Memory operand
|
|
vaddpd ymm4, ymm0, [rdx + 32]
|
|
vaddpd xmm5, xmm0, [rdx + 32]
|
|
|
|
hlt
|
|
|
|
align 32
|
|
.data:
|
|
dq 0x3FF0000000000000 ; 1.0
|
|
dq 0x4000000000000000 ; 2.0
|
|
dq 0x4008000000000000 ; 3.0
|
|
dq 0x4010000000000000 ; 4.0
|
|
|
|
dq 0x4014000000000000 ; 5.0
|
|
dq 0x4018000000000000 ; 6.0
|
|
dq 0x401C000000000000 ; 7.0
|
|
dq 0x4020000000000000 ; 8.0
|