projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adb7a1c
)
(simplify_binary_operation, case SMAX): Cast to unsiged HOST_WIDE_INT
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 28 Apr 1993 18:56:43 +0000
(14:56 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 28 Apr 1993 18:56:43 +0000
(14:56 -0400)
instead of unsigned int.
From-SVN: r4259
gcc/cse.c
patch
|
blob
|
history
diff --git
a/gcc/cse.c
b/gcc/cse.c
index f330037a1e7e40e51f2abb3511ce881556bde2e4..b444ae09157546c595f53220d953798fd5f1fede 100644
(file)
--- a/
gcc/cse.c
+++ b/
gcc/cse.c
@@
-3716,7
+3716,8
@@
simplify_binary_operation (code, mode, op0, op1)
case SMAX:
if (width <= HOST_BITS_PER_WIDE_INT && GET_CODE (op1) == CONST_INT
- && INTVAL (op1) == (unsigned) GET_MODE_MASK (mode) >> 1
+ && (INTVAL (op1)
+ == (unsigned HOST_WIDE_INT) GET_MODE_MASK (mode) >> 1)
&& ! side_effects_p (op0))
return op1;
else if (rtx_equal_p (op0, op1) && ! side_effects_p (op0))