This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] arm: emit neon alignment hints for 32/16-bit loads/stores
- From: Mans Rullgard <mans at mansr dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Oct 2013 20:31:01 +0000
- Subject: [PATCH] arm: emit neon alignment hints for 32/16-bit loads/stores
- Authentication-results: sourceware.org; auth=none
---
gcc/config/arm/arm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 8c9897e..8183a8e 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -21247,6 +21247,10 @@ arm_print_operand (FILE *stream, rtx x, int code)
align_bits = 128;
else if (memsize >= 8 && (align % 8) == 0)
align_bits = 64;
+ else if (memsize == 4 && (align % 4) == 0)
+ align_bits = 32;
+ else if (memsize == 2 && (align % 2) == 0)
+ align_bits = 16;
else
align_bits = 0;
--
1.8.4