public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23115] New: -ftree-vectorize generates wrong code
@ 2005-07-28 18:40 p dot van-hoof at qub dot ac dot uk
  2005-07-28 18:43 ` [Bug tree-optimization/23115] " p dot van-hoof at qub dot ac dot uk
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: p dot van-hoof at qub dot ac dot uk @ 2005-07-28 18:40 UTC (permalink / raw)
  To: gcc-bugs

The vectorizer generates wrong code for the attached example

dogbert> gcc o.c
dogbert> a.out
 this is where I should be (R = 1.0e+00)...
dogbert> gcc -O1 -ftree-vectorize o.c
dogbert> a.out
 I should not be here (R = -1.0e+300)...
dogbert> gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/usr/local/gcc410
--enable-languages=c,c++,f95
Thread model: posix
gcc version 4.1.0 20050725 (experimental)

This behavior shows up on the mainline, but not the 4.0 branch. I could
reproduce the problem on i686-pc-linux-gnu, x86_64-unknown-linux-gnu, and
sparc-sun-solaris2.9, so doesn't seem to be target specific.

-- 
           Summary: -ftree-vectorize generates wrong code
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: p dot van-hoof at qub dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-09-30 23:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-28 18:40 [Bug tree-optimization/23115] New: -ftree-vectorize generates wrong code p dot van-hoof at qub dot ac dot uk
2005-07-28 18:43 ` [Bug tree-optimization/23115] " p dot van-hoof at qub dot ac dot uk
2005-07-28 18:54 ` [Bug tree-optimization/23115] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-09-08 20:03 ` pinskia at gcc dot gnu dot org
2005-09-09 22:19 ` janis at gcc dot gnu dot org
2005-09-30 23:52 ` dpatel at apple dot com
2005-09-30 23:54 ` pinskia at gcc dot gnu 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).