mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-10 07:41:41 +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.
38 lines
439 B
NASM
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
|