projects
/
platform
/
upstream
/
linaro-gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e72d5a0
)
(simplify_unary_operation, case FLOAT, UNSIGNED_FLOAT): Truncate to
author
kenner
<kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 1995 11:31:38 +0000
(11:31 +0000)
committer
kenner
<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
patch
|
blob
|
history
diff --git
a/gcc/cse.c
b/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