; Basic test for bugpoint.
-; RUN: llvm-upgrade < %s > %t1.ll
-; RUN: bugpoint %t1.ll -domset -idom -domset -bugpoint-crashcalls \
+; RUN: bugpoint %s -domset -idom -domset -bugpoint-crashcalls \
; RUN: -domset -idom -domset
-int %test() {
- call int %test()
- ret int %0
+define i32 @test() {
+ call i32 @test()
+ ret i32 %1
}
; Test that bugpoint can narrow down the testcase to the important function
;
-; RUN: llvm-upgrade < %s > %t1.ll
-; RUN: bugpoint %t1.ll -bugpoint-crashcalls
+; RUN: bugpoint %s -bugpoint-crashcalls
-int %foo() { ret int 1 }
+define i32 @foo() { ret i32 1 }
-int %test() {
- call int %test()
- ret int %0
+define i32 @test() {
+ call i32 @test()
+ ret i32 %1
}
-int %bar() { ret int 2 }
-
+define i32 @bar() { ret i32 2 }
-; RUN: llvm-upgrade < %s > %t1.ll
-; RUN: bugpoint %t1.ll -bugpoint-crashcalls
+; RUN: bugpoint %s -bugpoint-crashcalls
-; Test to make sure that arguments are removed from the function if they are unnecessary.
+; Test to make sure that arguments are removed from the function if they are
+; unnecessary.
-declare int %test2()
-int %test(int %A, int %B, float %C) {
- call int %test2()
- ret int %0
+declare i32 @test2()
+
+define i32 @test(i32 %A, i32 %B, float %C) {
+ call i32 @test2()
+ ret i32 %1
}