IVOPT performance tuning patch. The main problem is a variant of maximal weight
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-iv-11.c
blobbcf2e36fc5a91c7d4f452d6c8d3a6d296dac33f6
1 /* { dg-require-effective-target vect_int } */
3 #include <stdio.h>
4 #include <stdarg.h>
5 #include "tree-vect.h"
7 int main1 (int len)
8 {
9 int s = 0;
10 int i = len;
12 /* vectorization of induction with reduction. */
13 for ( ; i > 1; i -=2)
14 s += i;
16 return s;
19 int main (void)
21 int s;
22 check_vect ();
24 s = main1 (26);
25 if (s != 182)
26 abort ();
28 return 0;
31 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
32 /* { dg-final { cleanup-tree-dump "vect" } } */