summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll b/llvm/test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll
new file mode 100644
index 00000000000..a2e28d97a11
--- /dev/null
+++ b/llvm/test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll
@@ -0,0 +1,13 @@
+; The cast in this testcase is not eliminable on a 32-bit target!
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep inttoptr
+
+target endian = little
+target pointersize = 32
+
+declare void %foo(...)
+
+void %test(long %X) {
+ %Y = cast long %X to int*
+ call void (...)* %foo(int* %Y)
+ ret void
+}
OpenPOWER on IntegriCloud