From 7231f7c431f8535983795cf20ca942b85c933342 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 21 Oct 2003 15:36:21 +0000 Subject: [PATCH] Update test to new style llvm-svn: 9327 --- llvm/test/Feature/varargs.ll | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/llvm/test/Feature/varargs.ll b/llvm/test/Feature/varargs.ll index defcd93c..bf0c6f2 100644 --- a/llvm/test/Feature/varargs.ll +++ b/llvm/test/Feature/varargs.ll @@ -2,20 +2,18 @@ ; the va_arg instruction. implementation -declare void %llvm.va_start(sbyte**, ...) -declare void %llvm.va_copy(sbyte**, sbyte*) -declare void %llvm.va_end(sbyte**) +declare sbyte* %llvm.va_start() +declare sbyte* %llvm.va_copy(sbyte*) +declare void %llvm.va_end(sbyte*) int %test(int %X, ...) { - %ap = alloca sbyte* - %aq = alloca sbyte* - call void (sbyte**, ...)* %llvm.va_start(sbyte** %ap, int %X) - %apv = load sbyte** %ap - call void %llvm.va_copy(sbyte** %aq, sbyte* %apv) - call void %llvm.va_end(sbyte** %aq) + %ap = call sbyte* %llvm.va_start() + %aq = call sbyte* %llvm.va_copy(sbyte* %ap) + call void %llvm.va_end(sbyte* %aq) - %tmp = va_arg sbyte** %ap, int + %tmp = vaarg sbyte* %ap, int + %ap2 = vanext sbyte* %ap, int - call void %llvm.va_end(sbyte** %ap) + call void %llvm.va_end(sbyte* %ap2) ret int %tmp } -- 2.7.4