public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/52736] New: [4.7 regression] miscompilation: store to aliased __m128d is 8 Bytes off
@ 2012-03-27  6:43 kretz at kde dot org
  2012-03-27  7:43 ` [Bug target/52736] " rguenth at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: kretz at kde dot org @ 2012-03-27  6:43 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-03-28  9:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-27  6:43 [Bug target/52736] New: [4.7 regression] miscompilation: store to aliased __m128d is 8 Bytes off kretz at kde dot org
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

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).