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
testsuite: Revert to the original version of pr100056.c
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
vect-prefetch-drop.c
blob
7a8915eb716b4a5194733a171b2254f6ac5718c5
1
/* { dg-do compile } */
2
/* { dg-require-effective-target vect_int } */
3
4
void
foo
(
int
*
restrict a
,
int
*
restrict b
,
int
n
){
5
int
i
;
6
for
(
i
=
0
;
i
<
n
; ++
i
){
7
a
[
i
] =
a
[
i
] +
b
[
i
];
8
__builtin_prefetch
(&(
b
[
i
+
8
]));
9
}
10
}
11
12
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */