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

34 lines
592 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "10",
"RBX": "0xFF00000000000000",
"RCX": "0xFE00000000000000",
"RDX": "10",
"RSI": "0xFF000000",
"RDI": "0xFE000000"
},
"HostFeatures": ["BMI1"]
}
%endif
; Trivial test, this should result in 10.
mov rax, 11
blsr rax, rax
; Results in 0xFE00000000000000 being placed into RCX
mov rbx, 0xFF00000000000000
blsr rcx, rbx
; Same tests but with 32-bit registers
; Trivial test, this should result in 10.
mov edx, 11
blsr edx, edx
; Results in 0xFE000000 being placed in EDI
mov rsi, 0xFF000000
blsr edi, esi
hlt