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
PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
loop-38.c
blob
7ca1e4709751d10219b89ea8b944beba69efd68d
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-cunrolli-details" } */
3
int
a
[
10
];
4
int
b
[
11
];
5
int
q
(
void
);
6
int
7
t
(
int
n
)
8
{
9
int
i
;
10
int
sum
=
0
;
11
for
(
i
=
0
;
i
<
n
;
i
++)
12
if
(
q
())
13
sum
+=
a
[
i
];
14
else
15
sum
+=
b
[
i
];
16
return
sum
;
17
}
18
/* { dg-final { scan-tree-dump "Loop 1 iterates at most 11 times" "cunrolli" } } */