Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / pr46184.c
blobfafa7f463d91c4f3a59b332fc4a7c25ccc92636a
1 /* { dg-do compile } */
2 /* { dg-options "-O -ftree-vectorize -fno-tree-copy-prop -fno-tree-dce" } */
4 extern int A[], B[];
6 void
7 foo (int z)
9 int j, i;
10 for (j = 0; j < 32; j++)
12 int curr_a = A[0];
13 for (i = 0; i < 16; i++)
14 curr_a = A[i] ? curr_a : z;
15 B[j] = curr_a;