This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, i386] Fix `misaligned_operand' predicate.
- From: Kirill Yukhin <kirill dot yukhin at gmail dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 24 Jun 2015 17:35:44 +0300
- Subject: [PATCH, i386] Fix `misaligned_operand' predicate.
- Authentication-results: sourceware.org; auth=none
Hello,
Patch in the bottom uses proper check of valid memory
in `misaligned_operand' predicate.
gcc/
* config/i386/predicates.md (misaligned_operand): Properly
check if operand is memory.
Bootstrapped and reg-tested.
Is it ok for trunk?
--
Thanks, K
diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md
index 4e45246..7d6ae77 100644
--- a/gcc/config/i386/predicates.md
+++ b/gcc/config/i386/predicates.md
@@ -1365,7 +1365,7 @@
;; Return true if OP is misaligned memory operand
(define_predicate "misaligned_operand"
- (and (match_code "mem")
+ (and (match_operand 0 "memory_operand")
(match_test "MEM_ALIGN (op) < GET_MODE_ALIGNMENT (mode)")))
;; Return true if OP is a emms operation, known to be a PARALLEL.