projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef9925
)
(simplify_binary_operation, case SMAX): Correctly compute largest
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 27 Jan 1993 00:32:45 +0000
(19:32 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 27 Jan 1993 00:32:45 +0000
(19:32 -0500)
possible signed integer.
From-SVN: r3360
gcc/cse.c
patch
|
blob
|
history
diff --git
a/gcc/cse.c
b/gcc/cse.c
index
1afb7f8
..
dd0c0e2
100644
(file)
--- a/
gcc/cse.c
+++ b/
gcc/cse.c
@@
-3823,7
+3823,7
@@
simplify_binary_operation (code, mode, op0, op1)
case SMAX:
if (width <= HOST_BITS_PER_WIDE_INT && GET_CODE (op1) == CONST_INT
- && INTVAL (op1) == GET_MODE_MASK (mode) >> 1
+ && INTVAL (op1) ==
(unsigned)
GET_MODE_MASK (mode) >> 1
&& ! side_effects_p (op0))
return op1;
else if (rtx_equal_p (op0, op1) && ! side_effects_p (op0))