FEX/unittests/ASM/VEX/mulx.asm
Ryan Houdek edad24479b unittests: Support skipping unit tests based on host feature support
For these unit tests we no longer need to put them in the disabled tests
file. Instead it will be skipped if the host doesn't support the feature
required.
2022-08-14 20:04:26 -07:00

38 lines
439 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "0xFFFFFFFFFFFFFFFE",
"RBX": "4",
"RCX": "4",
"RDX": "0xFFFFFFFE",
"RSI": "1",
"RDI": "1"
},
"HostFeatures": ["BMI2"]
}
%endif
; Test low
mov rbx, 2
mov rdx, 2
mulx rax, rbx, rbx
; Test high
mov rcx, -1
mov rdx, -1
mulx rax, rdi, rcx
; 32-bit
; Test low
mov ecx, 2
mov edx, 2
mulx edx, ecx, ecx
; Test high
mov esi, -1
mov edx, -1
mulx edx, esi, esi
hlt