mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-08 13:36:26 +00:00
Remove a few more redundant ExecutionEngine regression tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227021 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c7efed60ef
commit
5c7cc95d47
@ -1,21 +0,0 @@
|
||||
; PR672
|
||||
; RUN: %lli %s
|
||||
|
||||
define i32 @main() {
|
||||
%f = bitcast i32 (i32, i32*, i32)* @check_tail to i32* ; <i32*> [#uses=1]
|
||||
%res = tail call fastcc i32 @check_tail( i32 10, i32* %f, i32 10 ) ; <i32> [#uses=1]
|
||||
ret i32 %res
|
||||
}
|
||||
|
||||
define fastcc i32 @check_tail(i32 %x, i32* %f, i32 %g) {
|
||||
%tmp1 = icmp sgt i32 %x, 0 ; <i1> [#uses=1]
|
||||
br i1 %tmp1, label %if-then, label %if-else
|
||||
if-then: ; preds = %0
|
||||
%fun_ptr = bitcast i32* %f to i32 (i32, i32*, i32)* ; <i32 (i32, i32*, i32)*> [#uses=1]
|
||||
%arg1 = add i32 %x, -1 ; <i32> [#uses=1]
|
||||
%res = tail call fastcc i32 %fun_ptr( i32 %arg1, i32* %f, i32 %g ) ; <i32> [#uses=1]
|
||||
ret i32 %res
|
||||
if-else: ; preds = %0
|
||||
ret i32 %x
|
||||
}
|
||||
|
@ -1,8 +0,0 @@
|
||||
; RUN: %lli -force-interpreter=true %s > /dev/null
|
||||
|
||||
define i32 @main() {
|
||||
%a = add i32 0, undef
|
||||
%b = fadd float 0.0, undef
|
||||
%c = fadd double 0.0, undef
|
||||
ret i32 0
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
define double @test(double* %DP, double %Arg) {
|
||||
%D = load double* %DP ; <double> [#uses=1]
|
||||
%V = fadd double %D, 1.000000e+00 ; <double> [#uses=2]
|
||||
%W = fsub double %V, %V ; <double> [#uses=3]
|
||||
%X = fmul double %W, %W ; <double> [#uses=2]
|
||||
%Y = fdiv double %X, %X ; <double> [#uses=2]
|
||||
%Q = fadd double %Y, %Arg ; <double> [#uses=1]
|
||||
%R = bitcast double %Q to double ; <double> [#uses=1]
|
||||
store double %Q, double* %DP
|
||||
ret double %Y
|
||||
}
|
||||
|
||||
define i32 @main() {
|
||||
%X = alloca double ; <double*> [#uses=2]
|
||||
store double 0.000000e+00, double* %X
|
||||
call double @test( double* %X, double 2.000000e+00 ) ; <double>:1 [#uses=0]
|
||||
ret i32 0
|
||||
}
|
||||
|
@ -1,34 +0,0 @@
|
||||
; RUN: %lli %s > /dev/null
|
||||
|
||||
@count = global i32 1, align 4
|
||||
|
||||
define i32 @main() nounwind uwtable {
|
||||
entry:
|
||||
%retval = alloca i32, align 4
|
||||
%i = alloca i32, align 4
|
||||
store i32 0, i32* %retval
|
||||
store i32 0, i32* %i, align 4
|
||||
br label %for.cond
|
||||
|
||||
for.cond: ; preds = %for.inc, %entry
|
||||
%0 = load i32* %i, align 4
|
||||
%cmp = icmp slt i32 %0, 49
|
||||
br i1 %cmp, label %for.body, label %for.end
|
||||
|
||||
for.body: ; preds = %for.cond
|
||||
%1 = load i32* @count, align 4
|
||||
%inc = add nsw i32 %1, 1
|
||||
store i32 %inc, i32* @count, align 4
|
||||
br label %for.inc
|
||||
|
||||
for.inc: ; preds = %for.body
|
||||
%2 = load i32* %i, align 4
|
||||
%inc1 = add nsw i32 %2, 1
|
||||
store i32 %inc1, i32* %i, align 4
|
||||
br label %for.cond
|
||||
|
||||
for.end: ; preds = %for.cond
|
||||
%3 = load i32* @count, align 4
|
||||
%sub = sub nsw i32 %3, 50
|
||||
ret i32 %sub
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user