aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2015-11-13 08:28:33 +0100
committerUros Bizjak <uros@gcc.gnu.org>2015-11-13 08:28:33 +0100
commitf913cc2a6f1bf17158017c7296b470ef5db181c8 (patch)
treebc305d20b2373890f67933a4d67880cc3a88c1c8 /gcc
parent12fb875f0d6550156c4dfc881edb422a7bd97818 (diff)
downloadgcc-f913cc2a6f1bf17158017c7296b470ef5db181c8.zip
gcc-f913cc2a6f1bf17158017c7296b470ef5db181c8.tar.gz
gcc-f913cc2a6f1bf17158017c7296b470ef5db181c8.tar.bz2
predicates.md (misaligned_operand): Return true if operand is aligned to less than its natural alignmnet.
* config/i386/predicates.md (misaligned_operand): Return true if operand is aligned to less than its natural alignmnet. From-SVN: r230291
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/predicates.md5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 915d843..666545e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-11-13 Uros Bizjak <ubizjak@gmail.com>
+
+ * config/i386/predicates.md (misaligned_operand): Return true if
+ operand is aligned to less than its natural alignmnet.
+
2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
* doc/md.texi (vec_cmp@var{m}@var{n}): New item.
diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md
index c11f2d7..8bdd5d8 100644
--- a/gcc/config/i386/predicates.md
+++ b/gcc/config/i386/predicates.md
@@ -1364,10 +1364,11 @@
(define_predicate "absneg_operator"
(match_code "abs,neg"))
-;; Return true if OP is misaligned memory operand
+;; Return true if OP is a memory operand, aligned to
+;; less than its natural alignment.
(define_predicate "misaligned_operand"
(and (match_code "mem")
- (match_test "MEM_ALIGN (op) < GET_MODE_ALIGNMENT (mode)")))
+ (match_test "MEM_ALIGN (op) < GET_MODE_BITSIZE (mode)")))
;; Return true if OP is a emms operation, known to be a PARALLEL.
(define_predicate "emms_operation"