OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20030711-2.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-dom2" } */
3
 
4
 
5
struct rtx_def;
6
typedef struct rtx_def *rtx;
7
struct rtvec_def;
8
typedef struct rtvec_def *rtvec;
9
union tree_node;
10
typedef union tree_node *tree;
11
typedef struct mem_attrs
12
{
13
  long alias;
14
}
15
mem_attrs;
16
union rtunion_def
17
{
18
  mem_attrs *rtmem;
19
};
20
typedef union rtunion_def rtunion;
21
struct rtx_def
22
{
23
  int code;
24
  rtunion fld[1];
25
};
26
struct tree_decl
27
{
28
  rtx rtl;
29
};
30
union tree_node
31
{
32
  struct tree_decl decl;
33
};
34
long
35
get_alias_set (t,z)
36
     tree t;
37
     rtx z;
38
{
39
  if (t->decl.rtl && (((t->decl.rtl ? z
40
                        : (make_decl_rtl (t, 0), t->decl.rtl)))->code))
41
    return (((((t->decl.rtl ? z : (make_decl_rtl (t, 0), t->decl.rtl)))->
42
              fld[1]).rtmem) == 0 ? 0 : (((((
43
                                               {
44
                                               t;}
45
                                            )->decl.
46
                                            rtl ? z : (make_decl_rtl (t, 0),
47
                                                       t->decl.rtl)))->
48
                                          fld[1]).rtmem)->alias);
49
}
50
 
51
/* The calls to make_decl_rtl should be eliminated
52
/* { dg-final { scan-tree-dump-not "make_decl_rtl \\(\\)" "dom2" } } */
53
 
54
/* There should be three IF conditionals.  */
55
/* { dg-final { scan-tree-dump-times "if " 3 "dom2"} } */
56
 
57
/* There should be one loads of decl.rtl.  */
58
/* { dg-final { scan-tree-dump-times "decl\\.rtl" 1 "dom2"} } */
59
 
60
/* There should be one load of code.  */
61
/* { dg-final { scan-tree-dump-times "code" 1 "dom2"} } */
62
 
63
/* There should be one load of rtmem.  */
64
/* { dg-final { scan-tree-dump-times "rtmem" 1 "dom2"} } */
65
 
66
/* There should be one load of alias.  */
67
/* { dg-final { scan-tree-dump-times "->alias" 1 "dom2"} } */
68
 
69
/* { dg-final { cleanup-tree-dump "dom2" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.