From: Thiemo Seufer Date: Tue, 29 Aug 2006 13:18:27 +0000 (+0000) Subject: * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ae2e9a36fdb5364ca60ff94829d1db567953dec;p=binutils-gdb.git * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for SIM_QUIET_NAN_NEGATED. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index f90e95db267..37a8e73974c 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,9 @@ +2006-08-29 Thiemo Seufer + Nigel Stephens + + * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for + SIM_QUIET_NAN_NEGATED. + 2006-08-29 Nigel Stephens * sim-profile.c (profile_pc_init): Initialise default profiling diff --git a/sim/common/sim-fpu.c b/sim/common/sim-fpu.c index d7d86002d9d..4f7fbc967cb 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;