1 /* { dg-require-effective-target vect_int } */
14 struct foostr a[16] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))) =
34 struct foostr b[16] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))) =
53 struct foostr c[16] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
54 struct foostr res[N] =
74 __attribute__ ((noinline)) void
79 for (i = 0; i < N; i++)
81 c[i].f1 = a[i].f1 + b[i].f1;
82 c[i].f2 = a[i].f2 + b[i].f2;
96 for (i = 0; i < N; i++)
98 if (c[i].f1 != res[i].f1)
100 if (c[i].f2 != res[i].f2)
107 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
108 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" } } */
109 /* { dg-final { cleanup-tree-dump "vect" } } */