new testcase
authorChris Lattner <sabre@nondot.org>
Tue, 20 Jul 2004 05:20:39 +0000 (05:20 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Jul 2004 05:20:39 +0000 (05:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15028 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/IntPtrCast.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/IntPtrCast.ll b/test/Transforms/InstCombine/IntPtrCast.ll
new file mode 100644 (file)
index 0000000..c304982
--- /dev/null
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep cast
+target pointersize = 32
+
+int *%test(int *%P) {
+       %V = cast int* %P to int
+       %P2 = cast int %V to int*
+       ret int* %P2
+}