From f913cc2a6f1bf17158017c7296b470ef5db181c8 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Fri, 13 Nov 2015 08:28:33 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/predicates.md | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 915d84355f7..666545eba8e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-13 Uros Bizjak + + * config/i386/predicates.md (misaligned_operand): Return true if + operand is aligned to less than its natural alignmnet. + 2015-11-13 Ilya Enkovich * 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 c11f2d7d228..8bdd5d88efb 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" -- 2.30.2