diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-28 13:21:59 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-28 13:21:59 +0000 |
commit | 09399c7dc05400a19ae7c1bde08163044dbe0a17 (patch) | |
tree | 925ac860d8010e7cc2630f43bd8515877a33e8c8 /gcc/config/epiphany/predicates.md | |
parent | 99d1a463f3720e3d8a605d500424ed441ccf9d55 (diff) | |
download | gcc-09399c7dc05400a19ae7c1bde08163044dbe0a17.tar.gz |
* config/epiphany/epiphany.md (mov<mode>, *mov<mode>_insn): Check
for misaligned memory operands.
* config/epiphany/predicates.md (misaligned_operand): New predicate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193890 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/epiphany/predicates.md')
-rw-r--r-- | gcc/config/epiphany/predicates.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/epiphany/predicates.md b/gcc/config/epiphany/predicates.md index 6e96af9fed4..4cbff589b8e 100644 --- a/gcc/config/epiphany/predicates.md +++ b/gcc/config/epiphany/predicates.md @@ -350,3 +350,8 @@ (define_predicate "nonsymbolic_immediate_operand" (ior (match_test "immediate_operand (op, mode)") (match_code "const_vector"))) /* Is this specific enough? */ + +;; Return true if OP is misaligned memory operand +(define_predicate "misaligned_operand" + (and (match_code "mem") + (match_test "MEM_ALIGN (op) < GET_MODE_ALIGNMENT (mode)"))) |