public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ramana at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/51819] [4.7 Regression] Neon wrong code generation, Error: unsupported alignment for instruction -- `vst1.32 {d2[0]},[r0:64]'
Date: Wed, 11 Jan 2012 14:52:00 -0000	[thread overview]
Message-ID: <bug-51819-4-AKSxiEi3ba@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-51819-4@http.gcc.gnu.org/bugzilla/>

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;


  parent reply	other threads:[~2012-01-11 14:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-11  5:44 [Bug target/51819] New: [4.7 Regression ]Neon " thejes.k at gmail dot com
2012-01-11  9:36 ` [Bug target/51819] [4.7 Regression] Neon " rguenth at gcc dot gnu.org
2012-01-11 14:52 ` ramana at gcc dot gnu.org [this message]
2012-01-13  5:33 ` thejes.k at gmail dot com
2012-01-19 12:57 ` rguenth at gcc dot gnu.org
2012-01-20 10:16 ` ramana at gcc dot gnu.org
2012-01-20 13:38 ` ramana at gcc dot gnu.org
2012-01-20 14:17 ` ramana at gcc dot gnu.org
2012-04-16 15:20 ` uweigand at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-51819-4-AKSxiEi3ba@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).