1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-cddce2" } */
5 typedef struct rtx_def *rtx;
7 typedef union tree_node *tree;
8 typedef struct mem_attrs
17 typedef union rtunion_def rtunion;
28 struct tree_decl decl;
36 return (t->decl.rtl->fld[1].rtmem
38 : (((t->decl.rtl ? t->decl.rtl: (make_decl_rtl (t, 0), t->decl.rtl)))->fld[1]).rtmem);
42 /* There should be precisely one load of ->decl.rtl. If there is
43 more than, then the dominator optimizations failed. */
44 /* { dg-final { scan-tree-dump-times "->decl\\.rtl" 1 "cddce2"} } */
46 /* There should be no loads of .rtmem since the complex return statement
47 is just "return 0". */
48 /* { dg-final { scan-tree-dump-times ".rtmem" 0 "cddce2"} } */
50 /* There should be one IF statement (the complex return statement should
51 collapse down to a simple return 0 without any conditionals). */
52 /* { dg-final { scan-tree-dump-times "if " 1 "cddce2"} } */
54 /* { dg-final { cleanup-tree-dump "cddce2" } } */