PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / slp-42.c
blob6b78246c2dff027db93e9572182a041722618955
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 } } } */
19 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */