Commit 93aaa05d by Vladimir Makarov Committed by Vladimir Makarov

re PR target/59222 (gcc.c-torture/compile/20050622-1.c ICEs at -O1 and above for aarch64-elf ILP32)

2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/59222
	* lra.c (lra_emit_add): Check SUBREG too.

From-SVN: r208201
parent 7fce82f5
2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
PR target/59222
* lra.c (lra_emit_add): Check SUBREG too.
2014-02-27 Andreas Schwab <schwab@suse.de> 2014-02-27 Andreas Schwab <schwab@suse.de>
* config/m68k/m68k.c (m68k_option_override): Disable * config/m68k/m68k.c (m68k_option_override): Disable
......
...@@ -340,8 +340,9 @@ lra_emit_add (rtx x, rtx y, rtx z) ...@@ -340,8 +340,9 @@ lra_emit_add (rtx x, rtx y, rtx z)
base = a1; base = a1;
index = a2; index = a2;
} }
if (! REG_P (base) if (! (REG_P (base) || GET_CODE (base) == SUBREG)
|| (index != NULL_RTX && ! REG_P (index)) || (index != NULL_RTX
&& ! (REG_P (index) || GET_CODE (index) == SUBREG))
|| (disp != NULL_RTX && ! CONSTANT_P (disp)) || (disp != NULL_RTX && ! CONSTANT_P (disp))
|| (scale != NULL_RTX && ! CONSTANT_P (scale))) || (scale != NULL_RTX && ! CONSTANT_P (scale)))
{ {
......
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