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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
loop-39.c
blob
53680dd2349fa0e33a3f68d1611669ee64b52333
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-sccp-details" } */
3
4
int
5
foo
(
unsigned int
n
)
6
{
7
int
i
,
r
=
1
;
8
if
(
n
>
0
)
9
{
10
asm
(
""
);
11
if
(
n
<
10
)
12
{
13
asm
(
""
);
14
do
15
{
16
--
n
;
17
r
*=
2
;
18
}
19
while
(
n
>
0
);
20
}
21
}
22
return
r
+
n
;
23
}
24
25
/* { dg-final { scan-tree-dump "# of iterations \[^\n\r]*, bounded by 8" "sccp" } } */