llvm.org GIT mirror llvm / b15f5ef
remove two (useless) tests that use incorrect intrinsic prototypes, detected by the new intrinsic verifier. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157543 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 7 years ago
2 changed file(s) with 0 addition(s) and 55 deletion(s). Raw diff Collapse all Expand all
+0
-23
test/Integer/varargs_bt.ll less more
None ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 ; Demonstrate all of the variable argument handling intrinsic functions plus
5 ; the va_arg instruction.
6
7 declare void @llvm.va_start(i8** %ap)
8 declare void @llvm.va_copy(i8** %aq, i8** %ap)
9 declare void @llvm.va_end(i8** %ap)
10
11 define i33 @test(i33 %X, ...) {
12 %ap = alloca i8*
13 call void @llvm.va_start(i8** %ap)
14 %tmp = va_arg i8** %ap, i33
15
16 %aq = alloca i8*
17 call void @llvm.va_copy(i8** %aq, i8** %ap)
18 call void @llvm.va_end(i8** %aq)
19
20 call void @llvm.va_end(i8** %ap)
21 ret i33 %tmp
22 }
+0
-32
test/Integer/varargs_new_bt.ll less more
None ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
1 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
2 ; RUN: diff %t1.ll %t2.ll
3
4 ; Demonstrate all of the variable argument handling intrinsic functions plus
5 ; the va_arg instruction.
6
7 declare void @llvm.va_start(i8**)
8 declare void @llvm.va_copy(i8**, i8*)
9 declare void @llvm.va_end(i8**)
10
11 define i31 @test(i31 %X, ...) {
12 ; Allocate two va_list items. On this target, va_list is of type i8*
13 %ap = alloca i8* ; [#uses=4]
14 %aq = alloca i8* ; [#uses=2]
15
16 ; Initialize variable argument processing
17 call void @llvm.va_start(i8** %ap)
18
19 ; Read a single integer argument
20 %tmp = va_arg i8** %ap, i31 ; [#uses=1]
21
22 ; Demonstrate usage of llvm.va_copy and llvm_va_end
23 %apv = load i8** %ap ; [#uses=1]
24 call void @llvm.va_copy(i8** %aq, i8* %apv)
25 call void @llvm.va_end(i8** %aq)
26
27 ; Stop processing of arguments.
28 call void @llvm.va_end(i8** %ap)
29 ret i31 %tmp
30
31 }