llvm.org GIT mirror llvm / 25e6e99
Update test to new style git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9327 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 9 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
11 ; the va_arg instruction.
22
33 implementation
4 declare void %llvm.va_start(sbyte**, ...)
5 declare void %llvm.va_copy(sbyte**, sbyte*)
6 declare void %llvm.va_end(sbyte**)
4 declare sbyte* %llvm.va_start()
5 declare sbyte* %llvm.va_copy(sbyte*)
6 declare void %llvm.va_end(sbyte*)
77
88 int %test(int %X, ...) {
9 %ap = alloca sbyte*
10 %aq = alloca sbyte*
11 call void (sbyte**, ...)* %llvm.va_start(sbyte** %ap, int %X)
12 %apv = load sbyte** %ap
13 call void %llvm.va_copy(sbyte** %aq, sbyte* %apv)
14 call void %llvm.va_end(sbyte** %aq)
9 %ap = call sbyte* %llvm.va_start()
10 %aq = call sbyte* %llvm.va_copy(sbyte* %ap)
11 call void %llvm.va_end(sbyte* %aq)
1512
16 %tmp = va_arg sbyte** %ap, int
13 %tmp = vaarg sbyte* %ap, int
14 %ap2 = vanext sbyte* %ap, int
1715
18 call void %llvm.va_end(sbyte** %ap)
16 call void %llvm.va_end(sbyte* %ap2)
1917 ret int %tmp
2018 }