> +#if defined(__i386__) || (defined(__x86_64__) && !defined(__arm64ec__))
> + /* _fpreset only reinitializes the x87 unit. Also put MXCSR back to
This is a bug in the mingw-w64 _fpreset which does not call UCRT
_fpreset. I sent a change to the list which should address this issue.
> + its startup value, 0x1f80: all exceptions masked, round to
> nearest,
> + no flush to zero or denormals are zero, and no flags set. */
> + if (__mingw_has_sse()) {
> + cw = _MCW_EM | _RC_NEAR | _DN_SAVE;
> + stat = 0;
> + __mingw_setfp_sse(&cw, mask, &stat, ~0);
> + }
So this code change should be rechecked after fixing the mingw-w64
_fpreset implementation. I have not properly looked what exactly is UCRT
_fpreset doing with SSE, I just saw that it is touching SSE registers.
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public