target/m68k: Use floatX_silence_nan when we have already checked for SNaN

Backports commit 1c0c951f717e66b4be45611c0d6661a2dff4241c from qemu
This commit is contained in:
Richard Henderson 2018-05-19 23:23:54 -04:00 committed by Lioncash
parent 1b6cac4e7e
commit 4e9ca91bb2
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -31,13 +31,14 @@ static floatx80 propagateFloatx80NaNOneArg(floatx80 a, float_status *status)
{ {
if (floatx80_is_signaling_nan(a, status)) { if (floatx80_is_signaling_nan(a, status)) {
float_raise(float_flag_invalid, status); float_raise(float_flag_invalid, status);
a = floatx80_silence_nan(a, status);
} }
if (status->default_nan_mode) { if (status->default_nan_mode) {
return floatx80_default_nan(status); return floatx80_default_nan(status);
} }
return floatx80_maybe_silence_nan(a, status); return a;
} }
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------