blob: 676e898e3ada6fd7cb9d9221708cd6c96d187cb1 [file] [log] [blame]
Chris Lattner00ef5042006-10-27 21:52:39 +00001; RUN: llvm-as < %s | llc -march=ppc32 &&
2; RUN: llvm-as < %s | llc -march=ppc32 | not grep mfcr
3
4void %foo(int %X, int %Y, int %Z) {
5entry:
6 %tmp = seteq int %X, 0 ; <bool> [#uses=1]
7 %tmp3 = setlt int %Y, 5 ; <bool> [#uses=1]
8 %tmp4 = and bool %tmp3, %tmp ; <bool> [#uses=1]
9 br bool %tmp4, label %cond_true, label %UnifiedReturnBlock
10
11cond_true: ; preds = %entry
12 %tmp5 = tail call int (...)* %bar( ) ; <int> [#uses=0]
13 ret void
14
15UnifiedReturnBlock: ; preds = %entry
16 ret void
17}
18
19declare int %bar(...)