aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
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/config
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/config')
-rw-r--r--gcc/config/i386/predicates.md5
1 files changed, 3 insertions, 2 deletions
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"