* sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
authorThiemo Seufer <ths@networkno.de>
Tue, 29 Aug 2006 13:18:27 +0000 (13:18 +0000)
committerThiemo Seufer <ths@networkno.de>
Tue, 29 Aug 2006 13:18:27 +0000 (13:18 +0000)
SIM_QUIET_NAN_NEGATED.

sim/common/ChangeLog
sim/common/sim-fpu.c

index f90e95db267a9244c0698f7c779ec88611ed6d3b..37a8e73974c10daad80a439d0389c12e82548577 100644 (file)
@@ -1,3 +1,9 @@
+2006-08-29  Thiemo Seufer  <ths@mips.com>
+            Nigel Stephens  <nigel@mips.com>
+
+       * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
+       SIM_QUIET_NAN_NEGATED.
+
 2006-08-29  Nigel Stephens  <nigel@mips.com>
 
        * sim-profile.c (profile_pc_init): Initialise default profiling
index d7d86002d9df0be0af63ffbf29277c222252bb13..4f7fbc967cb146fe22f3e65a8004ee464d365a84 100644 (file)
@@ -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;