Add support for multiple return values for the PPC target by
[oota-llvm.git] / test / CodeGen / PowerPC / and-branch.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep mfcr
2
3 void %foo(int %X, int %Y, int %Z) {
4 entry:
5         %tmp = seteq int %X, 0          ; <bool> [#uses=1]
6         %tmp3 = setlt int %Y, 5         ; <bool> [#uses=1]
7         %tmp4 = and bool %tmp3, %tmp            ; <bool> [#uses=1]
8         br bool %tmp4, label %cond_true, label %UnifiedReturnBlock
9
10 cond_true:              ; preds = %entry
11         %tmp5 = tail call int (...)* %bar( )            ; <int> [#uses=0]
12         ret void
13
14 UnifiedReturnBlock:             ; preds = %entry
15         ret void
16 }
17
18 declare int %bar(...)