summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-30 20:40:28 +0000
committerChris Lattner <sabre@nondot.org>2005-11-30 20:40:28 +0000
commitbd065599e6bffe97666eef8be493d321069af2cd (patch)
tree711112ff365df76b4ded052d01e42d2367c11271
parentdc4ffef633d559e2061a68a7723874a8570290f7 (diff)
downloadbcm5719-llvm-bd065599e6bffe97666eef8be493d321069af2cd.tar.gz
bcm5719-llvm-bd065599e6bffe97666eef8be493d321069af2cd.zip
Test that crashes the ppc backend.
llvm-svn: 24546
-rw-r--r--llvm/test/Regression/CodeGen/PowerPC/2005-11-30-vastart-crash.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/PowerPC/2005-11-30-vastart-crash.ll b/llvm/test/Regression/CodeGen/PowerPC/2005-11-30-vastart-crash.ll
new file mode 100644
index 00000000000..665429b4e8e
--- /dev/null
+++ b/llvm/test/Regression/CodeGen/PowerPC/2005-11-30-vastart-crash.ll
@@ -0,0 +1,17 @@
+; RUN: llvm-as < %s | llc
+target endian = big
+target pointersize = 32
+target triple = "powerpc-apple-darwin8.2.0"
+implementation ; Functions:
+
+void %bar(int %G, int %E, int %F, int %A, int %B, int %C, int %D, sbyte* %fmt, ...) {
+ %ap = alloca sbyte* ; <sbyte**> [#uses=2]
+ call void %llvm.va_start( sbyte** %ap )
+ %tmp.1 = load sbyte** %ap ; <sbyte*> [#uses=1]
+ %tmp.0 = call double %foo( sbyte* %tmp.1 ) ; <double> [#uses=0]
+ ret void
+}
+
+declare void %llvm.va_start(sbyte**)
+
+declare double %foo(sbyte*)
OpenPOWER on IntegriCloud