1 ; RUN: llc < %s -mtriple=i386-apple-darwin | grep leal | not grep 16
3 %struct.CUMULATIVE_ARGS = type { i32, i32, i32, i32, i32, i32, i32 }
4 %struct.bitmap_element = type { %struct.bitmap_element*, %struct.bitmap_element*, i32, [2 x i64] }
5 %struct.bitmap_head_def = type { %struct.bitmap_element*, %struct.bitmap_element*, i32 }
6 %struct.branch_path = type { %struct.rtx_def*, i32 }
7 %struct.c_lang_decl = type <{ i8, [3 x i8] }>
8 %struct.constant_descriptor = type { %struct.constant_descriptor*, i8*, %struct.rtx_def*, { x86_fp80 } }
9 %struct.eh_region = type { %struct.eh_region*, %struct.eh_region*, %struct.eh_region*, i32, %struct.bitmap_head_def*, i32, { { %struct.eh_region*, %struct.eh_region*, %struct.eh_region*, %struct.rtx_def* } }, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def* }
10 %struct.eh_status = type { %struct.eh_region*, %struct.eh_region**, %struct.eh_region*, %struct.eh_region*, %struct.tree_node*, %struct.rtx_def*, %struct.rtx_def*, i32, i32, %struct.varray_head_tag*, %struct.varray_head_tag*, %struct.varray_head_tag*, %struct.branch_path*, i32, i32, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def* }
11 %struct.emit_status = type { i32, i32, %struct.rtx_def*, %struct.rtx_def*, %struct.tree_node*, %struct.sequence_stack*, i32, i32, i8*, i32, i8*, %struct.tree_node**, %struct.rtx_def** }
12 %struct.equiv_table = type { %struct.rtx_def*, %struct.rtx_def* }
13 %struct.expr_status = type { i32, i32, i32, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def* }
14 %struct.function = type { %struct.eh_status*, %struct.stmt_status*, %struct.expr_status*, %struct.emit_status*, %struct.varasm_status*, i8*, %struct.tree_node*, %struct.function*, i32, i32, i32, i32, %struct.rtx_def*, %struct.CUMULATIVE_ARGS, %struct.rtx_def*, %struct.rtx_def*, i8*, %struct.initial_value_struct*, i32, %struct.tree_node*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, %struct.tree_node*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, %struct.rtx_def*, i64, %struct.tree_node*, %struct.tree_node*, %struct.rtx_def*, %struct.rtx_def*, i32, %struct.rtx_def**, %struct.temp_slot*, i32, i32, i32, %struct.var_refs_queue*, i32, i32, i8*, %struct.tree_node*, %struct.rtx_def*, i32, i32, %struct.machine_function*, i32, i32, %struct.language_function*, %struct.rtx_def*, i8, i8, i8 }
15 %struct.goto_fixup = type { %struct.goto_fixup*, %struct.rtx_def*, %struct.tree_node*, %struct.tree_node*, %struct.rtx_def*, i32, %struct.rtx_def*, %struct.tree_node* }
16 %struct.initial_value_struct = type { i32, i32, %struct.equiv_table* }
17 %struct.label_chain = type { %struct.label_chain*, %struct.tree_node* }
18 %struct.lang_decl = type { %struct.c_lang_decl, %struct.tree_node* }
19 %struct.language_function = type { %struct.stmt_tree_s, %struct.tree_node* }
20 %struct.machine_function = type { [59 x [3 x %struct.rtx_def*]], i32, i32 }
21 %struct.nesting = type { %struct.nesting*, %struct.nesting*, i32, %struct.rtx_def*, { { i32, %struct.rtx_def*, %struct.rtx_def*, %struct.nesting*, %struct.tree_node*, %struct.tree_node*, %struct.label_chain*, i32, i32, i32, i32, %struct.rtx_def*, %struct.tree_node** } } }
22 %struct.pool_constant = type { %struct.constant_descriptor*, %struct.pool_constant*, %struct.pool_constant*, %struct.rtx_def*, i32, i32, i32, i64, i32 }
23 %struct.rtunion = type { i64 }
24 %struct.rtx_def = type { i16, i8, i8, [1 x %struct.rtunion] }
25 %struct.sequence_stack = type { %struct.rtx_def*, %struct.rtx_def*, %struct.tree_node*, %struct.sequence_stack* }
26 %struct.stmt_status = type { %struct.nesting*, %struct.nesting*, %struct.nesting*, %struct.nesting*, %struct.nesting*, %struct.nesting*, i32, i32, %struct.tree_node*, %struct.rtx_def*, i32, i8*, i32, %struct.goto_fixup* }
27 %struct.stmt_tree_s = type { %struct.tree_node*, %struct.tree_node*, i8*, i32 }
28 %struct.temp_slot = type { %struct.temp_slot*, %struct.rtx_def*, %struct.rtx_def*, i32, i64, %struct.tree_node*, %struct.tree_node*, i8, i8, i32, i32, i64, i64 }
29 %struct.tree_common = type { %struct.tree_node*, %struct.tree_node*, i8, i8, i8, i8 }
30 %struct.tree_decl = type { %struct.tree_common, i8*, i32, i32, %struct.tree_node*, i8, i8, i8, i8, i8, i8, %struct.rtunion, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, %struct.rtx_def*, %struct.rtx_def*, { %struct.function* }, %struct.tree_node*, %struct.tree_node*, %struct.tree_node*, i64, %struct.lang_decl* }
31 %struct.tree_exp = type { %struct.tree_common, i32, [1 x %struct.tree_node*] }
32 %struct.tree_node = type { %struct.tree_decl }
33 %struct.var_refs_queue = type { %struct.rtx_def*, i32, i32, %struct.var_refs_queue* }
34 %struct.varasm_status = type { %struct.constant_descriptor**, %struct.pool_constant**, %struct.pool_constant*, %struct.pool_constant*, i64, %struct.rtx_def* }
35 %struct.varray_data = type { [1 x i64] }
36 %struct.varray_head_tag = type { i32, i32, i32, i8*, %struct.varray_data }
37 @lineno = internal global i32 0 ; <i32*> [#uses=1]
38 @tree_code_length = internal global [256 x i32] zeroinitializer
39 @llvm.used = appending global [1 x i8*] [ i8* bitcast (%struct.tree_node* (i32, ...)* @build_stmt to i8*) ], section "llvm.metadata" ; <[1 x i8*]*> [#uses=0]
41 define %struct.tree_node* @build_stmt(i32 %code, ...) nounwind {
43 %p = alloca i8* ; <i8**> [#uses=3]
44 %p1 = bitcast i8** %p to i8* ; <i8*> [#uses=2]
45 call void @llvm.va_start(i8* %p1)
46 %0 = call fastcc %struct.tree_node* @make_node(i32 %code) nounwind ; <%struct.tree_node*> [#uses=2]
47 %1 = getelementptr [256 x i32]* @tree_code_length, i32 0, i32 %code ; <i32*> [#uses=1]
48 %2 = load i32* %1, align 4 ; <i32> [#uses=2]
49 %3 = load i32* @lineno, align 4 ; <i32> [#uses=1]
50 %4 = bitcast %struct.tree_node* %0 to %struct.tree_exp* ; <%struct.tree_exp*> [#uses=2]
51 %5 = getelementptr %struct.tree_exp* %4, i32 0, i32 1 ; <i32*> [#uses=1]
52 store i32 %3, i32* %5, align 4
53 %6 = icmp sgt i32 %2, 0 ; <i1> [#uses=1]
54 br i1 %6, label %bb, label %bb3
56 bb: ; preds = %bb, %entry
57 %i.01 = phi i32 [ %indvar.next, %bb ], [ 0, %entry ] ; <i32> [#uses=2]
58 %7 = load i8** %p, align 4 ; <i8*> [#uses=2]
59 %8 = getelementptr i8* %7, i32 4 ; <i8*> [#uses=1]
60 store i8* %8, i8** %p, align 4
61 %9 = bitcast i8* %7 to %struct.tree_node** ; <%struct.tree_node**> [#uses=1]
62 %10 = load %struct.tree_node** %9, align 4 ; <%struct.tree_node*> [#uses=1]
63 %11 = getelementptr %struct.tree_exp* %4, i32 0, i32 2, i32 %i.01 ; <%struct.tree_node**> [#uses=1]
64 store %struct.tree_node* %10, %struct.tree_node** %11, align 4
65 %indvar.next = add i32 %i.01, 1 ; <i32> [#uses=2]
66 %exitcond = icmp eq i32 %indvar.next, %2 ; <i1> [#uses=1]
67 br i1 %exitcond, label %bb3, label %bb
69 bb3: ; preds = %bb, %entry
70 call void @llvm.va_end(i8* %p1)
71 ret %struct.tree_node* %0
74 declare void @llvm.va_start(i8*) nounwind
76 declare void @llvm.va_end(i8*) nounwind
78 declare fastcc %struct.tree_node* @make_node(i32) nounwind