unittests: Add test for x87 mode switches wrongly flushing NZCV

This commit is contained in:
Billy Laws committed 2025-09-09 21:29:12 +01:00
1 parent d8c615ec65
commit 756002eef8
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