public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "kretz at kde dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/52736] New: [4.7 regression] miscompilation: store to aliased __m128d is 8 Bytes off
Date: Tue, 27 Mar 2012 06:43:00 -0000	[thread overview]
Message-ID: <bug-52736-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             Bug #: 52736
           Summary: [4.7 regression] miscompilation: store to aliased
                    __m128d is 8 Bytes off
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: kretz@kde.org


Created attachment 27007
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27007
testcase

The attached testcase fails when compiled with:
g++ -msse2 -O1 main.cpp

The first aliased store on line 35 stores to the second element in the vector
instead of the fist. The store on line 37 stores to the exact same location in
memory (which is the correct location for line 37).

Slight modification of the example can lead to the compiler optimizing the code
to use half vector loads, in which case it uses the correct one.


             reply	other threads:[~2012-03-27  6:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-27  6:43 kretz at kde dot org [this message]
2012-03-27  7:43 ` [Bug target/52736] " rguenth at gcc dot gnu.org
2012-03-27  8:01 ` kretz at kde dot org
2012-03-27  8:05 ` kretz at kde dot org
2012-03-27 14:09 ` jakub at gcc dot gnu.org
2012-03-27 14:52 ` [Bug target/52736] [4.5/4.6/4.7/4.8 Regression] " jakub at gcc dot gnu.org
2012-03-27 15:06 ` jakub at gcc dot gnu.org
2012-03-27 17:03 ` kretz at kde dot org
2012-03-27 17:05 ` kretz at kde dot org
2012-03-27 22:44 ` kretz at kde dot org
2012-03-28  8:04 ` jakub at gcc dot gnu.org
2012-03-28  8:11 ` jakub at gcc dot gnu.org
2012-03-28  8:16 ` jakub at gcc dot gnu.org
2012-03-28  8:22 ` jakub at gcc dot gnu.org
2012-03-28  9:05 ` kretz at kde dot 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-52736-4@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).