asm_tests: Division by zero does not set IE flag

This commit is contained in:
Paulo Matos committed 2025-07-30 10:50:20 +02:00
1 parent ee1725684a
commit b13162c5bf
3 files changed
+53

No files matched your search

+18
View File
@@ -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
+17
View File
@@ -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
+18
View File
@@ -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