llvm.org GIT mirror llvm / 5c7cc95
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 Lang Hames 5 years ago
4 changed file(s) with 0 addition(s) and 84 deletion(s). Raw diff Collapse all Expand all
+0
-21
test/ExecutionEngine/2005-12-02-TailCallBug.ll less more
None ; PR672
1 ; RUN: %lli %s
2
3 define i32 @main() {
4 %f = bitcast i32 (i32, i32*, i32)* @check_tail to i32* ; [#uses=1]
5 %res = tail call fastcc i32 @check_tail( i32 10, i32* %f, i32 10 ) ; [#uses=1]
6 ret i32 %res
7 }
8
9 define fastcc i32 @check_tail(i32 %x, i32* %f, i32 %g) {
10 %tmp1 = icmp sgt i32 %x, 0 ; [#uses=1]
11 br i1 %tmp1, label %if-then, label %if-else
12 if-then: ; preds = %0
13 %fun_ptr = bitcast i32* %f to i32 (i32, i32*, i32)* ; [#uses=1]
14 %arg1 = add i32 %x, -1 ; [#uses=1]
15 %res = tail call fastcc i32 %fun_ptr( i32 %arg1, i32* %f, i32 %g ) ; [#uses=1]
16 ret i32 %res
17 if-else: ; preds = %0
18 ret i32 %x
19 }
20
+0
-8
test/ExecutionEngine/MCJIT/2010-01-15-UndefValue.ll less more
None ; RUN: %lli -force-interpreter=true %s > /dev/null
1
2 define i32 @main() {
3 %a = add i32 0, undef
4 %b = fadd float 0.0, undef
5 %c = fadd double 0.0, undef
6 ret i32 0
7 }
+0
-21
test/ExecutionEngine/test-fp-no-external-funcs.ll less more
None ; RUN: %lli %s > /dev/null
1
2 define double @test(double* %DP, double %Arg) {
3 %D = load double* %DP ; [#uses=1]
4 %V = fadd double %D, 1.000000e+00 ; [#uses=2]
5 %W = fsub double %V, %V ; [#uses=3]
6 %X = fmul double %W, %W ; [#uses=2]
7 %Y = fdiv double %X, %X ; [#uses=2]
8 %Q = fadd double %Y, %Arg ; [#uses=1]
9 %R = bitcast double %Q to double ; [#uses=1]
10 store double %Q, double* %DP
11 ret double %Y
12 }
13
14 define i32 @main() {
15 %X = alloca double ; [#uses=2]
16 store double 0.000000e+00, double* %X
17 call double @test( double* %X, double 2.000000e+00 ) ; :1 [#uses=0]
18 ret i32 0
19 }
20
+0
-34
test/ExecutionEngine/test-global-init-nonzero.ll less more
None ; RUN: %lli %s > /dev/null
1
2 @count = global i32 1, align 4
3
4 define i32 @main() nounwind uwtable {
5 entry:
6 %retval = alloca i32, align 4
7 %i = alloca i32, align 4
8 store i32 0, i32* %retval
9 store i32 0, i32* %i, align 4
10 br label %for.cond
11
12 for.cond: ; preds = %for.inc, %entry
13 %0 = load i32* %i, align 4
14 %cmp = icmp slt i32 %0, 49
15 br i1 %cmp, label %for.body, label %for.end
16
17 for.body: ; preds = %for.cond
18 %1 = load i32* @count, align 4
19 %inc = add nsw i32 %1, 1
20 store i32 %inc, i32* @count, align 4
21 br label %for.inc
22
23 for.inc: ; preds = %for.body
24 %2 = load i32* %i, align 4
25 %inc1 = add nsw i32 %2, 1
26 store i32 %inc1, i32* %i, align 4
27 br label %for.cond
28
29 for.end: ; preds = %for.cond
30 %3 = load i32* @count, align 4
31 %sub = sub nsw i32 %3, 50
32 ret i32 %sub
33 }