| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -fdump-tree-optimized" } */ |
| 3 |
/* PR tree-optimization/31531 */ |
| 4 |
|
| 5 |
int f0(unsigned x, unsigned t) |
| 6 |
{ |
| 7 |
x = ~x; |
| 8 |
t = ~t; |
| 9 |
int xx = x; |
| 10 |
int tt = t; |
| 11 |
return tt < xx; |
| 12 |
} |
| 13 |
|
| 14 |
int f1(unsigned x, int t) |
| 15 |
{ |
| 16 |
x = ~x; |
| 17 |
t = ~t; |
| 18 |
int xx = x; |
| 19 |
int tt = t; |
| 20 |
return tt < xx; |
| 21 |
} |
| 22 |
|
| 23 |
int f2(int x, unsigned t) |
| 24 |
{ |
| 25 |
x = ~x; |
| 26 |
t = ~t; |
| 27 |
int xx = x; |
| 28 |
int tt = t; |
| 29 |
return tt < xx; |
| 30 |
} |
| 31 |
|
| 32 |
|
| 33 |
/* We should be able to remove all ~ from the above functions. */ |
| 34 |
/* { dg-final { scan-tree-dump-times "~" 0 "optimized"} } */ |