From: David S. Miller Date: Wed, 13 Feb 2013 20:25:41 +0000 (+0000) Subject: We should not strip subregs of non-scalars during shift expansion. X-Git-Tag: releases/gcc-4.8.0~448 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7afe28013fa88a06d0e3564dcf9e8ee5cb06c0e1;p=thirdparty%2Fgcc.git We should not strip subregs of non-scalars during shift expansion. * expmed.c (expand_shift_1): Only strip scalar integer subregs. From-SVN: r196027 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d4125050a494..bfaa7d302e5e 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 4a6ddb06b110..954a360c7b23 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); }