testcase for recent selectiondag patch
[oota-llvm.git] / test / CodeGen / PowerPC / 2006-10-13-Miscompile.ll
1 ; RUN: llvm-as < %s | llc -march=ppc32 &&
2 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep IMPLICIT_DEF
3
4 void %foo(long %X) {
5 entry:
6         %tmp1 = and long %X, 3          ; <long> [#uses=1]
7         %tmp = setgt long %tmp1, 2              ; <bool> [#uses=1]
8         br bool %tmp, label %UnifiedReturnBlock, label %cond_true
9
10 cond_true:              ; preds = %entry
11         %tmp = tail call int (...)* %bar( )             ; <int> [#uses=0]
12         ret void
13
14 UnifiedReturnBlock:             ; preds = %entry
15         ret void
16 }
17
18 declare int %bar(...)
19