]>
Commit | Line | Data |
---|---|---|
6de9cd9a DN |
1 | /* { dg-do compile } */ |
2 | /* { dg-options "-O1 -fdump-tree-dom3" } */ | |
3 | ||
4 | struct rtx_def; | |
5 | typedef struct rtx_def *rtx; | |
6 | enum rtx_code | |
7 | { | |
8 | REG, | |
09532ff5 | 9 | LAST_AND_UNUSED_RTX_CODE = 256 |
6de9cd9a DN |
10 | }; |
11 | typedef union rtunion_def rtunion; | |
12 | struct rtx_def | |
13 | { | |
14 | enum rtx_code code:16; | |
15 | unsigned frame_related:1; | |
16 | }; | |
17 | static rtx | |
18 | find_base_value (src) | |
19 | rtx src; | |
20 | { | |
21 | rtx temp; | |
3a5b9284 RH |
22 | rtx src_0, src_2; |
23 | rtx src_1, src_3; | |
6de9cd9a | 24 | |
3a5b9284 | 25 | if ((src_0->code == REG) && (({src_2;})->frame_related)) |
6de9cd9a | 26 | return find_base_value (src_0); |
3a5b9284 | 27 | if ((src_1->code == REG) && (({ src_3;})->frame_related)) |
6de9cd9a DN |
28 | return find_base_value (src_1); |
29 | if (src_0->code == REG) | |
30 | find_base_value (src_0); | |
31 | if (src_1->code == REG) | |
32 | find_base_value (src_1); | |
33 | } | |
34 | ||
35 | ||
36 | /* There should be six IF conditionals. */ | |
37 | /* { dg-final { scan-tree-dump-times "if " 6 "dom3"} } */ | |
38 | ||
39 | /* There should be no casts to short unsigned int. */ | |
40 | /* { dg-final { scan-tree-dump-times "\\(short unsigned int\\)" 0 "dom3"} } */ | |
41 | ||
42 | /* There should be three loads of ->code. */ | |
43 | /* { dg-final { scan-tree-dump-times "->code" 3 "dom3"} } */ |