From 7afe28013fa88a06d0e3564dcf9e8ee5cb06c0e1 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Wed, 13 Feb 2013 20:25:41 +0000 Subject: [PATCH] We should not strip subregs of non-scalars during shift expansion. * expmed.c (expand_shift_1): Only strip scalar integer subregs. From-SVN: r196027 --- gcc/ChangeLog | 4 ++++ gcc/expmed.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d412505..bfaa7d3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-02-13 David S. Miller + + * expmed.c (expand_shift_1): Only strip scalar integer subregs. + 2013-02-13 Vladimir Makarov PR target/56184 diff --git a/gcc/expmed.c b/gcc/expmed.c index 4a6ddb0..954a360 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -2116,8 +2116,8 @@ expand_shift_1 (enum tree_code code, enum machine_mode mode, rtx shifted, % GET_MODE_BITSIZE (mode)); else if (GET_CODE (op1) == SUBREG && subreg_lowpart_p (op1) - && INTEGRAL_MODE_P (GET_MODE (SUBREG_REG (op1))) - && INTEGRAL_MODE_P (GET_MODE (op1))) + && SCALAR_INT_MODE_P (GET_MODE (SUBREG_REG (op1))) + && SCALAR_INT_MODE_P (GET_MODE (op1))) op1 = SUBREG_REG (op1); } -- 2.7.4