blob: 1543205f1a58431882363cedf5b054aeeee5f2c0 [file] [log] [blame]
Dan Gohmanc8054d92009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32 | not grep mfcr
Chris Lattnerfeaa76a2006-10-27 21:52:39 +00002
Tanya Lattner8bf97c22008-03-25 04:26:08 +00003define void @foo(i32 %X, i32 %Y, i32 %Z) {
Chris Lattnerfeaa76a2006-10-27 21:52:39 +00004entry:
Tanya Lattner8bf97c22008-03-25 04:26:08 +00005 %tmp = icmp eq i32 %X, 0 ; <i1> [#uses=1]
6 %tmp3 = icmp slt i32 %Y, 5 ; <i1> [#uses=1]
7 %tmp4 = and i1 %tmp3, %tmp ; <i1> [#uses=1]
8 br i1 %tmp4, label %cond_true, label %UnifiedReturnBlock
9cond_true: ; preds = %entry
David Blaikie23af6482015-04-16 23:24:18 +000010 %tmp5 = tail call i32 (...) @bar( ) ; <i32> [#uses=0]
Tanya Lattner8bf97c22008-03-25 04:26:08 +000011 ret void
12UnifiedReturnBlock: ; preds = %entry
13 ret void
Chris Lattnerfeaa76a2006-10-27 21:52:39 +000014}
15
Tanya Lattner8bf97c22008-03-25 04:26:08 +000016declare i32 @bar(...)
17