From 409fed48aefff3103196cc2a209fa0d1830b4b2c Mon Sep 17 00:00:00 2001 From: Kaz Kojima Date: Wed, 8 Jun 2011 23:13:27 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 7 +++++++ gcc/config/sh/predicates.md | 2 ++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 433f786b71e..5392ecc8577 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2011-06-08 Kaz Kojima + + 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 * doc/objc.texi (Traditional GNU Objective-C runtime API): diff --git a/gcc/config/sh/predicates.md b/gcc/config/sh/predicates.md index 20354588d99..3cf1cf574c6 100644 --- a/gcc/config/sh/predicates.md +++ b/gcc/config/sh/predicates.md @@ -395,6 +395,7 @@ } if ((mode == QImode || mode == HImode) + && mode == GET_MODE (op) && (MEM_P (op) || (GET_CODE (op) == SUBREG && MEM_P (SUBREG_REG (op))))) { @@ -432,6 +433,7 @@ return 0; if ((mode == QImode || mode == HImode) + && mode == GET_MODE (op) && (MEM_P (op) || (GET_CODE (op) == SUBREG && MEM_P (SUBREG_REG (op))))) { -- 2.30.2