llvm.org GIT mirror llvm / 660c4f9
Don't upgrade these. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35166 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 12 years ago
3 changed file(s) with 18 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
0 ; Basic test for bugpoint.
1 ; RUN: llvm-upgrade < %s > %t1.ll
2 ; RUN: bugpoint %t1.ll -domset -idom -domset -bugpoint-crashcalls \
1 ; RUN: bugpoint %s -domset -idom -domset -bugpoint-crashcalls \
32 ; RUN: -domset -idom -domset
43
5 int %test() {
6 call int %test()
7 ret int %0
4 define i32 @test() {
5 call i32 @test()
6 ret i32 %1
87 }
0 ; Test that bugpoint can narrow down the testcase to the important function
11 ;
2 ; RUN: llvm-upgrade < %s > %t1.ll
3 ; RUN: bugpoint %t1.ll -bugpoint-crashcalls
2 ; RUN: bugpoint %s -bugpoint-crashcalls
43
5 int %foo() { ret int 1 }
4 define i32 @foo() { ret i32 1 }
65
7 int %test() {
8 call int %test()
9 ret int %0
6 define i32 @test() {
7 call i32 @test()
8 ret i32 %1
109 }
1110
12 int %bar() { ret int 2 }
13
11 define i32 @bar() { ret i32 2 }
None ; RUN: llvm-upgrade < %s > %t1.ll
1 ; RUN: bugpoint %t1.ll -bugpoint-crashcalls
0 ; RUN: bugpoint %s -bugpoint-crashcalls
21
3 ; Test to make sure that arguments are removed from the function if they are unnecessary.
2 ; Test to make sure that arguments are removed from the function if they are
3 ; unnecessary.
44
5 declare int %test2()
6 int %test(int %A, int %B, float %C) {
7 call int %test2()
8 ret int %0
5 declare i32 @test2()
6
7 define i32 @test(i32 %A, i32 %B, float %C) {
8 call i32 @test2()
9 ret i32 %1
910 }