Add compile command to each testcase
[gcc-vect-testsuite.git] / vect-iv-11.c
blobef1c5774409c12e8bee3caefa69480117cb07940
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 int main1 (int len)
7 {
8 int s = 0;
9 int i = len;
11 /* vectorization of induction with reduction. */
12 for ( ; i > 1; i -=2)
13 s += i;
15 return s;
18 int main (void)
20 int s;
21 check_vect ();
23 s = main1 (26);
24 if (s != 182)
25 abort ();
27 return 0;
30 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
31 /* { dg-final { cleanup-tree-dump "vect" } } */