mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-08 22:52:51 +00:00
edad24479b
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.
33 lines
660 B
NASM
33 lines
660 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"RAX": "0xF800000000000000",
|
|
"RBX": "4",
|
|
"RCX": "0xFFFFFFFFFFFFFFFF",
|
|
"RDX": "127",
|
|
"RSI": "63",
|
|
"RDI": "0x00000000FFFFFFFF"
|
|
},
|
|
"HostFeatures": ["BMI2"]
|
|
}
|
|
%endif
|
|
|
|
; Trivial right shift
|
|
mov rax, 0x8000000000000000
|
|
mov rbx, 4
|
|
sarx rax, rax, rbx
|
|
|
|
; This is really a shift by 63. This just ensures we properly
|
|
; mask the shift value according to the ISA manual.
|
|
mov rcx, 0x8000000000000000
|
|
mov rdx, 127
|
|
sarx rcx, rcx, rdx
|
|
|
|
; This is really a shift by 31. This just ensures we properly
|
|
; mask the shift value according to the ISA manual.
|
|
mov edi, 0x80000000
|
|
mov esi, 63
|
|
sarx edi, edi, esi
|
|
|
|
hlt
|