public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/60656] New: [4.8/4.9 regression] x86 vectorization produces wrong code
@ 2014-03-25 16:02 ppluzhnikov at google dot com
  2014-03-25 18:09 ` [Bug tree-optimization/60656] " jakub at gcc dot gnu.org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: ppluzhnikov at google dot com @ 2014-03-25 16:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60656
           Summary: [4.8/4.9 regression] x86 vectorization produces wrong
                    code
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppluzhnikov at google dot com

Current trunk (r208813) and gcc-4.8 are affected, 4.7 does not appear to be.

gcc -O0 t.c && ./a.out
500450210036

gcc -O3 t.c && ./a.out
500450200033

gcc -O2 t.c && ./a.out
500450210036

gcc -O2 t.c -ftree-vectorize && ./a.out
500450200033

// t.c
#include <stdio.h>

int
main ()
{
  int v[] = {5000, 5001, 5002, 5003};
  long s = 0;
  int i;

  for(i = 0; i < 4; ++i)
    {
      long P = v[i];
      s += P*P*P;
    }
  printf("%ld\n", s);
}


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

end of thread, other threads:[~2015-06-10 13:51 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-25 16:02 [Bug tree-optimization/60656] New: [4.8/4.9 regression] x86 vectorization produces wrong code ppluzhnikov at google dot com
2014-03-25 18:09 ` [Bug tree-optimization/60656] " jakub at gcc dot gnu.org
2014-03-25 19:41 ` congh at google dot com
2014-03-25 20:03 ` jakub at gcc dot gnu.org
2014-03-25 20:12 ` congh at google dot com
2014-03-28 11:19 ` jakub at gcc dot gnu.org
2014-03-28 15:21 ` jakub at gcc dot gnu.org
2014-03-28 18:48 ` congh at google dot com
2014-04-09 12:25 ` jakub at gcc dot gnu.org
2014-04-09 12:28 ` [Bug tree-optimization/60656] [4.8 " jakub at gcc dot gnu.org
2014-04-16  8:52 ` bernd.edlinger at hotmail dot de
2014-04-16  8:56 ` jakub at gcc dot gnu.org
2014-05-22  9:07 ` rguenth at gcc dot gnu.org
2014-12-19 13:41 ` jakub at gcc dot gnu.org
2015-06-09 23:37 ` bernhard.kaindl at thalesgroup dot com
2015-06-10  9:01 ` rguenth at gcc dot gnu.org
2015-06-10 11:04 ` rguenth at gcc dot gnu.org
2015-06-10 13:51 ` rguenth 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).