Commit 0fe2dc0e by Yuri Rumyantsev Committed by Kirill Yukhin

re PR tree-optimization/61742 (wrong code at -O3 on x86_64-linux-gnu)

PR tree-optimization/61742

gcc/testsuite/
        * gcc.dg/torture/pr61742.c: New test.
        * gcc.gg/vect/cond-reduc-1.c: Rename it to vect-cond-reduc-1.c
        * gcc.gg/vect/cond-reduc-2.c: Rename it to vect-cond-reduc-2.c

From-SVN: r212421
parent 5eb33538
2014-07-10 Yuri Rumyantsev <ysrumyan@gmail.com>
PR tree-optimization/61742
* gcc.dg/torture/pr61742.c: New test.
* gcc.gg/vect/cond-reduc-1.c: Rename it to vect-cond-reduc-1.c
* gcc.gg/vect/cond-reduc-2.c: Rename it to vect-cond-reduc-2.c
2014-07-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60686
......
/* { dg-do run } */
#include <stdlib.h>
int a, b, c, e, f, g, h, i, j, k;
int d[1];
int
main ()
{
int l, m;
k = 0;
for (; g < 1; g++)
{
for (i = 0; i < 1; i++)
m = b ? b : 1;
if (m)
j = d[e] = 0;
else
f = 0;
l = k ? k : a;
if (d[0] < 1)
{
c++;
h = (l || e) > 0;
}
}
if (c != 1)
abort();
return 0;
}
\ No newline at end of file
......@@ -11,7 +11,7 @@ void foo(int k)
if (b[i] != 0)
res += b[i];
}
a[k] = sum;
a[k] = res;
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment