public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/53366] New: wrong code generation by tree vectorizer using AVX
@ 2012-05-15 21:22 martin@mpa-garching.mpg.de
  2012-05-16  6:03 ` [Bug tree-optimization/53366] " hjl.tools at gmail dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: martin@mpa-garching.mpg.de @ 2012-05-15 21:22 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53366
           Summary: wrong code generation by tree vectorizer using AVX
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: martin@mpa-garching.mpg.de


Created attachment 27410
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27410
Testcase demonstrating the problem

The attached code is the reduction of a numerical library. It should print
"2.816937e+08" if executed correctly.
Using the current head of the 4.7 branch and trunk, and compiling on an
Intel Core i3-2120 using

gcc testcase.c -std=c99 -g -O3 -march=native -fno-tree-vectorize

everything works as expected.
When omitting the "-fno-tree-vectorize", random results are printed, and a
different number is generated for every run.

The testcase is the result of several hours' reduction. Currently I don't have
time to reduce it further.


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

end of thread, other threads:[~2012-05-22  7:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-15 21:22 [Bug tree-optimization/53366] New: wrong code generation by tree vectorizer using AVX martin@mpa-garching.mpg.de
2012-05-16  6:03 ` [Bug tree-optimization/53366] " hjl.tools at gmail dot com
2012-05-16  9:43 ` jakub at gcc dot gnu.org
2012-05-16 12:00 ` hjl.tools at gmail dot com
2012-05-16 17:15 ` ubizjak at gmail dot com
2012-05-16 17:26 ` ubizjak at gmail dot com
2012-05-16 17:50 ` ubizjak at gmail dot com
2012-05-17  8:57 ` jakub at gcc dot gnu.org
2012-05-17  9:43 ` jakub at gcc dot gnu.org
2012-05-18 11:48 ` rguenth at gcc dot gnu.org
2012-05-21 15:13 ` jakub at gcc dot gnu.org
2012-05-21 21:05 ` jakub at gcc dot gnu.org
2012-05-22  7:42 ` [Bug tree-optimization/53366] [4.7/4.8 Regression] " jakub at gcc dot gnu.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).