blob: 9ed26149b7797f6aca681b3d2127d47e081583f3 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32 -regalloc=local -O0 -relocation-model=pic -o -
Jakob Stoklund Olesen85f4fda2010-05-12 00:11:24 +00002; RUN: llc < %s -march=ppc32 -regalloc=fast -O0 -relocation-model=pic -o -
Bill Wendlingeabb8862008-10-15 18:27:15 +00003; PR1638
4
5@.str242 = external constant [3 x i8] ; <[3 x i8]*> [#uses=1]
6
7define fastcc void @ParseContent(i8* %buf, i32 %bufsize) {
8entry:
9 %items = alloca [10000 x i8*], align 16 ; <[10000 x i8*]*> [#uses=0]
10 %tmp86 = add i32 0, -1 ; <i32> [#uses=1]
11 br i1 false, label %cond_true94, label %cond_next99
12
13cond_true94: ; preds = %entry
14 %tmp98 = call i32 (i8*, ...)* @printf(i8* getelementptr ([3 x i8]* @.str242, i32 0, i32 0), i8* null) ; <i32> [#uses=0]
15 %tmp20971 = icmp sgt i32 %tmp86, 0 ; <i1> [#uses=1]
16 br i1 %tmp20971, label %bb101, label %bb212
17
18cond_next99: ; preds = %entry
19 ret void
20
21bb101: ; preds = %cond_true94
22 ret void
23
24bb212: ; preds = %cond_true94
25 ret void
26}
27
28declare i32 @printf(i8*, ...)