diff options
author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-19 11:38:14 +0000 |
---|---|---|
committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-19 11:38:14 +0000 |
commit | bed5e85e51d1188946ce457cbd4dec6958bddcc0 (patch) | |
tree | 84484790a579bd3fe3c1278bed5d6e3fc4c06b3d /gcc/simplify-rtx.c | |
parent | e733f349192f2c1c0d48a88b1661e99510219997 (diff) | |
download | gcc-bed5e85e51d1188946ce457cbd4dec6958bddcc0.tar.gz |
Fix an error in a CONST_INT_P patch from 2009.
* simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
shift simplification where it was intended.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210610 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r-- | gcc/simplify-rtx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 7fb1c6db63d..27e04f53439 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -884,7 +884,7 @@ simplify_unary_operation_1 (enum rtx_code code, enum machine_mode mode, rtx op) so we can perform the above simplification. */ if (STORE_FLAG_VALUE == -1 && GET_CODE (op) == ASHIFTRT - && GET_CODE (XEXP (op, 1)) + && CONST_INT_P (XEXP (op, 1)) && INTVAL (XEXP (op, 1)) == GET_MODE_PRECISION (mode) - 1) return simplify_gen_relational (GE, mode, VOIDmode, XEXP (op, 0), const0_rtx); |