projects
/
platform
/
upstream
/
gcc48.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 4.7.3
[platform/upstream/gcc48.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
vect-iv-11.c
1
/* { dg-require-effective-target vect_int } */
2
3
#include <stdarg.h>
4
#include "tree-vect.h"
5
6
int main1 (int len)
7
{
8
int s = 0;
9
int i = len;
10
11
/* vectorization of induction with reduction. */
12
for ( ; i > 1; i -=2)
13
s += i;
14
15
return s;
16
}
17
18
int main (void)
19
{
20
int s;
21
check_vect ();
22
23
s = main1 (26);
24
if (s != 182)
25
abort ();
26
27
return 0;
28
}
29
30
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
31
/* { dg-final { cleanup-tree-dump "vect" } } */