Merged r158465 through r158660 into branch.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr37027.c
blobdcfed348d110da345ed676054dc856efd6eaed22
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
4 #include <stdarg.h>
6 struct mystr
8 int f1;
9 int f2;
12 struct mystr a[16];
13 struct mystr b[16];
14 int res1, res2;
17 void
18 foo (void)
20 int i;
21 int sum1;
22 int sum2;
24 for (i = 0; i < 16; i++)
26 sum1 += a[i].f1 + b[i].f1;
27 sum2 += a[i].f2 + b[i].f2;
30 res1 = sum1;
31 res2 = sum2;
34 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_add } } } */
35 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_add } } } */
36 /* { dg-final { cleanup-tree-dump "vect" } } */