]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/i386/predicates.md (misaligned_operand): Return true if
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Nov 2015 07:28:33 +0000 (07:28 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Nov 2015 07:28:33 +0000 (07:28 +0000)
operand is aligned to less than its natural alignmnet.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230291 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/predicates.md

index 915d84355f7208de065dba9261783c1d8851f56f..666545eba8e3079f1d856d21cda13dd869c839eb 100644 (file)
@@ -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.
index c11f2d7d228e0a6b9e743ffa4797084ff452bcd2..8bdd5d88efbcbe8624d3f6c09773dcf0e66aa10b 100644 (file)
 (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"