aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-05-21 23:46:20 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-05-21 23:46:20 -0700
commitb4fbaca7cb5c6ff5fb5e24e554d510257cb488eb (patch)
treec78f15a05fa13284aee7f9acc312bbd22411818a /gcc/combine.c
parent47816305fecfece2a4ae647638622371e4933076 (diff)
downloadgcc-b4fbaca7cb5c6ff5fb5e24e554d510257cb488eb.zip
gcc-b4fbaca7cb5c6ff5fb5e24e554d510257cb488eb.tar.gz
gcc-b4fbaca7cb5c6ff5fb5e24e554d510257cb488eb.tar.bz2
combine.c (simplify_comparison): Update op1 after constant extension.
* combine.c (simplify_comparison): Update op1 after constant extension. * recog.c (const_int_operand): Accept only constants valid for the given mode. * genrecog.c: Update comments wrt const_int_operand. From-SVN: r42427
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 11ef550..e3ad70a 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -10025,6 +10025,7 @@ simplify_comparison (code, pop0, pop1)
/* Get the constant we are comparing against and turn off all bits
not on in our mode. */
const_op = trunc_int_for_mode (INTVAL (op1), mode);
+ op1 = GEN_INT (const_op);
/* If we are comparing against a constant power of two and the value
being compared can only have that single bit nonzero (e.g., it was