LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr48052.c
blob071e0bc7b65d9a0f341c5a6f3e0eba20589eb474
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int_mult } */
4 int foo(int* A, int* B, unsigned start, unsigned BS)
6 int s = 0;
7 for (unsigned k = start; k < start + BS; k++)
9 s += A[k] * B[k];
12 return s;
15 int bar(int* A, int* B, unsigned BS)
17 int s = 0;
18 for (unsigned k = 0; k < BS; k++)
20 s += A[k] * B[k];
23 return s;
26 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" } } */