blob: 1c9e468f5f31e47c7df5d92154ff2f5ad8943547 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do compile } */
/* { dg-options "-fdump-tree-optimized" } */
int
foo (int integral, int decimal, int power_ten)
{
while (power_ten > 0)
{
integral *= 10;
decimal *= 10;
power_ten--;
}
return integral+decimal;
}
/* { dg-final { scan-tree-dump-times "\\* 10" 2 "optimized" } } */
/* { dg-final { cleanup-tree-dump "vect" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|