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
i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
vect-cond-reduc-2.c
blob
f963f432427be14bda3eb2b950d00dbacfc17b9b
1
/* { dg-do compile } */
2
/* { dg-require-effective-target vect_int } */
3
4
#define N 512
5
int
a
[
N
],
b
[
N
];
6
void
foo
(
int
k
)
7
{
8
int
i
,
res
=
0
;
9
for
(
i
=
0
;
i
<
N
;
i
++)
10
{
11
if
(
b
[
i
] !=
0
)
12
res
+=
b
[
i
];
13
}
14
a
[
k
] =
res
;
15
}
16
17
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
18