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

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

From-SVN: r193547
This commit is contained in:
David S. Miller 2012-11-16 05:31:46 +00:00 committed by David S. Miller
parent 8b9bf07ae3
commit 91764ab8bd
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,7 @@
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.

View file

@ -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);
}