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
Use gather loads for strided accesses
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
nvptx
/
slp-2-run.c
blob
f9841a6b11ac3818da033c7de40fe0acdfb45016
1
/* { dg-do run } */
2
/* { dg-options "-O2 -ftree-slp-vectorize" } */
3
4
#include
"slp-2.c"
5
6
int
7
main
(
void
)
8
{
9
unsigned int
i
;
10
for
(
i
=
0
;
i
<
1000
;
i
+=
1
)
11
{
12
p
[
i
] =
i
;
13
p2
[
i
] =
0
;
14
}
15
16
foo
();
17
18
for
(
i
=
0
;
i
<
1000
;
i
+=
1
)
19
if
(
p2
[
i
] !=
i
)
20
return
1
;
21
22
return
0
;
23
}