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
Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
cunroll-9.c
blob
0e4407dcbd75b2dfce978b76edf38049f5285310
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-cunrolli-details" } */
3
void
abort
(
void
);
4
int
q
(
void
);
5
int
a
[
10
];
6
int
b
[
11
];
7
int
8
t
(
int
n
)
9
{
10
int
i
;
11
int
sum
=
0
;
12
for
(
i
=
0
;
i
<
n
;
i
++)
13
{
14
if
(
i
>
1000
)
15
abort
();
16
if
(
q
())
17
sum
+=
a
[
i
];
18
else
19
sum
+=
b
[
i
];
20
}
21
return
sum
;
22
}
23
/* { dg-final { scan-tree-dump-times "Removed pointless exit:" 1 "cunrolli" } } */