public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/57949] [powerpc64] Structure parameter alignment issue with vector extensions
Date: Mon, 22 Jul 2013 16:30:00 -0000	[thread overview]
Message-ID: <bug-57949-4-3CtswDNP5D@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-57949-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
The wrong code is introduced during expand.  vs.m is computed as

  mem(plus(virtual-incoming-args, 72))

with the pad at offset 80, v[0..1] at offset 88, and v[2..3] at offset 96.  All
are shown as having alignment 8.  vs.m should have been placed at offset 80.

After loading these into virtual regs with DI mode, they are stored at offsets
0, 8, 16, 24 from virtual-stack-vars, which is given an alignment of 128. 
Later the vector is loaded with V4SF mode.


  parent reply	other threads:[~2013-07-22 16:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-21 16:30 [Bug target/57949] New: " wschmidt at gcc dot gnu.org
2013-07-22 16:02 ` [Bug target/57949] " wschmidt at gcc dot gnu.org
2013-07-22 16:30 ` wschmidt at gcc dot gnu.org [this message]
2013-07-23 17:24 ` wschmidt at gcc dot gnu.org
2013-07-23 20:29 ` wschmidt at gcc dot gnu.org
2013-07-23 20:40 ` joseph at codesourcery dot com
2013-07-31  2:26 ` wschmidt at gcc dot gnu.org
2013-08-14 20:39 ` wschmidt at gcc dot gnu.org
2013-11-15 23:41 ` uweigand at gcc dot gnu.org
2014-04-04 14:05 ` wschmidt 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-57949-4-3CtswDNP5D@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).