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
This commit is contained in:
parent
5eb3353874
commit
0fe2dc0e59
@ -1,3 +1,10 @@
|
||||
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
|
||||
|
30
gcc/testsuite/gcc.dg/torture/pr61742.c
Normal file
30
gcc/testsuite/gcc.dg/torture/pr61742.c
Normal file
@ -0,0 +1,30 @@
|
||||
/* { 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;
|
||||
}
|
@ -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" } } */
|
Loading…
Reference in New Issue
Block a user