OSDN Git Service

936df5371c406468e041fa0d3aaa7120926471d0
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / 20030714-1.c
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,
9   LAST_AND_UNUSED_RTX_CODE
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;
22   rtx src_0;
23   rtx src_1;
24
25   if ((src_0->code == REG) && (({src_0;})->frame_related))
26     return find_base_value (src_0);
27   if ((src_1->code == REG) && (({ src_1;})->frame_related))
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"} } */
44