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
2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
vect-99.c
blob
ae23b3afbd1d42221f6fe876f23ee7b9beaebca3
1
/* { dg-require-effective-target vect_int } */
2
3
#include
"tree-vect.h"
4
5
int
ca
[
100
];
6
7
__attribute__
((
noinline
))
8
void
foo
(
int
n
)
9
{
10
unsigned int
i
;
11
12
for
(
i
=
0
;
i
<
n
;
i
++)
13
ca
[
i
] =
2
;
14
}
15
16
int
main
(
void
)
17
{
18
int
i
;
19
20
check_vect
();
21
22
foo
(
100
);
23
24
for
(
i
=
0
;
i
<
100
; ++
i
) {
25
if
(
ca
[
i
] !=
2
)
26
abort
();
27
}
28
return
0
;
29
}
30
31
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */