asm_tests: Clear IE flag on fninit

This commit is contained in:
Paulo Matos committed 2025-08-18 15:40:46 +02:00
1 parent 3bf323aa2b
commit af561abc71
2 files changed
+37

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
%ifdef CONFIG
{
"RegData": {
"RAX": "0"
},
"Mode": "32BIT"
}
%endif
; Tests that fninit clears the status word (which includes the IE flag)
fninit
fldz
fldz
fdiv ; sets IE flag
fninit
fnstsw ax
hlt
+18
View File
@@ -0,0 +1,18 @@
%ifdef CONFIG
{
"RegData": {
"RAX": "0"
}
}
%endif
; Tests that fninit clears the status word (which includes the IE flag)
fninit
fldz
fldz
fdiv ; sets IE flag
fninit
fnstsw ax
hlt