summaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-06-05 11:31:38 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-06-05 11:31:38 +0000
commitaea24d0f3ba3f38d5e505fa70073d8a31ca7cc95 (patch)
tree831120a00d3d3e82b305c980940fdf7d0c522b48 /gcc/cse.c
parente72d5a0397aefe63aeb167c75744336ed0bf0b5e (diff)
downloadgcc-aea24d0f3ba3f38d5e505fa70073d8a31ca7cc95.tar.gz
(simplify_unary_operation, case FLOAT, UNSIGNED_FLOAT): Truncate to
requested mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9872 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 7ada45eaa85..9b3aa2ea342 100644
--- 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