diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-10-21 15:36:21 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-10-21 15:36:21 +0000 |
| commit | 7231f7c431f8535983795cf20ca942b85c933342 (patch) | |
| tree | 06205af62b9e682e45176d5a801611f77615494f /llvm/test/Feature | |
| parent | 3ea444560080cd058866d82e0c21c6036290a3c7 (diff) | |
| download | bcm5719-llvm-7231f7c431f8535983795cf20ca942b85c933342.tar.gz bcm5719-llvm-7231f7c431f8535983795cf20ca942b85c933342.zip | |
Update test to new style
llvm-svn: 9327
Diffstat (limited to 'llvm/test/Feature')
| -rw-r--r-- | llvm/test/Feature/varargs.ll | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/llvm/test/Feature/varargs.ll b/llvm/test/Feature/varargs.ll index defcd93cc66..bf0c6f2ac6f 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 } |

