xref: /llvm-project/llvm/test/CodeGen/X86/2006-09-01-CycleInDAG.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s
2target datalayout = "e-p:32:32"
3target triple = "i686-apple-darwin8"
4	%struct.CUMULATIVE_ARGS = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
5	%struct.FILE = type { ptr, i32, i32, i16, i16, %struct.__sbuf, i32, ptr, ptr, ptr, ptr, ptr, %struct.__sbuf, ptr, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64 }
6	%struct.VEC_edge = type { i32, i32, [1 x ptr] }
7	%struct.VEC_tree = type { i32, i32, [1 x ptr] }
8	%struct.__sFILEX = type opaque
9	%struct.__sbuf = type { ptr, i32 }
10	%struct._obstack_chunk = type { ptr, ptr, [4 x i8] }
11	%struct._var_map = type { ptr, ptr, ptr, ptr, i32, i32, ptr }
12	%struct.basic_block_def = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [2 x ptr], ptr, ptr, ptr, ptr, i64, i32, i32, i32, i32 }
13	%struct.bb_ann_d = type { ptr, i8, ptr }
14	%struct.bitmap_element_def = type { ptr, ptr, i32, [4 x i32] }
15	%struct.bitmap_head_def = type { ptr, ptr, i32, ptr }
16	%struct.bitmap_iterator = type { ptr, ptr, i32, i32 }
17	%struct.bitmap_obstack = type { ptr, ptr, %struct.obstack }
18	%struct.block_stmt_iterator = type { %struct.tree_stmt_iterator, ptr }
19	%struct.coalesce_list_d = type { ptr, ptr, i1 }
20	%struct.conflict_graph_def = type opaque
21	%struct.dataflow_d = type { ptr, [2 x ptr] }
22	%struct.def_operand_ptr = type { ptr }
23	%struct.def_optype_d = type { i32, [1 x %struct.def_operand_ptr] }
24	%struct.die_struct = type opaque
25	%struct.edge_def = type { ptr, ptr, %struct.edge_def_insns, ptr, ptr, i32, i32, i64, i32 }
26	%struct.edge_def_insns = type { ptr }
27	%struct.edge_iterator = type { i32, ptr }
28	%struct.edge_prediction = type { ptr, ptr, i32, i32 }
29	%struct.eh_status = type opaque
30	%struct.elt_list = type opaque
31	%struct.emit_status = type { i32, i32, ptr, ptr, ptr, i32, %struct.__sbuf, i32, ptr, ptr }
32	%struct.et_node = type opaque
33	%struct.expr_status = type { i32, i32, i32, ptr, ptr, ptr }
34	%struct.function = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, ptr, %struct.CUMULATIVE_ARGS, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, ptr, i32, i32, ptr, ptr, i32, i32, i32, ptr, i32, i32, i1, i1, ptr, ptr, i32, i32, i32, i32, %struct.__sbuf, ptr, ptr, i8, i8, i8 }
35	%struct.ht_identifier = type { ptr, i32, i32 }
36	%struct.initial_value_struct = type opaque
37	%struct.lang_decl = type opaque
38	%struct.lang_type = type opaque
39	%struct.language_function = type opaque
40	%struct.location_t = type { ptr, i32 }
41	%struct.loop = type opaque
42	%struct.machine_function = type { i32, i32, ptr, i32, i32 }
43	%struct.obstack = type { i32, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, i8 }
44	%struct.partition_def = type { i32, [1 x %struct.partition_elem] }
45	%struct.partition_elem = type { i32, ptr, i32 }
46	%struct.partition_pair_d = type { i32, i32, i32, ptr }
47	%struct.phi_arg_d = type { ptr, i1 }
48	%struct.pointer_set_t = type opaque
49	%struct.ptr_info_def = type { i8, ptr, ptr }
50	%struct.real_value = type opaque
51	%struct.reg_info_def = type opaque
52	%struct.reorder_block_def = type { ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
53	%struct.rtvec_def = type opaque
54	%struct.rtx_def = type opaque
55	%struct.sequence_stack = type { ptr, ptr, ptr }
56	%struct.simple_bitmap_def = type { i32, i32, i32, [1 x i64] }
57	%struct.ssa_op_iter = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i1 }
58	%struct.stmt_ann_d = type { %struct.tree_ann_common_d, i8, ptr, %struct.stmt_operands_d, ptr, ptr, i32 }
59	%struct.stmt_operands_d = type { ptr, ptr, ptr, ptr, ptr }
60	%struct.temp_slot = type opaque
61	%struct.tree_ann_common_d = type { i32, ptr, ptr }
62	%struct.tree_ann_d = type { %struct.stmt_ann_d }
63	%struct.tree_binfo = type { %struct.tree_common, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.VEC_tree }
64	%struct.tree_block = type { %struct.tree_common, i8, [3 x i8], ptr, ptr, ptr, ptr, ptr, ptr }
65	%struct.tree_common = type { ptr, ptr, ptr, i8, i8, i8, i8, i8 }
66	%struct.tree_complex = type { %struct.tree_common, ptr, ptr }
67	%struct.tree_decl = type { %struct.tree_common, %struct.__sbuf, i32, ptr, i8, i8, i8, i8, i8, i8, i8, i32, %struct.tree_decl_u1, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, %struct.tree_decl_u2, ptr, ptr, i64, ptr }
68	%struct.tree_decl_u1 = type { i64 }
69	%struct.tree_decl_u1_a = type { i32 }
70	%struct.tree_decl_u2 = type { ptr }
71	%struct.tree_exp = type { %struct.tree_common, ptr, i32, ptr, [1 x ptr] }
72	%struct.tree_identifier = type { %struct.tree_common, %struct.ht_identifier }
73	%struct.tree_int_cst = type { %struct.tree_common, %struct.tree_int_cst_lowhi }
74	%struct.tree_int_cst_lowhi = type { i64, i64 }
75	%struct.tree_list = type { %struct.tree_common, ptr, ptr }
76	%struct.tree_live_info_d = type { ptr, ptr, ptr, i32, ptr }
77	%struct.tree_node = type { %struct.tree_decl }
78	%struct.tree_partition_associator_d = type { ptr, ptr, ptr, ptr, i32, i32, ptr }
79	%struct.tree_phi_node = type { %struct.tree_common, ptr, i32, i32, i32, ptr, ptr, [1 x %struct.phi_arg_d] }
80	%struct.tree_real_cst = type { %struct.tree_common, ptr }
81	%struct.tree_ssa_name = type { %struct.tree_common, ptr, i32, ptr, ptr, ptr }
82	%struct.tree_statement_list = type { %struct.tree_common, ptr, ptr }
83	%struct.tree_statement_list_node = type { ptr, ptr, ptr }
84	%struct.tree_stmt_iterator = type { ptr, ptr }
85	%struct.tree_string = type { %struct.tree_common, i32, [1 x i8] }
86	%struct.tree_type = type { %struct.tree_common, ptr, ptr, ptr, ptr, i32, i16, i8, i8, i32, ptr, ptr, %struct.tree_decl_u1_a, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr }
87	%struct.tree_type_symtab = type { i32 }
88	%struct.tree_value_handle = type { %struct.tree_common, ptr, i32 }
89	%struct.tree_vec = type { %struct.tree_common, i32, [1 x ptr] }
90	%struct.tree_vector = type { %struct.tree_common, ptr }
91	%struct.use_operand_ptr = type { ptr }
92	%struct.use_optype_d = type { i32, [1 x %struct.def_operand_ptr] }
93	%struct.v_def_use_operand_type_t = type { ptr, ptr }
94	%struct.v_may_def_optype_d = type { i32, [1 x %struct.v_def_use_operand_type_t] }
95	%struct.v_must_def_optype_d = type { i32, [1 x %struct.v_def_use_operand_type_t] }
96	%struct.value_set = type opaque
97	%struct.var_ann_d = type { %struct.tree_ann_common_d, i8, i8, ptr, ptr, i32, i32, i32, ptr, ptr }
98	%struct.var_refs_queue = type { ptr, i32, i32, ptr }
99	%struct.varasm_status = type opaque
100	%struct.varray_data = type { [1 x i64] }
101	%struct.varray_head_tag = type { i32, i32, i32, ptr, %struct.varray_data }
102	%struct.vuse_optype_d = type { i32, [1 x ptr] }
103@basic_block_info = external global ptr		; <ptr> [#uses=1]
104
105define void @calculate_live_on_entry_cond_true3632(ptr %stack3023.6, ptr %tmp3629, ptr %tmp3397.out) {
106newFuncRoot:
107	br label %cond_true3632
108
109bb3502.exitStub:		; preds = %cond_true3632
110	store ptr %tmp3397, ptr %tmp3397.out
111	ret void
112
113cond_true3632:		; preds = %newFuncRoot
114	%tmp3378 = load i32, ptr %tmp3629		; <i32> [#uses=1]
115	%tmp3379 = add i32 %tmp3378, -1		; <i32> [#uses=1]
116	%tmp3381 = getelementptr %struct.varray_head_tag, ptr %stack3023.6, i32 0, i32 4		; <ptr> [#uses=1]
117	%gep.upgrd.1 = zext i32 %tmp3379 to i64		; <i64> [#uses=1]
118	%tmp3383 = getelementptr [1 x i32], ptr %tmp3381, i32 0, i64 %gep.upgrd.1		; <ptr> [#uses=1]
119	%tmp3384 = load i32, ptr %tmp3383		; <i32> [#uses=1]
120	%tmp3387 = load i32, ptr %tmp3629		; <i32> [#uses=1]
121	%tmp3388 = add i32 %tmp3387, -1		; <i32> [#uses=1]
122	store i32 %tmp3388, ptr %tmp3629
123	%tmp3391 = load ptr, ptr @basic_block_info		; <ptr> [#uses=1]
124	%tmp3393 = getelementptr %struct.varray_head_tag, ptr %tmp3391, i32 0, i32 4		; <ptr> [#uses=1]
125	%tmp3395 = getelementptr [1 x ptr], ptr %tmp3393, i32 0, i32 %tmp3384		; <ptr> [#uses=1]
126	%tmp3396 = load ptr, ptr %tmp3395		; <ptr> [#uses=1]
127	%tmp3397 = getelementptr %struct.basic_block_def, ptr %tmp3396, i32 0, i32 3		; <ptr> [#uses=1]
128	br label %bb3502.exitStub
129}
130