repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove outermost loop parameter.
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.dg
/
graphite
/
vect-pr43423.c
blob
5589167fbd3802588455f1866aa266386d4352b8
1
/* { dg-require-effective-target vect_int } */
2
3
int
a
[
100
],
b
[
100
],
c
[
100
];
4
5
void
foo
(
int
n
,
int
mid
)
6
{
7
int
i
;
8
for
(
i
=
0
;
i
<
n
;
i
++)
9
{
10
if
(
i
<
mid
)
11
a
[
i
] =
a
[
i
] +
b
[
i
];
12
else
13
a
[
i
] =
a
[
i
] +
c
[
i
];
14
}
15
}
16
17
/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
18
/* { dg-final { cleanup-tree-dump "vect" } } */