Fix a bunch of issues found in a testcase from 400.perlbench.
[oota-llvm.git] / test / Transforms / ConstProp / float-to-ptr-cast.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
2 ; RUN:    grep -F {ret i32* null} | wc -l | grep 2
3
4 int* %test1() {
5   %X = cast float 0.0 to int*
6   ret int* %X
7 }
8
9 int* %test2() {
10   ret int* cast (float 0.0 to int*)
11 }