re PR target/49305 (SH Target: internal compiler error: in reload_cse_simplify_operands, at postreload.c:403)

PR target/49305
	* config/sh/predicates.md (general_movsrc_operand): Check
	mode for memory with indexed address for QI and HImode.
	(general_movdst_operand): Likewise.

From-SVN: r174824
This commit is contained in:
Kaz Kojima 2011-06-08 23:13:27 +00:00
parent 87c16a45d3
commit 409fed48ae
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/49305
* config/sh/predicates.md (general_movsrc_operand): Check
mode for memory with indexed address for QI and HImode.
(general_movdst_operand): Likewise.
2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com> 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
* doc/objc.texi (Traditional GNU Objective-C runtime API): * doc/objc.texi (Traditional GNU Objective-C runtime API):

View File

@ -395,6 +395,7 @@
} }
if ((mode == QImode || mode == HImode) if ((mode == QImode || mode == HImode)
&& mode == GET_MODE (op)
&& (MEM_P (op) && (MEM_P (op)
|| (GET_CODE (op) == SUBREG && MEM_P (SUBREG_REG (op))))) || (GET_CODE (op) == SUBREG && MEM_P (SUBREG_REG (op)))))
{ {
@ -432,6 +433,7 @@
return 0; return 0;
if ((mode == QImode || mode == HImode) if ((mode == QImode || mode == HImode)
&& mode == GET_MODE (op)
&& (MEM_P (op) && (MEM_P (op)
|| (GET_CODE (op) == SUBREG && MEM_P (SUBREG_REG (op))))) || (GET_CODE (op) == SUBREG && MEM_P (SUBREG_REG (op)))))
{ {