Add compile command to each testcase
[gcc-vect-testsuite.git] / vect-14.c
blob35e48cc364ca61f663ffd2020a8d8b968af750ff
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 int ia[N];
14 /* Induction. */
15 for ( i = 0; i < N; i++) {
16 ia[i] = i;
19 /* check results: */
20 for (i = 0; i < N; i++)
22 if (ia[i] != 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" } } */