LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr37027.c
blobef6760ec9247d1b2fe8583c62a1d6ff0ff21e45b
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 = 0;
22 int sum2 = 0;
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 } } } */