diff options
Diffstat (limited to 'sim/common/sim-fpu.c')
-rw-r--r-- | sim/common/sim-fpu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/sim-fpu.c b/sim/common/sim-fpu.c index d7d8600..4f7fbc9 100644 --- a/sim/common/sim-fpu.c +++ b/sim/common/sim-fpu.c @@ -213,7 +213,11 @@ pack_fpu (const sim_fpu *src, /* force fraction to correct class */ fraction = src->fraction; fraction >>= NR_GUARDS; +#ifdef SIM_QUIET_NAN_NEGATED + fraction |= QUIET_NAN; +#else fraction &= ~QUIET_NAN; +#endif break; case sim_fpu_class_infinity: sign = src->sign; |