repo.or.cz
/
gcc-vect-testsuite.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add compile command to each testcase
[gcc-vect-testsuite.git]
/
vect-iv-11.c
blob
ef1c5774409c12e8bee3caefa69480117cb07940
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" } } */