summaryrefslogtreecommitdiff
path: root/gcc/config/epiphany/predicates.md
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/epiphany/predicates.md')
-rw-r--r--gcc/config/epiphany/predicates.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/epiphany/predicates.md b/gcc/config/epiphany/predicates.md
index 4cbff589b8e..f47f832c6e3 100644
--- a/gcc/config/epiphany/predicates.md
+++ b/gcc/config/epiphany/predicates.md
@@ -164,6 +164,9 @@
(define_predicate "move_double_src_operand"
(match_code "reg,subreg,mem,const_int,const_double,const_vector")
{
+ if (GET_CODE (op) == MEM && misaligned_operand (op, mode)
+ && !address_operand (plus_constant (XEXP (op, 0), 4), SImode))
+ return 0;
return general_operand (op, mode);
})
@@ -188,6 +191,9 @@
return register_operand (op, mode);
}
case MEM :
+ if (GET_MODE_SIZE (mode) == 8 && misaligned_operand (op, mode)
+ && !address_operand (plus_constant (XEXP (op, 0), 4), SImode))
+ return 0;
return address_operand (XEXP (op, 0), mode);
default :
return 0;