summaryrefslogtreecommitdiff
path: root/gcc/config/sh
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 /gcc/config/sh
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
Diffstat (limited to 'gcc/config/sh')
-rw-r--r--gcc/config/sh/predicates.md2
1 files changed, 2 insertions, 0 deletions
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)))))
{