This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/51819] [4.7 Regression] Neon wrong code generation, Error: unsupported alignment for instruction -- `vst1.32 {d2[0]},[r0:64]'


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51819

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-01-11
                 CC|                            |ramana at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> 2012-01-11 14:51:37 UTC ---

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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]