1 /* { dg-require-effective-target vect_int } */
23 /* SLP with unrolling by 4. */
24 for (i = 0; i < N; i++)
26 res[i].c = ptr->c + ptr->c;
27 res[i].a = ptr->a + ptr->a;
28 res[i].d = ptr->d + ptr->d;
29 res[i].b = ptr->b + ptr->b;
30 res[i].e = ptr->e + ptr->e;
35 for (i = 0; i < N; i++)
37 if (res[i].c != arr[i].c + arr[i].c
38 || res[i].a != arr[i].a + arr[i].a
39 || res[i].d != arr[i].d + arr[i].d
40 || res[i].b != arr[i].b + arr[i].b
41 || res[i].e != arr[i].e + arr[i].e)
54 for (i = 0; i < N; i++)
70 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
71 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" } } */
72 /* { dg-final { cleanup-tree-dump "vect" } } */