FEX/unittests/ASM/VEX/andn.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

24 lines
298 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "0xFFFFFFFFFFFFFFFF",
"RBX": "0",
"RCX": "0xFFFFFFFF",
"RDX": "0"
},
"HostFeatures": ["BMI1"]
}
%endif
mov rax, 0
mov rbx, -1
andn rax, rax, rbx
andn rbx, rbx, rax
mov rcx, 0
mov rdx, -1
andn ecx, ecx, edx
andn edx, edx, ecx
hlt