]>
Commit | Line | Data |
---|---|---|
a9fee7cd RB |
1 | /* { dg-do compile } */ |
2 | /* { dg-options "-O -fdump-tree-phiopt1" } */ | |
3 | ||
4 | int test_01 (int a) | |
5 | { | |
6 | if (127 <= a) | |
7 | a = 127; | |
8 | else if (a <= -128) | |
9 | a = -128; | |
10 | return a; | |
11 | } | |
12 | int test_02 (int a) | |
13 | { | |
14 | if (127 < a) | |
15 | a = 127; | |
16 | else if (a <= -128) | |
17 | a = -128; | |
18 | return a; | |
19 | } | |
20 | int test_03 (int a) | |
21 | { | |
22 | if (127 <= a) | |
23 | a = 127; | |
24 | else if (a < -128) | |
25 | a = -128; | |
26 | return a; | |
27 | } | |
28 | int 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" } } */ |