This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/51819] [4.7 Regression] Neon wrong code generation, Error: unsupported alignment for instruction -- `vst1.32 {d2[0]},[r0:64]'
- From: "thejes.k at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 13 Jan 2012 05:32:48 +0000
- Subject: [Bug target/51819] [4.7 Regression] Neon wrong code generation, Error: unsupported alignment for instruction -- `vst1.32 {d2[0]},[r0:64]'
- Auto-submitted: auto-generated
- References: <bug-51819-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51819
--- Comment #2 from Thejes Kuttian <thejes.k at gmail dot com> 2012-01-13 05:32:48 UTC ---
(In reply to comment #1)
> Completely untested but I think this is the correct fix for this problem.
>
>
>
>
> diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
> index 4c310d4..31f03cc 100644
> --- a/gcc/config/arm/arm.c
> +++ b/gcc/config/arm/arm.c
> @@ -17720,7 +17720,7 @@ arm_print_operand (FILE *stream, rtx x, int code)
> align_bits = 256;
> else if ((memsize == 8 || memsize == 16) && (align % 16) == 0)
> align_bits = 128;
> - else if ((align % 8) == 0)
> + else if ((memsize >= 8) && (align % 8) == 0)
> align_bits = 64;
> else
> align_bits = 0;
Confirmed. This patch fixes the issue for me .