blob: b4f2481cb03f96327b64e7e7d5186a68f655d8a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-ccp2" } */
int
e7 (int gg)
{
int xe = 0;
while (xe < 1)
{
int ui;
ui = ~xe;
if (ui == 0)
ui = xe >> gg;
xe %= !ui;
}
return xe;
}
/* EVRP should be able to reduce this to a single goto when we can
* revisit statements to try folding again based on changed inputs.
* Until then, make sure its gone by ccp2. */
/* { dg-final { scan-tree-dump-times "goto" 1 "ccp2" } } */
|