blob: 9ebf8901b77c067bba16142e140b8c6f5ab8d2d2 [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 | not grep set
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Dale Johannesen6e04eac2008-03-31 23:20:09 +00003define void @foo(i32 %X, i32 %Y, i32 %Z) nounwind {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004entry:
Tanya Lattner632e88a2008-02-21 07:42:26 +00005 %tmp = tail call i32 (...)* @bar( ) ; <i32> [#uses=0]
6 %tmp.upgrd.1 = icmp eq i32 %X, 0 ; <i1> [#uses=1]
7 %tmp3 = icmp slt i32 %Y, 5 ; <i1> [#uses=1]
8 %tmp4 = or i1 %tmp3, %tmp.upgrd.1 ; <i1> [#uses=1]
9 br i1 %tmp4, label %cond_true, label %UnifiedReturnBlock
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010
11cond_true: ; preds = %entry
Tanya Lattner632e88a2008-02-21 07:42:26 +000012 %tmp5 = tail call i32 (...)* @bar( ) ; <i32> [#uses=0]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013 ret void
14
15UnifiedReturnBlock: ; preds = %entry
16 ret void
17}
18
Tanya Lattner632e88a2008-02-21 07:42:26 +000019declare i32 @bar(...)