aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/IntPtrCast.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/IntPtrCast.ll')
-rw-r--r--test/Transforms/InstCombine/IntPtrCast.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/IntPtrCast.ll b/test/Transforms/InstCombine/IntPtrCast.ll
new file mode 100644
index 0000000..7ff71c8
--- /dev/null
+++ b/test/Transforms/InstCombine/IntPtrCast.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | notcast
+target endian = little
+target pointersize = 32
+
+int *%test(int *%P) {
+ %V = cast int* %P to int
+ %P2 = cast int %V to int*
+ ret int* %P2
+}