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
/
pr56625.c
blob
fe3fd7bb1a509178104c1f16ff918261c0374889
1
/* { dg-do compile } */
2
/* { dg-require-effective-target vect_int_mult } */
3
4
void
foo
(
int
a
[],
int
b
[])
5
{
6
int
i
;
7
for
(
i
=
0
;
i
<
100
;
i
++)
8
{
9
if
(
a
[
i
] ==
0
)
10
a
[
i
] =
b
[
i
]*
4
;
11
else
12
a
[
i
] =
b
[
i
]*
3
;
13
}
14
}
15
16
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */