Commit 7afe2801 by David S. Miller Committed by David S. Miller

We should not strip subregs of non-scalars during shift expansion.

	* expmed.c (expand_shift_1): Only strip scalar integer subregs.

From-SVN: r196027
parent 8a04a774
2013-02-13 David S. Miller <davem@davemloft.net>
* expmed.c (expand_shift_1): Only strip scalar integer subregs.
2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
PR target/56184
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment