asm_tests: Implementation of FCNLEX to clear IE flag

This commit is contained in:
Paulo Matos committed 2025-07-30 10:50:21 +02:00
1 parent b13162c5bf
commit 93c3eb064d
3 files changed
+2 -28

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@
finit ; IOC is 0
fldz
fld1
fldz
fdiv st0, st1 ; IOC is 1
fnstsw ax
+1 -1
View File
@@ -9,7 +9,7 @@
finit ; IOC is 0
fldz
fld1
fldz
fdiv st0, st1 ; IOC is 1
fnstsw ax
-26
View File
@@ -1,26 +0,0 @@
%ifdef CONFIG
{
"RegData": {
"RAX": "0",
"RBX": "1"
},
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
}
%endif
finit ; IOC is 0
fldz
fld1
fdiv st0, st1 ; IOC is 1
fnstsw ax
and rax, 1
mov rbx, rax ; save IOC to RBX
; Clear
fnclex
fnstsw ax
and rax, 1
hlt