summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-08 23:13:27 +0000
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-08 23:13:27 +0000
commit0c68c6cd901376b3a05ae4c7792d957043477a5e (patch)
tree7bf3b1574b01a590664f7f462e9e6425656f4083
parentba3f7241de50138ec14ef14c68156150dd7e9dc1 (diff)
downloadgcc-0c68c6cd901376b3a05ae4c7792d957043477a5e.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174824 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/sh/predicates.md2
2 files changed, 9 insertions, 0 deletions
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 <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>
* 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)))))
{