unittests: Add test for x87 mode switches wrongly flushing NZCV

This commit is contained in:
Billy Laws authored and Ryan Houdek committed 2025-09-15 18:31:50 -07:00
1 parent a545865ab7
commit 85e9e255a5
1 file changed
+13
+13
View File
@@ -0,0 +1,13 @@
%ifdef CONFIG
{
"RegData": {},
"Env": { "FEX_X87REDUCEDPRECISION" : "1" }
}
%endif
; FEX had a bug where a mmx->x87 switch would flush the saved NZCV value used for ftst, causing a crash in RA
movq mm0, mm1 ; enters mmx state
ftst ; enters x87 state
hlt