New testcase
[oota-llvm.git] / test / Transforms / IPConstantProp / return-constant.ll
1 ; RUN: llvm-as < %s | opt -ipconstprop -instcombine | llvm-dis 
2 implementation
3
4 internal int %foo(bool %C) {
5         br bool %C, label %T, label %F
6 T:
7         ret int 52
8 F:
9         ret int 52
10 }
11
12 bool %caller(bool %C) {
13         %X = call int %foo(bool %C)
14         %Y = cast int %X to bool
15         ret bool %Y
16 }