openmp: Fix signed/unsigned warning
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / slp-42.c
blob53eca6b6648ddbda6fa60a398f9875e18fab5106
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
4 int p[4096], q[4096];
6 void foo (int n)
8 int i;
9 for (i = 0; i < n; ++i)
11 p[i*4+0] = q[i*8+0] + q[i*8+4];
12 p[i*4+1] = q[i*8+1] + q[i*8+5];
13 p[i*4+2] = q[i*8+2] + q[i*8+6];
14 p[i*4+3] = q[i*8+3] + q[i*8+7];
18 /* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { xfail { vect_variable_length && { ! vect_strided8 } } } } } */
19 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */