2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr18400.c
blob012086138f7199fdf2b4b40666795f7df03a89d2
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 8
8 int b[N] = {0,3,6,9,12,15,18,21};
9 int a[N];
11 __attribute__ ((noinline))
12 int main1 ()
14 int i;
16 for (i = 0; i < N; i++)
18 a[i] = b[i];
21 /* check results: */
22 for (i = 0; i < N; i++)
24 if (a[i] != b[i])
25 abort ();
28 return 0;
31 int main (void)
33 check_vect ();
35 return main1 ();
38 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */