LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-28.c
blobe213df1a46548d7d2962335c5600c252d9d5d5f3
1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "--param vect-max-peeling-for-alignment=0" } */
4 #include <stdarg.h>
5 #include "tree-vect.h"
7 #define N 128
8 #define OFF 3
10 /* unaligned store. */
12 __attribute__ ((noinline))
13 int main1 (int off)
15 int i;
16 int ia[N+OFF];
18 for (i = 0; i < N; i++)
20 ia[i+off] = 5;
23 /* check results: */
24 for (i = 0; i < N; i++)
26 if (ia[i+off] != 5)
27 abort ();
30 return 0;
33 int main (void)
35 check_vect ();
37 main1 (0); /* aligned */
38 main1 (OFF); /* unaligned */
39 return 0;
42 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
43 /* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 1 "vect" { target { {! vector_alignment_reachable} && {! vect_hw_misalign} } } } } */