diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-28 15:36:13 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-28 15:36:13 +0000 |
commit | cc8ecce9cb1bc1b75db18a386b656a519ba0cb18 (patch) | |
tree | 553566056bb1c37042263ab1106cfb344e9ba0a8 /gcc/config/epiphany/predicates.md | |
parent | 9b6b345f53816226e3eed94440aa1921992e73f2 (diff) | |
download | gcc-cc8ecce9cb1bc1b75db18a386b656a519ba0cb18.tar.gz |
* config/epiphany/predicates.md (move_double_src_operand):
Check that misaligned addresses are offsettable.
(move_dest_operand): Likewise.
* config/epiphany/epiphany.c (REG_OK_FOR_BASE_P): Don't force a
misaligned stack address to reg+index.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193894 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/epiphany/predicates.md')
-rw-r--r-- | gcc/config/epiphany/predicates.md | 6 |
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; |