]>
Commit | Line | Data |
---|---|---|
03eb0929 | 1 | /* { dg-do compile } */ |
485b40a5 | 2 | /* { dg-options "-O2 -fdump-tree-iftoswitch-optimized --param case-values-threshold=5" } */ |
03eb0929 ML |
3 | |
4 | int global; | |
5 | int foo (); | |
6 | ||
7 | int main(int argc, char **argv) | |
8 | { | |
9 | if (argc >= 1 && argc <= 10) | |
10 | foo (); | |
11 | else if (argc == 12) | |
12 | { | |
13 | global += 1; | |
14 | } | |
15 | else if (argc == 13) | |
16 | { | |
17 | foo (); | |
18 | foo (); | |
19 | } | |
20 | else if (argc == 14) | |
21 | { | |
22 | foo (); | |
23 | } | |
24 | /* This will be removed with EVRP. */ | |
25 | else if (argc == 5) | |
26 | { | |
27 | global = 2; | |
28 | } | |
29 | /* This will be removed with EVRP. */ | |
30 | else if (argc >= 7 && argc <= 9) | |
31 | { | |
32 | global = 2; | |
33 | } | |
34 | ||
35 | else | |
36 | global -= 123; | |
37 | ||
38 | global -= 12; | |
39 | return 0; | |
40 | } | |
41 | ||
42 | /* { dg-final { scan-tree-dump-not "Condition chain" "iftoswitch" } } */ |