(simplify_unary_operation, case FLOAT, UNSIGNED_FLOAT): Truncate to
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 1995 11:31:38 +0000 (11:31 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 1995 11:31:38 +0000 (11:31 +0000)
requested mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9872 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cse.c

index 7ada45e..9b3aa2e 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -2958,7 +2958,7 @@ simplify_unary_operation (code, mode, op, op_mode)
          d += (double) (unsigned HOST_WIDE_INT) lv;
        }
 #endif  /* REAL_ARITHMETIC */
-
+      d = real_value_truncate (mode, d);
       return CONST_DOUBLE_FROM_REAL_VALUE (d, mode);
     }
   else if (code == UNSIGNED_FLOAT && GET_MODE (op) == VOIDmode
@@ -2993,7 +2993,7 @@ simplify_unary_operation (code, mode, op, op_mode)
            * (double) ((HOST_WIDE_INT) 1 << (HOST_BITS_PER_WIDE_INT / 2)));
       d += (double) (unsigned HOST_WIDE_INT) lv;
 #endif  /* REAL_ARITHMETIC */
-
+      d = real_value_truncate (mode, d);
       return CONST_DOUBLE_FROM_REAL_VALUE (d, mode);
     }
 #endif