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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
vect
/
pr58513.cc
blob
949104fea402815e1ad039c94ff65db68a20b537
1
// { dg-do compile }
2
// { dg-require-effective-target vect_int }
3
4
static int
op
(
const int
&
x
,
const int
&
y
) {
return
x
+
y
; }
5
6
void
foo
(
int
*
a
)
7
{
8
for
(
int
i
=
0
;
i
<
1000
; ++
i
)
9
a
[
i
] =
op
(
a
[
i
],
1
);
10
}
11
12
// { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } }