diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-08 08:55:49 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-09 15:04:38 -0700 |
commit | 4c5e43da7792f75567b693105cc53e3f1992ad98 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/ExecutionEngine/OrcJIT/remote | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
download | external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.zip external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.gz external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.bz2 |
Update aosp/master llvm for rebase to r233350
Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49
Diffstat (limited to 'test/ExecutionEngine/OrcJIT/remote')
18 files changed, 0 insertions, 379 deletions
diff --git a/test/ExecutionEngine/OrcJIT/remote/Inputs/cross-module-b.ll b/test/ExecutionEngine/OrcJIT/remote/Inputs/cross-module-b.ll deleted file mode 100644 index bc13b1d..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/Inputs/cross-module-b.ll +++ /dev/null @@ -1,7 +0,0 @@ -declare i32 @FA() - -define i32 @FB() nounwind { - %r = call i32 @FA( ) ; <i32> [#uses=1] - ret i32 %r -} - diff --git a/test/ExecutionEngine/OrcJIT/remote/Inputs/multi-module-b.ll b/test/ExecutionEngine/OrcJIT/remote/Inputs/multi-module-b.ll deleted file mode 100644 index 0b8d5eb..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/Inputs/multi-module-b.ll +++ /dev/null @@ -1,7 +0,0 @@ -declare i32 @FC() - -define i32 @FB() nounwind { - %r = call i32 @FC( ) ; <i32> [#uses=1] - ret i32 %r -} - diff --git a/test/ExecutionEngine/OrcJIT/remote/Inputs/multi-module-c.ll b/test/ExecutionEngine/OrcJIT/remote/Inputs/multi-module-c.ll deleted file mode 100644 index 98350a8..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/Inputs/multi-module-c.ll +++ /dev/null @@ -1,4 +0,0 @@ -define i32 @FC() nounwind { - ret i32 0 -} - diff --git a/test/ExecutionEngine/OrcJIT/remote/cross-module-a.ll b/test/ExecutionEngine/OrcJIT/remote/cross-module-a.ll deleted file mode 100644 index c315723..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/cross-module-a.ll +++ /dev/null @@ -1,12 +0,0 @@ -; RUN: %lli -extra-module=%p/Inputs/cross-module-b.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null - -declare i32 @FB() - -define i32 @FA() nounwind { - ret i32 0 -} - -define i32 @main() nounwind { - %r = call i32 @FB( ) ; <i32> [#uses=1] - ret i32 %r -} diff --git a/test/ExecutionEngine/OrcJIT/remote/cross-module-sm-pic-a.ll b/test/ExecutionEngine/OrcJIT/remote/cross-module-sm-pic-a.ll deleted file mode 100644 index d47fc6c..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/cross-module-sm-pic-a.ll +++ /dev/null @@ -1,14 +0,0 @@ -; RUN: %lli -extra-module=%p/Inputs/cross-module-b.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target%exeext -relocation-model=pic -code-model=small %s > /dev/null -; XFAIL: mips, i686, i386, arm - -declare i32 @FB() - -define i32 @FA() { - ret i32 0 -} - -define i32 @main() { - %r = call i32 @FB( ) ; <i32> [#uses=1] - ret i32 %r -} - diff --git a/test/ExecutionEngine/OrcJIT/remote/lit.local.cfg b/test/ExecutionEngine/OrcJIT/remote/lit.local.cfg deleted file mode 100644 index 625d82d..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/lit.local.cfg +++ /dev/null @@ -1,8 +0,0 @@ -if 'armv4' in config.root.target_triple or \ - 'armv5' in config.root.target_triple: - config.unsupported = True - -# This is temporary, until Remote MCJIT works on ARM -# See http://llvm.org/bugs/show_bug.cgi?id=18057 -#if 'armv7' in config.root.target_triple: -# config.unsupported = True diff --git a/test/ExecutionEngine/OrcJIT/remote/multi-module-a.ll b/test/ExecutionEngine/OrcJIT/remote/multi-module-a.ll deleted file mode 100644 index 0fd363b..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/multi-module-a.ll +++ /dev/null @@ -1,9 +0,0 @@ -; RUN: %lli -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null - -declare i32 @FB() - -define i32 @main() nounwind { - %r = call i32 @FB( ) ; <i32> [#uses=1] - ret i32 %r -} - diff --git a/test/ExecutionEngine/OrcJIT/remote/multi-module-sm-pic-a.ll b/test/ExecutionEngine/OrcJIT/remote/multi-module-sm-pic-a.ll deleted file mode 100644 index d248c4b..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/multi-module-sm-pic-a.ll +++ /dev/null @@ -1,10 +0,0 @@ -; RUN: %lli -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target%exeext -relocation-model=pic -code-model=small %s > /dev/null -; XFAIL: mips, i686, i386, arm - -declare i32 @FB() - -define i32 @main() { - %r = call i32 @FB( ) ; <i32> [#uses=1] - ret i32 %r -} - diff --git a/test/ExecutionEngine/OrcJIT/remote/simpletest-remote.ll b/test/ExecutionEngine/OrcJIT/remote/simpletest-remote.ll deleted file mode 100644 index 30b4dd8..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/simpletest-remote.ll +++ /dev/null @@ -1,10 +0,0 @@ -; RUN: %lli -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null - -define i32 @bar() nounwind { - ret i32 0 -} - -define i32 @main() nounwind { - %r = call i32 @bar( ) ; <i32> [#uses=1] - ret i32 %r -} diff --git a/test/ExecutionEngine/OrcJIT/remote/stubs-remote.ll b/test/ExecutionEngine/OrcJIT/remote/stubs-remote.ll deleted file mode 100644 index da4ddc6..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/stubs-remote.ll +++ /dev/null @@ -1,37 +0,0 @@ -; RUN: %lli -remote-mcjit -disable-lazy-compilation=false -mcjit-remote-process=lli-child-target%exeext %s -; XFAIL: * -; This test should fail until remote symbol resolution is supported. - -define i32 @main() nounwind { -entry: - call void @lazily_compiled_address_is_consistent() - ret i32 0 -} - -; Test PR3043: @test should have the same address before and after -; it's JIT-compiled. -@funcPtr = common global i1 ()* null, align 4 -@lcaic_failure = internal constant [46 x i8] c"@lazily_compiled_address_is_consistent failed\00" - -define void @lazily_compiled_address_is_consistent() nounwind { -entry: - store i1 ()* @test, i1 ()** @funcPtr - %pass = tail call i1 @test() ; <i32> [#uses=1] - br i1 %pass, label %pass_block, label %fail_block -pass_block: - ret void -fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) - call void @exit(i32 1) - unreachable -} - -define i1 @test() nounwind { -entry: - %tmp = load i1 ()** @funcPtr - %eq = icmp eq i1 ()* %tmp, @test - ret i1 %eq -} - -declare i32 @puts(i8*) noreturn -declare void @exit(i32) noreturn diff --git a/test/ExecutionEngine/OrcJIT/remote/stubs-sm-pic.ll b/test/ExecutionEngine/OrcJIT/remote/stubs-sm-pic.ll deleted file mode 100644 index f6a1607..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/stubs-sm-pic.ll +++ /dev/null @@ -1,37 +0,0 @@ -; RUN: %lli -remote-mcjit -disable-lazy-compilation=false -relocation-model=pic -code-model=small %s -; XFAIL: * -; This function should fail until remote symbol resolution is supported. - -define i32 @main() nounwind { -entry: - call void @lazily_compiled_address_is_consistent() - ret i32 0 -} - -; Test PR3043: @test should have the same address before and after -; it's JIT-compiled. -@funcPtr = common global i1 ()* null, align 4 -@lcaic_failure = internal constant [46 x i8] c"@lazily_compiled_address_is_consistent failed\00" - -define void @lazily_compiled_address_is_consistent() nounwind { -entry: - store i1 ()* @test, i1 ()** @funcPtr - %pass = tail call i1 @test() ; <i32> [#uses=1] - br i1 %pass, label %pass_block, label %fail_block -pass_block: - ret void -fail_block: - call i32 @puts(i8* getelementptr([46 x i8]* @lcaic_failure, i32 0, i32 0)) - call void @exit(i32 1) - unreachable -} - -define i1 @test() nounwind { -entry: - %tmp = load i1 ()** @funcPtr - %eq = icmp eq i1 ()* %tmp, @test - ret i1 %eq -} - -declare i32 @puts(i8*) noreturn -declare void @exit(i32) noreturn diff --git a/test/ExecutionEngine/OrcJIT/remote/test-common-symbols-remote.ll b/test/ExecutionEngine/OrcJIT/remote/test-common-symbols-remote.ll deleted file mode 100644 index 0f58710..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/test-common-symbols-remote.ll +++ /dev/null @@ -1,88 +0,0 @@ -; RUN: %lli -remote-mcjit -O0 -disable-lazy-compilation=false -mcjit-remote-process=lli-child-target%exeext %s - -; The intention of this test is to verify that symbols mapped to COMMON in ELF -; work as expected. -; -; Compiled from this C code: -; -; int zero_int; -; double zero_double; -; int zero_arr[10]; -; -; int main() -; { -; zero_arr[zero_int + 5] = 40; -; -; if (zero_double < 1.0) -; zero_arr[zero_int + 2] = 70; -; -; for (int i = 1; i < 10; ++i) { -; zero_arr[i] = zero_arr[i - 1] + zero_arr[i]; -; } -; return zero_arr[9] == 110 ? 0 : -1; -; } - -@zero_int = common global i32 0, align 4 -@zero_arr = common global [10 x i32] zeroinitializer, align 16 -@zero_double = common global double 0.000000e+00, align 8 - -define i32 @main() nounwind { -entry: - %retval = alloca i32, align 4 - %i = alloca i32, align 4 - store i32 0, i32* %retval - %0 = load i32* @zero_int, align 4 - %add = add nsw i32 %0, 5 - %idxprom = sext i32 %add to i64 - %arrayidx = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom - store i32 40, i32* %arrayidx, align 4 - %1 = load double* @zero_double, align 8 - %cmp = fcmp olt double %1, 1.000000e+00 - br i1 %cmp, label %if.then, label %if.end - -if.then: ; preds = %entry - %2 = load i32* @zero_int, align 4 - %add1 = add nsw i32 %2, 2 - %idxprom2 = sext i32 %add1 to i64 - %arrayidx3 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom2 - store i32 70, i32* %arrayidx3, align 4 - br label %if.end - -if.end: ; preds = %if.then, %entry - store i32 1, i32* %i, align 4 - br label %for.cond - -for.cond: ; preds = %for.inc, %if.end - %3 = load i32* %i, align 4 - %cmp4 = icmp slt i32 %3, 10 - br i1 %cmp4, label %for.body, label %for.end - -for.body: ; preds = %for.cond - %4 = load i32* %i, align 4 - %sub = sub nsw i32 %4, 1 - %idxprom5 = sext i32 %sub to i64 - %arrayidx6 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom5 - %5 = load i32* %arrayidx6, align 4 - %6 = load i32* %i, align 4 - %idxprom7 = sext i32 %6 to i64 - %arrayidx8 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom7 - %7 = load i32* %arrayidx8, align 4 - %add9 = add nsw i32 %5, %7 - %8 = load i32* %i, align 4 - %idxprom10 = sext i32 %8 to i64 - %arrayidx11 = getelementptr inbounds [10 x i32]* @zero_arr, i32 0, i64 %idxprom10 - store i32 %add9, i32* %arrayidx11, align 4 - br label %for.inc - -for.inc: ; preds = %for.body - %9 = load i32* %i, align 4 - %inc = add nsw i32 %9, 1 - store i32 %inc, i32* %i, align 4 - br label %for.cond - -for.end: ; preds = %for.cond - %10 = load i32* getelementptr inbounds ([10 x i32]* @zero_arr, i32 0, i64 9), align 4 - %cmp12 = icmp eq i32 %10, 110 - %cond = select i1 %cmp12, i32 0, i32 -1 - ret i32 %cond -} diff --git a/test/ExecutionEngine/OrcJIT/remote/test-data-align-remote.ll b/test/ExecutionEngine/OrcJIT/remote/test-data-align-remote.ll deleted file mode 100644 index 435c21a..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/test-data-align-remote.ll +++ /dev/null @@ -1,15 +0,0 @@ -; RUN: %lli -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s - -; Check that a variable is always aligned as specified. - -@var = global i32 0, align 32 -define i32 @main() nounwind { - %addr = ptrtoint i32* @var to i64 - %mask = and i64 %addr, 31 - %tst = icmp eq i64 %mask, 0 - br i1 %tst, label %good, label %bad -good: - ret i32 0 -bad: - ret i32 1 -} diff --git a/test/ExecutionEngine/OrcJIT/remote/test-fp-no-external-funcs-remote.ll b/test/ExecutionEngine/OrcJIT/remote/test-fp-no-external-funcs-remote.ll deleted file mode 100644 index 9d11415..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/test-fp-no-external-funcs-remote.ll +++ /dev/null @@ -1,20 +0,0 @@ -; RUN: %lli -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null - -define double @test(double* %DP, double %Arg) nounwind { - %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() nounwind { - %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 -} diff --git a/test/ExecutionEngine/OrcJIT/remote/test-global-init-nonzero-remote.ll b/test/ExecutionEngine/OrcJIT/remote/test-global-init-nonzero-remote.ll deleted file mode 100644 index 40b514f..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/test-global-init-nonzero-remote.ll +++ /dev/null @@ -1,34 +0,0 @@ -; RUN: %lli -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null - -@count = global i32 1, align 4 - -define i32 @main() nounwind { -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 -} diff --git a/test/ExecutionEngine/OrcJIT/remote/test-global-init-nonzero-sm-pic.ll b/test/ExecutionEngine/OrcJIT/remote/test-global-init-nonzero-sm-pic.ll deleted file mode 100644 index 5119b72..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/test-global-init-nonzero-sm-pic.ll +++ /dev/null @@ -1,35 +0,0 @@ -; RUN: %lli -remote-mcjit -relocation-model=pic -code-model=small %s > /dev/null -; XFAIL: mips, aarch64, arm, i686, i386 - -@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 -} diff --git a/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-remote.ll b/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-remote.ll deleted file mode 100644 index ba3ffff..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-remote.ll +++ /dev/null @@ -1,15 +0,0 @@ -; RUN: %lli -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s - -@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 -@.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 - -define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { -entry: - %0 = load i8** @ptr, align 4 - %1 = load i8** @ptr2, align 4 - %cmp = icmp eq i8* %0, %1 - %. = zext i1 %cmp to i32 - ret i32 %. -} diff --git a/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-sm-pic.ll b/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-sm-pic.ll deleted file mode 100644 index bbc71af..0000000 --- a/test/ExecutionEngine/OrcJIT/remote/test-ptr-reloc-sm-pic.ll +++ /dev/null @@ -1,17 +0,0 @@ -; RUN: %lli -remote-mcjit -O0 -relocation-model=pic -code-model=small %s -; XFAIL: mips, aarch64, arm, i686, i386 - -@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 -@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4 -@.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 -@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4 - -define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly { -entry: - %0 = load i8** @ptr, align 4 - %1 = load i8** @ptr2, align 4 - %cmp = icmp eq i8* %0, %1 - %. = zext i1 %cmp to i32 - ret i32 %. -} - |