Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr18400.c
blobe2ad18cec7dda410693ab3cd2575f9942df5a2f0
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 8
8 int main1 ()
9 {
10 int b[N] = {0,3,6,9,12,15,18,21};
11 int a[N];
12 int i;
14 for (i = 0; i < N; i++)
16 a[i] = b[i];
19 /* check results: */
20 for (i = 0; i < N; i++)
22 if (a[i] != b[i])
23 abort ();
26 return 0;
29 int main (void)
31 check_vect ();
33 return main1 ();
36 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
37 /* { dg-final { cleanup-tree-dump "vect" } } */