blob: 353e411b08871e6525abffac5b6e333018554aed [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00002 %struct.TypHeader = type { i32, %struct.TypHeader**, [3 x i8], i8 }
3@.str_67 = external global [4 x i8] ; <[4 x i8]*> [#uses=1]
4@.str_87 = external global [17 x i8] ; <[17 x i8]*> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00006define void @PrBinop() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00008 br i1 false, label %cond_true, label %else.0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000010cond_true: ; preds = %entry
11 br label %else.0
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000013else.0: ; preds = %cond_true, %entry
14 %tmp.167.1 = phi i32 [ ptrtoint ([17 x i8]* @.str_87 to i32), %entry ], [ 0, %cond_true ] ; <i32> [#uses=0]
15 call void @Pr( i8* getelementptr ([4 x i8]* @.str_67, i32 0, i32 0), i32 0, i32 0 )
16 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017}
18
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000019declare void @Pr(i8*, i32, i32)
20