aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-20 21:20:57 +0000
committerChris Lattner <sabre@nondot.org>2006-11-20 21:20:57 +0000
commitbdde0d95531312d22697f69cce3f11a0158f5ed5 (patch)
tree58a8ac26bf06ca4e555add23703c05ed8d2c62ff /test/Transforms
parente9c9f98f719cc597444181cd6634fac247f8f68c (diff)
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/ConstProp/float-to-ptr-cast.ll9
1 files changed, 9 insertions, 0 deletions
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 0000000000..39e0fc7a52
--- /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*)
+}