]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/phi-opt-14.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / phi-opt-14.c
CommitLineData
a9fee7cd
RB
1/* { dg-do compile } */
2/* { dg-options "-O -fdump-tree-phiopt1" } */
3
4int test_01 (int a)
5{
6 if (127 <= a)
7 a = 127;
8 else if (a <= -128)
9 a = -128;
10 return a;
11}
12int test_02 (int a)
13{
14 if (127 < a)
15 a = 127;
16 else if (a <= -128)
17 a = -128;
18 return a;
19}
20int test_03 (int a)
21{
22 if (127 <= a)
23 a = 127;
24 else if (a < -128)
25 a = -128;
26 return a;
27}
28int test_04 (int a)
29{
30 if (127 < a)
31 a = 127;
32 else if (a < -128)
33 a = -128;
34 return a;
35}
36
37/* { dg-final { scan-tree-dump-not "if" "phiopt1" } } */