Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / CodeGen / PowerPC / and-branch.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep mfcr
3
4 void %foo(int %X, int %Y, int %Z) {
5 entry:
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
11 cond_true:              ; preds = %entry
12         %tmp5 = tail call int (...)* %bar( )            ; <int> [#uses=0]
13         ret void
14
15 UnifiedReturnBlock:             ; preds = %entry
16         ret void
17 }
18
19 declare int %bar(...)