repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2017-12-05 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
vect-iv-11.c
blob
7dc353f5362203ab94ca3597be5409bde556dc9d
1
/* { dg-require-effective-target vect_int } */
2
3
#include <stdarg.h>
4
#include
"tree-vect.h"
5
6
int
__attribute__
((
noinline
,
noclone
))
7
main1
(
int
len
)
8
{
9
int
s
=
0
;
10
int
i
=
len
;
11
12
/* vectorization of induction with reduction. */
13
for
( ;
i
>
1
;
i
-=
2
)
14
s
+=
i
;
15
16
return
s
;
17
}
18
19
int
main
(
void
)
20
{
21
int
s
;
22
check_vect
();
23
24
s
=
main1
(
26
);
25
if
(
s
!=
182
)
26
abort
();
27
28
return
0
;
29
}
30
31
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */