OSDN Git Service

(unpack_d): Check fraction not sign to distinquish QNaN.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Jul 1997 21:37:23 +0000 (21:37 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Jul 1997 21:37:23 +0000 (21:37 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14386 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/fp-bit.c

index 1f6e408..5210354 100644 (file)
@@ -546,13 +546,13 @@ unpack_d (FLO_union_type * src, fp_number_type * dst)
       else
        {
          /* Non zero fraction, means nan */
-         if (sign)
+         if (fraction & QUIET_NAN)
            {
-             dst->class = CLASS_SNAN;
+             dst->class = CLASS_QNAN;
            }
          else
            {
-             dst->class = CLASS_QNAN;
+             dst->class = CLASS_SNAN;
            }
          /* Keep the fraction part as the nan number */
          dst->fraction.ll = fraction;