New testcase crashing the instruction combiner
authorChris Lattner <sabre@nondot.org>
Thu, 30 Oct 2003 00:39:25 +0000 (00:39 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 30 Oct 2003 00:39:25 +0000 (00:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9599 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll b/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll
new file mode 100644 (file)
index 0000000..cef1291
--- /dev/null
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | opt -instcombine -disable-output
+
+declare int* %bar()
+
+float* %foo() {
+       %tmp.11 = invoke float* cast (int* ()* %bar to float* ()*)()
+                       to label %invoke_cont except label %invoke_cont
+
+invoke_cont:
+       ret float *%tmp.11
+}