mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-08 22:52:51 +00:00
Unit test to ensure 32bit IDIV/DIV ZExts to 64bit result
This commit is contained in:
parent
c99cc9c6d3
commit
ad70f2fa81
20
unittests/ASM/PrimaryGroup/3_F7_06_2.asm
Normal file
20
unittests/ASM/PrimaryGroup/3_F7_06_2.asm
Normal file
@ -0,0 +1,20 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"RAX": "0x80000000",
|
||||
"RDX": "0"
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
mov r15, 0xe0000000
|
||||
|
||||
mov eax, 0x2
|
||||
mov [r15 + 8 * 0], eax
|
||||
|
||||
mov rax, 0xFFFFFFFF00000000
|
||||
mov rdx, 0xFFFFFFFF00000001
|
||||
|
||||
div dword [r15 + 8 * 0]
|
||||
|
||||
hlt
|
22
unittests/ASM/PrimaryGroup/3_F7_07_2.asm
Normal file
22
unittests/ASM/PrimaryGroup/3_F7_07_2.asm
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"RAX": "0x40000000",
|
||||
"RDX": "0"
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
mov r15, 0xe0000000
|
||||
|
||||
mov eax, 0x4
|
||||
mov [r15 + 8 * 0], eax
|
||||
|
||||
mov rax, 0xFFFFFFFF00000000
|
||||
mov rdx, 0xFFFFFFFF00000001
|
||||
|
||||
idiv dword [r15 + 8 * 0]
|
||||
|
||||
hlt
|
||||
|
Loading…
Reference in New Issue
Block a user