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
PR tree-optimization/84740
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
vect-123.c
blob
210da1e4bcaa9df91878bbd042bf0ed69f7f4db0
1
/* { dg-do compile } */
2
/* { dg-require-effective-target vect_int } */
3
4
int
x
[
4092
];
5
int
y
[
1024
];
6
7
void
foo
(
int
s
)
8
{
9
int
i
,
j
;
10
for
(
i
=
0
,
j
=
0
;
j
<
1023
;
i
+=
s
,
j
++)
11
y
[
j
] +=
x
[
i
];
12
}
13
14
/* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */