From af6aa077d4128cb09ba4872430811f1916e9e422 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 30 Nov 2005 20:40:28 +0000 Subject: [PATCH] Test that crashes the ppc backend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24546 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../CodeGen/PowerPC/2005-11-30-vastart-crash.ll | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/CodeGen/PowerPC/2005-11-30-vastart-crash.ll 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 00000000000..665429b4e8e --- /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* ; [#uses=2] + call void %llvm.va_start( sbyte** %ap ) + %tmp.1 = load sbyte** %ap ; [#uses=1] + %tmp.0 = call double %foo( sbyte* %tmp.1 ) ; [#uses=0] + ret void +} + +declare void %llvm.va_start(sbyte**) + +declare double %foo(sbyte*)