Files
FEX-Emu--FEX/unittests/32Bit_ASM/FEX_bugs/InlineSyscall.asm
T
Ryan Houdek 84905d2856 unittests: Adds 32-bit inline syscall test
Triggers the ubfm bug on AArch64.
Uses a fairly benign syscall that gets inlined
2021-12-09 11:34:35 -08:00

18 lines
281 B
NASM

%ifdef CONFIG
{
"RegData": {
},
"Mode": "32BIT"
}
%endif
; FEX 32-bit inline syscalls hit an assert in uxtw
; Just use an inline syscall and throw it zero data to catch the assert
mov eax, 355 ; getrandom, is an inline syscall
mov ebx, 0
mov ecx, 0
mov edx, 0
int 0x80
hlt