public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/31966]  New: Miscompiles valid code with -ftree-vectorize and -march=nocona
@ 2007-05-17  6:35 lloyd at randombit dot net
  2007-05-17  6:37 ` [Bug tree-optimization/31966] " lloyd at randombit dot net
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: lloyd at randombit dot net @ 2007-05-17  6:35 UTC (permalink / raw)
  To: gcc-bugs

$ gcc-4.2.0 -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.2.0/configure --enable-languages=c,c++,objc,obj-c++
--program-suffix=-4.2.0
Thread model: posix
gcc version 4.2.0
$ gcc-4.2.0 divop.c -o divop
$ ./divop
          3CBA83
$ gcc-4.2.0 -ftree-vectorize -O2  divop.c -o divop
$ ./divop
          3CBA83
$ gcc-4.2.0 -ftree-vectorize -O2 -march=opteron divop.c -o divop
$ ./divop 
          3CBA83
$ gcc-4.2.0 -ftree-vectorize -O2 -march=nocona divop.c -o divop
$ ./divop
          2B672F

This also affects GCC 4.1.1, I have not checked 4.1.2 or the 4.3 snapshots. In
addition to -march=nocona it requires -O1/-O2/-O3 (-Os does not trigger it
under 4.2.0, though it _does_ in 4.1.1).


-- 
           Summary: Miscompiles valid code with -ftree-vectorize and -
                    march=nocona
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lloyd at randombit dot net
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

end of thread, other threads:[~2007-07-04  5:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-17  6:35 [Bug tree-optimization/31966] New: Miscompiles valid code with -ftree-vectorize and -march=nocona lloyd at randombit dot net
2007-05-17  6:37 ` [Bug tree-optimization/31966] " lloyd at randombit dot net
2007-06-30 22:11 ` lloyd at randombit dot net
2007-07-01  8:48 ` dorit at gcc dot gnu dot org
2007-07-01  8:52 ` dorit at gcc dot gnu dot org
2007-07-01  9:33 ` [Bug tree-optimization/31966] [4.1/4.2/4.3 Regression] Miscompiles valid code with -ftree-vectorize ubizjak at gmail dot com
2007-07-01 14:20 ` ubizjak at gmail dot com
2007-07-01 15:46 ` ubizjak at gmail dot com
2007-07-02 14:02 ` ubizjak at gmail dot com
2007-07-02 14:26 ` uros at gcc dot gnu dot org
2007-07-02 14:28 ` [Bug tree-optimization/31966] [4.1/4.2 " ubizjak at gmail dot com
2007-07-04  5:41 ` uros at gcc dot gnu dot org
2007-07-04  5:49 ` uros at gcc dot gnu dot org
2007-07-04  5:54 ` ubizjak at gmail dot com

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