Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-34.c
blob4e80bd4cbf20778378d8a66a1f27fdb489cc1128
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 __attribute__ ((noinline))
9 int main1 ()
11 int i;
12 struct {
13 char ca[N];
14 } s;
15 char cb[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
17 for (i = 0; i < N; i++)
19 s.ca[i] = cb[i];
22 /* check results: */
23 for (i = 0; i < N; i++)
25 if (s.ca[i] != cb[i])
26 abort ();
29 return 0;
32 int main (void)
34 check_vect ();
36 return main1 ();
39 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
40 /* { dg-final { cleanup-tree-dump "vect" } } */