summaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorgrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-26 18:58:56 +0000
committergrahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-26 18:58:56 +0000
commit49938a1b8fb66ecb7ece9e55cd48d8dae4f93eb0 (patch)
tree2d8e54c1e758421f6a178785d50cac141214bf60 /gcc/combine.c
parent16171c51f82f1b6f10623008f88d4a1d453ba32e (diff)
downloadgcc-49938a1b8fb66ecb7ece9e55cd48d8dae4f93eb0.tar.gz
PR middle-end/25568
* combine.c (simplify_shift_const_1 <case PLUS>):Fix enable-checking rtl bootstrap failure. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109064 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 2482bbd26e9..1361b10d27c 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -8919,6 +8919,7 @@ simplify_shift_const_1 (enum rtx_code code, enum machine_mode result_mode,
&& (new = simplify_const_binary_operation (ASHIFT, result_mode,
XEXP (varop, 1),
GEN_INT (count))) != 0
+ && GET_CODE (new) == CONST_INT
&& merge_outer_ops (&outer_op, &outer_const, PLUS,
INTVAL (new), result_mode, &complement_p))
{
@@ -8937,6 +8938,7 @@ simplify_shift_const_1 (enum rtx_code code, enum machine_mode result_mode,
&& (new = simplify_const_binary_operation (code, result_mode,
XEXP (varop, 1),
GEN_INT (count))) != 0
+ && GET_CODE (new) == CONST_INT
&& merge_outer_ops (&outer_op, &outer_const, XOR,
INTVAL (new), result_mode, &complement_p))
{