blob: 2921bb4196eed850547829e6f04079c988403db9 (
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
28
29
30
31
|
/* PR tree-optimization/92734 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-forwprop1" } */
/* { dg-final { scan-tree-dump-times "return t_\[0-9]*\\\(D\\\);" 4 "forwprop1" } } */
int
f1 (int t)
{
return 1 - (int) (1U - t);
}
int
f2 (int t)
{
int a = 7U - t;
return 7 - a;
}
int
f3 (int t)
{
int a = 32U - t;
return 32 - a;
}
int
f4 (int t)
{
int a = 32 - t;
return (int) (32 - (unsigned) a);
}
|