1 ; RUN: llc < %s -verify-coalescing
2 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
3 target triple = "x86_64-apple-macosx10.6.0"
5 %struct.attrib = type { i32, i32 }
6 %struct.dfa = type { [80 x i8], i32, ptr, i32, i32, ptr, i32, i32 }
7 %struct.state = type { i32, [4 x i32] }
9 @aux_temp = external global %struct.dfa, align 8
11 declare i64 @llvm.objectsize.i64.p0(ptr, i1) nounwind readnone
13 declare void @__memset_chk() nounwind
15 define void @dfa_add_string() nounwind uwtable ssp {
19 if.end.i: ; preds = %entry
20 %idxprom.i = add i64 0, 1
21 br i1 undef, label %land.end.thread.i, label %land.end.i
23 land.end.thread.i: ; preds = %if.end.i
24 %0 = call i64 @llvm.objectsize.i64.p0(ptr undef, i1 false) nounwind
25 %cmp1710.i = icmp eq i64 %0, -1
26 br i1 %cmp1710.i, label %cond.false156.i, label %cond.true138.i
28 land.end.i: ; preds = %if.end.i
29 %1 = call i64 @llvm.objectsize.i64.p0(ptr undef, i1 false) nounwind
30 %cmp17.i = icmp eq i64 %1, -1
31 br i1 %cmp17.i, label %cond.false156.i, label %cond.true138.i
33 cond.true138.i: ; preds = %for.end.i, %land.end.thread.i
34 call void @__memset_chk() nounwind
35 br label %cond.end166.i
37 cond.false156.i: ; preds = %for.end.i, %land.end.thread.i
38 %idxprom1114.i = phi i64 [ undef, %land.end.thread.i ], [ %idxprom.i, %land.end.i ]
39 call void @__memset_chk() nounwind
40 br label %cond.end166.i
42 cond.end166.i: ; preds = %cond.false156.i, %cond.true138.i
43 %idxprom1113.i = phi i64 [ %idxprom1114.i, %cond.false156.i ], [ undef, %cond.true138.i ]
44 %tmp235.i = load ptr, ptr getelementptr inbounds (%struct.dfa, ptr @aux_temp, i64 0, i32 2), align 8
45 %att.i = getelementptr inbounds %struct.state, ptr %tmp235.i, i64 %idxprom1113.i, i32 0
46 store i32 0, ptr %att.i, align 4