diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-22 06:46:20 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-22 06:46:20 +0000 |
commit | 4737d8efd8bdfccb3d0d41413aaf3933f25780ce (patch) | |
tree | c78f15a05fa13284aee7f9acc312bbd22411818a /gcc/combine.c | |
parent | 98248defea4732249c4e2d3360022c5f98ad83a9 (diff) | |
download | gcc-4737d8efd8bdfccb3d0d41413aaf3933f25780ce.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42427 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index 11ef550c9b5..e3ad70a9604 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 |