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 tree-optimization/84740
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
pr53773.c
blob
1bee98b75d9b84de3b7a72c83b634b57e941b272
1
/* { dg-do compile } */
2
/* { dg-additional-options "-fdump-tree-optimized" } */
3
4
int
5
foo
(
int
integral
,
int
decimal
,
int
power_ten
)
6
{
7
while
(
power_ten
>
0
)
8
{
9
integral
*=
10
;
10
decimal
*=
10
;
11
power_ten
--;
12
}
13
14
return
integral
+
decimal
;
15
}
16
17
/* { dg-final { scan-tree-dump-times "\\* 10" 2 "optimized" } } */
18