From: Chris Lattner Date: Mon, 20 Nov 2006 21:20:57 +0000 (+0000) Subject: new testcase X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bdde0d95531312d22697f69cce3f11a0158f5ed5;p=oota-llvm.git new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31885 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/ConstProp/float-to-ptr-cast.ll b/test/Transforms/ConstProp/float-to-ptr-cast.ll new file mode 100644 index 00000000000..39e0fc7a52b --- /dev/null +++ b/test/Transforms/ConstProp/float-to-ptr-cast.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | opt -constprop | llvm-dis | grep -F 'ret int* null' | wc -l | grep 2 +int* %test1() { + %X = cast float 0.0 to int* + ret int* %X +} + +int* %test2() { + ret int* cast (float 0.0 to int*) +}