mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 14:00:16 +02:00
asm_tests: Division by zero does not set IE flag
This commit is contained in:
1 parent
ee1725684a
commit
b13162c5bf
3 files changed
+53
No files matched your search
@@ -0,0 +1,18 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"RAX": "0"
|
||||
},
|
||||
"Mode": "32BIT"
|
||||
}
|
||||
%endif
|
||||
|
||||
; Tests that a division by zero does not set the IE flag
|
||||
finit
|
||||
fldz
|
||||
fld1
|
||||
fdiv st0, st1
|
||||
|
||||
fnstsw ax
|
||||
and eax, 1
|
||||
hlt
|
||||
@@ -0,0 +1,17 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"RAX": "0"
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
; Tests that a division by zero does not set the IE flag
|
||||
finit
|
||||
fldz
|
||||
fld1
|
||||
fdiv st0, st1
|
||||
|
||||
fnstsw ax
|
||||
and rax, 1
|
||||
hlt
|
||||
@@ -0,0 +1,18 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"RAX": "0"
|
||||
},
|
||||
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
|
||||
}
|
||||
%endif
|
||||
|
||||
; Tests that a division by zero does not set the IE flag
|
||||
finit
|
||||
fldz
|
||||
fld1
|
||||
fdiv st0, st1
|
||||
|
||||
fnstsw ax
|
||||
and rax, 1
|
||||
hlt
|
||||
Reference in new issue
Block a user