From 6d65f333a3079ea4be74e73ea1f68ab0897fec77 Mon Sep 17 00:00:00 2001 From: Renato Golin Date: Sat, 18 May 2013 19:42:07 +0000 Subject: [PATCH] Unsupported remote JIT on ARM git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182201 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/ExecutionEngine/MCJIT/lit.local.cfg | 3 +++ test/ExecutionEngine/MCJIT/remote/lit.local.cfg | 11 +++++++++++ test/ExecutionEngine/MCJIT/{ => remote}/simpletest-remote.ll | 1 - test/ExecutionEngine/MCJIT/{ => remote}/stubs-remote.ll | 0 .../MCJIT/{ => remote}/test-common-symbols-remote.ll | 6 +++--- .../MCJIT/{ => remote}/test-data-align-remote.ll | 0 .../MCJIT/{ => remote}/test-fp-no-external-funcs-remote.ll | 1 - .../MCJIT/{ => remote}/test-global-init-nonzero-remote.ll | 0 .../MCJIT/{ => remote}/test-ptr-reloc-remote.ll | 1 - 9 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 test/ExecutionEngine/MCJIT/remote/lit.local.cfg rename test/ExecutionEngine/MCJIT/{ => remote}/simpletest-remote.ll (99%) rename test/ExecutionEngine/MCJIT/{ => remote}/stubs-remote.ll (100%) rename test/ExecutionEngine/MCJIT/{ => remote}/test-common-symbols-remote.ll (99%) rename test/ExecutionEngine/MCJIT/{ => remote}/test-data-align-remote.ll (100%) rename test/ExecutionEngine/MCJIT/{ => remote}/test-fp-no-external-funcs-remote.ll (99%) rename test/ExecutionEngine/MCJIT/{ => remote}/test-global-init-nonzero-remote.ll (100%) rename test/ExecutionEngine/MCJIT/{ => remote}/test-ptr-reloc-remote.ll (99%) diff --git a/test/ExecutionEngine/MCJIT/lit.local.cfg b/test/ExecutionEngine/MCJIT/lit.local.cfg index 30ed4e87e6c..9f0552a50f0 100644 --- a/test/ExecutionEngine/MCJIT/lit.local.cfg +++ b/test/ExecutionEngine/MCJIT/lit.local.cfg @@ -18,6 +18,9 @@ if root.host_arch not in ['i386', 'x86', 'x86_64', 'AArch64', 'ARM', 'Mips', 'PowerPC', 'SystemZ']: config.unsupported = True +if 'armv7' in root.host_arch: + config.unsupported = False + if 'i386-apple-darwin' in root.target_triple: config.unsupported = True diff --git a/test/ExecutionEngine/MCJIT/remote/lit.local.cfg b/test/ExecutionEngine/MCJIT/remote/lit.local.cfg new file mode 100644 index 00000000000..12fcda02732 --- /dev/null +++ b/test/ExecutionEngine/MCJIT/remote/lit.local.cfg @@ -0,0 +1,11 @@ +config.suffixes = ['.ll', '.c', '.cpp'] + +def getRoot(config): + if not config.parent: + return config + return getRoot(config.parent) + +root = getRoot(config) + +if 'arm' in root.target_triple: + config.unsupported = True diff --git a/test/ExecutionEngine/MCJIT/simpletest-remote.ll b/test/ExecutionEngine/MCJIT/remote/simpletest-remote.ll similarity index 99% rename from test/ExecutionEngine/MCJIT/simpletest-remote.ll rename to test/ExecutionEngine/MCJIT/remote/simpletest-remote.ll index 9ceaf545c5e..bdd7e3a593a 100644 --- a/test/ExecutionEngine/MCJIT/simpletest-remote.ll +++ b/test/ExecutionEngine/MCJIT/remote/simpletest-remote.ll @@ -9,4 +9,3 @@ define i32 @main() { %r = call i32 @bar( ) ; [#uses=1] ret i32 %r } - diff --git a/test/ExecutionEngine/MCJIT/stubs-remote.ll b/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll similarity index 100% rename from test/ExecutionEngine/MCJIT/stubs-remote.ll rename to test/ExecutionEngine/MCJIT/remote/stubs-remote.ll diff --git a/test/ExecutionEngine/MCJIT/test-common-symbols-remote.ll b/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll similarity index 99% rename from test/ExecutionEngine/MCJIT/test-common-symbols-remote.ll rename to test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll index 3b8ee9dd1cc..a336c017c08 100644 --- a/test/ExecutionEngine/MCJIT/test-common-symbols-remote.ll +++ b/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll @@ -9,14 +9,14 @@ ; 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]; ; } diff --git a/test/ExecutionEngine/MCJIT/test-data-align-remote.ll b/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll similarity index 100% rename from test/ExecutionEngine/MCJIT/test-data-align-remote.ll rename to test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll diff --git a/test/ExecutionEngine/MCJIT/test-fp-no-external-funcs-remote.ll b/test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll similarity index 99% rename from test/ExecutionEngine/MCJIT/test-fp-no-external-funcs-remote.ll rename to test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll index 847d2253a0e..c7d48126ae6 100644 --- a/test/ExecutionEngine/MCJIT/test-fp-no-external-funcs-remote.ll +++ b/test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll @@ -19,4 +19,3 @@ define i32 @main() { call double @test( double* %X, double 2.000000e+00 ) ; :1 [#uses=0] ret i32 0 } - diff --git a/test/ExecutionEngine/MCJIT/test-global-init-nonzero-remote.ll b/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll similarity index 100% rename from test/ExecutionEngine/MCJIT/test-global-init-nonzero-remote.ll rename to test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll diff --git a/test/ExecutionEngine/MCJIT/test-ptr-reloc-remote.ll b/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll similarity index 99% rename from test/ExecutionEngine/MCJIT/test-ptr-reloc-remote.ll rename to test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll index f2c2cd6199f..833a56a4a95 100644 --- a/test/ExecutionEngine/MCJIT/test-ptr-reloc-remote.ll +++ b/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll @@ -14,4 +14,3 @@ entry: %. = zext i1 %cmp to i32 ret i32 %. } - -- 2.11.0