annotate gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O1 -fno-tree-fre -fdump-tree-dom2" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 extern void abort (void);
kono
parents:
diff changeset
5 union tree_node;
kono
parents:
diff changeset
6 typedef union tree_node *tree;
kono
parents:
diff changeset
7 enum tree_code
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 LAST_AND_UNUSED_TREE_CODE
kono
parents:
diff changeset
10 };
kono
parents:
diff changeset
11 extern const char tree_code_type[];
kono
parents:
diff changeset
12 struct tree_common
kono
parents:
diff changeset
13 {
kono
parents:
diff changeset
14 enum tree_code code:8;
kono
parents:
diff changeset
15 };
kono
parents:
diff changeset
16 struct tree_type
kono
parents:
diff changeset
17 {
kono
parents:
diff changeset
18 struct tree_common common;
kono
parents:
diff changeset
19 double alias_set;
kono
parents:
diff changeset
20 };
kono
parents:
diff changeset
21 union tree_node
kono
parents:
diff changeset
22 {
kono
parents:
diff changeset
23 struct tree_common common;
kono
parents:
diff changeset
24 struct tree_type type;
kono
parents:
diff changeset
25 };
kono
parents:
diff changeset
26 long
kono
parents:
diff changeset
27 foo (t, set)
kono
parents:
diff changeset
28 tree t;
kono
parents:
diff changeset
29 double set;
kono
parents:
diff changeset
30 {
kono
parents:
diff changeset
31 if (tree_code_type[t->common.code] != 't')
kono
parents:
diff changeset
32 abort ();
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 t->type.alias_set = set;
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 if (t->common.code == 42)
kono
parents:
diff changeset
37 return 1;
kono
parents:
diff changeset
38 else
kono
parents:
diff changeset
39 return 0;
kono
parents:
diff changeset
40 }
kono
parents:
diff changeset
41 /* There should be precisely one load of common.code. If there is
kono
parents:
diff changeset
42 more than one, then the dominator optimizations failed. */
kono
parents:
diff changeset
43 /* { dg-final { scan-tree-dump-times "common.code" 1 "dom2" } } */