Don't upgrade these.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35166 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-03-19 18:08:42 +00:00
parent 757072d954
commit 660c4f9fac
3 changed files with 18 additions and 20 deletions

View File

@ -1,9 +1,8 @@
; 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
}

View File

@ -1,14 +1,12 @@
; 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 }

View File

@ -1,10 +1,11 @@
; 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
}