Commit 91764ab8 by David S. Miller Committed by David S. Miller

Fix gcc.c-torture/compile/pr53410-2.c on sparc.

	* expmed.c (expand_shift_1): Don't strip non-integral SUBREGs.

From-SVN: r193547
parent 8b9bf07a
2012-11-15 David S. Miller <davem@davemloft.net>
* expmed.c (expand_shift_1): Don't strip non-integral SUBREGs.
* configure.ac: Add check for assembler SPARC4 instruction
support.
* configure: Rebuild.
......@@ -2165,7 +2165,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 (SUBREG_REG (op1)))
&& INTEGRAL_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