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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20030711-3.c] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-dom3" } */
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)
36
     tree t;
37
{
38
  if (t->decl.rtl != (void *) 0)
39
    return (((t->decl.rtl->fld[1]).rtmem) ==
40
 
41
            : ((((t->decl.
42
                  rtl ? 0 : (make_decl_rtl (t, ((void *) 0)),
43
                             t->decl.rtl)))->fld[1]).rtmem)->alias);
44
}
45
 
46
/* The calls to make_decl_rtl should be eliminated.  */
47
/* { dg-final { scan-tree-dump-not "make_decl_rtl \\(\\)" "dom3" } } */
48
 
49
/* There should be two IF conditionals.  */
50
/* { dg-final { scan-tree-dump-times "if " 2 "dom3"} } */
51
 
52
/* There should be one load of decl.rtl.  */
53
/* { dg-final { scan-tree-dump-times "decl\\.rtl" 1 "dom3"} } */
54
 
55
/* There should be two loads of rtmem.  */
56
/* { dg-final { scan-tree-dump-times "rtmem" 2 "dom3"} } */
57
 
58
/* There should be one load of alias.  */
59
/* { dg-final { scan-tree-dump-times "->alias" 1 "dom3"} } */
60
 
61
/* { dg-final { cleanup-tree-dump "dom3" } } */

powered by: WebSVN 2.1.0

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