LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-33-big-array.c
blobc1aa399a240e8c7f50ae10610e2c40d41ea8d555
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-additional-options "--param vect-max-peeling-for-alignment=0" } */
5 #include <stdarg.h>
6 #include "tree-vect.h"
8 #define N 128
9 struct test {
10 char ca[N];
13 extern struct test s;
15 __attribute__ ((noinline))
16 int main1 ()
18 int i;
20 for (i = 0; i < N; i++)
22 s.ca[i] = 5;
25 /* check results: */
26 for (i = 0; i < N; i++)
28 if (s.ca[i] != 5)
29 abort ();
32 return 0;
35 int main (void)
37 return main1 ();
41 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
42 /* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 1 "vect" { target { {! vector_alignment_reachable} && {! vect_hw_misalign} } } } } */