From: Lang Hames Date: Sat, 24 Jan 2015 22:41:13 +0000 (+0000) Subject: Remove a few more redundant ExecutionEngine regression tests. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=5c7cc95d478f4c3692fef20cf5d8d09055cd8b89 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 --- diff --git a/test/ExecutionEngine/2005-12-02-TailCallBug.ll b/test/ExecutionEngine/2005-12-02-TailCallBug.ll deleted file mode 100644 index 2ac8ad1795d..00000000000 --- a/test/ExecutionEngine/2005-12-02-TailCallBug.ll +++ /dev/null @@ -1,21 +0,0 @@ -; PR672 -; RUN: %lli %s - -define i32 @main() { - %f = bitcast i32 (i32, i32*, i32)* @check_tail to i32* ; [#uses=1] - %res = tail call fastcc i32 @check_tail( i32 10, i32* %f, i32 10 ) ; [#uses=1] - ret i32 %res -} - -define fastcc i32 @check_tail(i32 %x, i32* %f, i32 %g) { - %tmp1 = icmp sgt i32 %x, 0 ; [#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)* ; [#uses=1] - %arg1 = add i32 %x, -1 ; [#uses=1] - %res = tail call fastcc i32 %fun_ptr( i32 %arg1, i32* %f, i32 %g ) ; [#uses=1] - ret i32 %res -if-else: ; preds = %0 - ret i32 %x -} - diff --git a/test/ExecutionEngine/MCJIT/2010-01-15-UndefValue.ll b/test/ExecutionEngine/MCJIT/2010-01-15-UndefValue.ll deleted file mode 100644 index 8bf03de321b..00000000000 --- a/test/ExecutionEngine/MCJIT/2010-01-15-UndefValue.ll +++ /dev/null @@ -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 -} diff --git a/test/ExecutionEngine/test-fp-no-external-funcs.ll b/test/ExecutionEngine/test-fp-no-external-funcs.ll deleted file mode 100644 index 61b12c2abeb..00000000000 --- a/test/ExecutionEngine/test-fp-no-external-funcs.ll +++ /dev/null @@ -1,21 +0,0 @@ -; RUN: %lli %s > /dev/null - -define double @test(double* %DP, double %Arg) { - %D = load double* %DP ; [#uses=1] - %V = fadd double %D, 1.000000e+00 ; [#uses=2] - %W = fsub double %V, %V ; [#uses=3] - %X = fmul double %W, %W ; [#uses=2] - %Y = fdiv double %X, %X ; [#uses=2] - %Q = fadd double %Y, %Arg ; [#uses=1] - %R = bitcast double %Q to double ; [#uses=1] - store double %Q, double* %DP - ret double %Y -} - -define i32 @main() { - %X = alloca double ; [#uses=2] - store double 0.000000e+00, double* %X - call double @test( double* %X, double 2.000000e+00 ) ; :1 [#uses=0] - ret i32 0 -} - diff --git a/test/ExecutionEngine/test-global-init-nonzero.ll b/test/ExecutionEngine/test-global-init-nonzero.ll deleted file mode 100644 index 749a4851c5d..00000000000 --- a/test/ExecutionEngine/test-global-init-nonzero.ll +++ /dev/null @@ -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 -}