FEX/unittests/ASM/VEX/vpsubusw.asm
2022-12-13 18:05:46 +00:00

42 lines
1.1 KiB
NASM

%ifdef CONFIG
{
"HostFeatures": ["AVX"],
"RegData": {
"XMM0": ["0x6162636445464748", "0x5152535455565758", "0x6162636445464748", "0x5152535455565758"],
"XMM1": ["0x4142434465666768", "0x7172737475767778", "0x4142434465666768", "0x7172737475767778"],
"XMM2": ["0x2020202000000000", "0x0000000000000000", "0x0000000000000000", "0x0000000000000000"],
"XMM3": ["0x2020202000000000", "0x0000000000000000", "0x2020202000000000", "0x0000000000000000"],
"XMM4": ["0x2020202000000000", "0x0000000000000000", "0x0000000000000000", "0x0000000000000000"],
"XMM5": ["0x2020202000000000", "0x0000000000000000", "0x2020202000000000", "0x0000000000000000"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
lea rdx, [rel .data]
vmovaps ymm0, [rdx]
vmovaps ymm1, [rdx + 32]
vpsubusw xmm2, xmm0, xmm1
vpsubusw ymm3, ymm0, ymm1
vpsubusw xmm4, xmm0, [rdx + 32]
vpsubusw ymm5, ymm0, [rdx + 32]
hlt
align 32
.data:
dq 0x6162636445464748
dq 0x5152535455565758
dq 0x6162636445464748
dq 0x5152535455565758
dq 0x4142434465666768
dq 0x7172737475767778
dq 0x4142434465666768
dq 0x7172737475767778