diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-02 04:23:10 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-02 04:23:10 +0000 |
commit | d0e30dc5be204293e7ddf0c15f5f67fb36f1ca94 (patch) | |
tree | 46c3b512bb78e64fe2b86dab1fc60ea496ee0789 /llvm/test/Feature/varargs.ll | |
parent | bc7daea442ac1baa91f707a9678261ebc2b68673 (diff) | |
download | bcm5719-llvm-d0e30dc5be204293e7ddf0c15f5f67fb36f1ca94.tar.gz bcm5719-llvm-d0e30dc5be204293e7ddf0c15f5f67fb36f1ca94.zip |
Use the llvm-upgrade program to upgrade llvm assembly.
llvm-svn: 32115
Diffstat (limited to 'llvm/test/Feature/varargs.ll')
-rw-r--r-- | llvm/test/Feature/varargs.ll | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/llvm/test/Feature/varargs.ll b/llvm/test/Feature/varargs.ll index d75a49d8edf..672d96a4288 100644 --- a/llvm/test/Feature/varargs.ll +++ b/llvm/test/Feature/varargs.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as %s -o - | llvm-dis > %t1.ll +; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > %t1.ll ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll ; RUN: diff %t1.ll %t2.ll @@ -6,18 +6,19 @@ ; the va_arg instruction. implementation -declare sbyte* %llvm.va_start() -declare sbyte* %llvm.va_copy(sbyte*) -declare void %llvm.va_end(sbyte*) +declare void %llvm.va_start(sbyte** %ap) +declare void %llvm.va_copy(sbyte** %aq, sbyte** %ap) +declare void %llvm.va_end(sbyte** %ap) int %test(int %X, ...) { - %ap = call sbyte* %llvm.va_start() - %aq = call sbyte* %llvm.va_copy(sbyte* %ap) - call void %llvm.va_end(sbyte* %aq) - - %tmp = vaarg sbyte* %ap, int - %ap2 = vanext sbyte* %ap, int + %ap = alloca sbyte* + call void %llvm.va_start(sbyte** %ap) + %tmp = va_arg sbyte** %ap, int - call void %llvm.va_end(sbyte* %ap2) + %aq = alloca sbyte* + call void %llvm.va_copy(sbyte** %aq, sbyte** %ap) + call void %llvm.va_end(sbyte** %aq) + + call void %llvm.va_end(sbyte** %ap) ret int %tmp } |