mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 08:00:15 +02:00
unittests: Add test for x87 mode switches wrongly flushing NZCV
This commit is contained in:
1 parent
a545865ab7
commit
85e9e255a5
1 file changed
+13
@@ -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
|
||||
Reference in new issue
Block a user