mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-09 07:10:39 +00:00
56 lines
1.8 KiB
NASM
56 lines
1.8 KiB
NASM
%ifdef CONFIG
|
|
{
|
|
"HostFeatures": ["AVX"],
|
|
"RegData": {
|
|
"XMM2": ["0xAAAAAAAABBBBBBBB", "0xCCCCCCCCDDDDDDDD", "0xEEEEEEEEFFFFFFFF", "0x9999999988888888"],
|
|
"XMM3": ["0x1111111122222222", "0x3333333344444444", "0x5555555566666666", "0x7777777788888888"],
|
|
"XMM4": ["0xAAAAAAAABBBBBBBB", "0xCCCCCCCCDDDDDDDD", "0x0000000000000000", "0x0000000000000000"],
|
|
"XMM5": ["0x1111111122222222", "0x3333333344444444", "0x0000000000000000", "0x0000000000000000"],
|
|
"XMM6": ["0x11111111BBBBBBBB", "0x33333333DDDDDDDD", "0x55555555FFFFFFFF", "0x7777777788888888"],
|
|
"XMM7": ["0xAAAAAAAA22222222", "0xCCCCCCCC44444444", "0xEEEEEEEE66666666", "0x9999999988888888"],
|
|
"XMM8": ["0x11111111BBBBBBBB", "0x33333333DDDDDDDD", "0x0000000000000000", "0x0000000000000000"],
|
|
"XMM9": ["0xAAAAAAAA22222222", "0xCCCCCCCC44444444", "0x0000000000000000", "0x0000000000000000"],
|
|
"XMM10": ["0x1111111122222222", "0xccccccccdddddddd", "0xeeeeeeeeffffffff", "0x9999999988888888"]
|
|
},
|
|
"MemoryRegions": {
|
|
"0x100000000": "4096"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
lea rdx, [rel .data]
|
|
|
|
vmovapd ymm0, [rdx]
|
|
vmovapd ymm1, [rdx + 32]
|
|
|
|
; Selecting all of one input vector
|
|
vblendps ymm2, ymm0, ymm1, 0 ; All of ymm0
|
|
vblendps ymm3, ymm0, ymm1, 0xFF ; All of ymm1
|
|
|
|
vblendps xmm4, xmm0, xmm1, 0 ; All of xmm0
|
|
vblendps xmm5, xmm0, xmm1, 0xFF ; All of xmm1
|
|
|
|
; Alternating source vectors
|
|
vblendps ymm6, ymm0, ymm1, 0b10101010
|
|
vblendps ymm7, ymm0, ymm1, 0b01010101
|
|
|
|
vblendps xmm8, xmm0, xmm1, 0b10101010
|
|
vblendps xmm9, xmm0, xmm1, 0b01010101
|
|
|
|
; Different sources between upper and lower selectors
|
|
vblendps ymm10, ymm0, ymm1, 0x3
|
|
|
|
hlt
|
|
|
|
align 32
|
|
.data:
|
|
dq 0xAAAAAAAABBBBBBBB
|
|
dq 0xCCCCCCCCDDDDDDDD
|
|
dq 0xEEEEEEEEFFFFFFFF
|
|
dq 0x9999999988888888
|
|
|
|
dq 0x1111111122222222
|
|
dq 0x3333333344444444
|
|
dq 0x5555555566666666
|
|
dq 0x7777777788888888
|