summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/2005-11-30-vastart-crash.ll
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
commitaf6aa077d4128cb09ba4872430811f1916e9e422 (patch)
tree646e76a19a1aca3c36260cd1e89aade18cc62f72 /test/CodeGen/PowerPC/2005-11-30-vastart-crash.ll
parent2bd4cb597a58d0a8f1ff332c2f50ed8232cc5898 (diff)
downloadllvm-af6aa077d4128cb09ba4872430811f1916e9e422.tar.gz
llvm-af6aa077d4128cb09ba4872430811f1916e9e422.tar.bz2
llvm-af6aa077d4128cb09ba4872430811f1916e9e422.tar.xz
Test that crashes the ppc backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2005-11-30-vastart-crash.ll')
-rw-r--r--test/CodeGen/PowerPC/2005-11-30-vastart-crash.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/2005-11-30-vastart-crash.ll b/test/CodeGen/PowerPC/2005-11-30-vastart-crash.ll
new file mode 100644
index 0000000000..665429b4e8
--- /dev/null
+++ b/test/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*)