aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-08-20 22:52:22 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2004-08-20 22:52:22 +0200
commitf3b2657c01366bc9ea847b95745c4f89cdc5661c (patch)
tree4388dee32e8a4305a733e8125fe2e28909b12b3a /gcc/combine.c
parent87c2399d8985816fef6925e743eb16c074d5bc7a (diff)
downloadgcc-f3b2657c01366bc9ea847b95745c4f89cdc5661c.zip
gcc-f3b2657c01366bc9ea847b95745c4f89cdc5661c.tar.gz
gcc-f3b2657c01366bc9ea847b95745c4f89cdc5661c.tar.bz2
re PR rtl-optimization/17099 (Bootstrap failure on powerpc64-redhat-linux)
PR rtl-optimization/17099 * combine.c (force_to_mode): Check if inner_mask has any bits set outside of GET_MODE (x) instead of op_mode. * gcc.c-torture/execute/20040820-1.c: New test. From-SVN: r86339
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 426b0d7..a116f81 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -7151,9 +7151,8 @@ force_to_mode (rtx x, enum machine_mode mode, unsigned HOST_WIDE_INT mask,
/* We can only change the mode of the shift if we can do arithmetic
in the mode of the shift and INNER_MASK is no wider than the
- width of OP_MODE. */
- if (GET_MODE_BITSIZE (op_mode) > HOST_BITS_PER_WIDE_INT
- || (inner_mask & ~GET_MODE_MASK (op_mode)) != 0)
+ width of X's mode. */
+ if ((inner_mask & ~GET_MODE_MASK (GET_MODE (x))) != 0)
op_mode = GET_MODE (x);
inner = force_to_mode (inner, op_mode, inner_mask, reg, next_select);