OSDN Git Service

Unsupported remote JIT on ARM
authorRenato Golin <renato.golin@linaro.org>
Sat, 18 May 2013 19:42:07 +0000 (19:42 +0000)
committerRenato Golin <renato.golin@linaro.org>
Sat, 18 May 2013 19:42:07 +0000 (19:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182201 91177308-0d34-0410-b5e6-96231b3b80d8

test/ExecutionEngine/MCJIT/lit.local.cfg
test/ExecutionEngine/MCJIT/remote/lit.local.cfg [new file with mode: 0644]
test/ExecutionEngine/MCJIT/remote/simpletest-remote.ll [moved from test/ExecutionEngine/MCJIT/simpletest-remote.ll with 99% similarity]
test/ExecutionEngine/MCJIT/remote/stubs-remote.ll [moved from test/ExecutionEngine/MCJIT/stubs-remote.ll with 100% similarity]
test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll [moved from test/ExecutionEngine/MCJIT/test-common-symbols-remote.ll with 99% similarity]
test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll [moved from test/ExecutionEngine/MCJIT/test-data-align-remote.ll with 100% similarity]
test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll [moved from test/ExecutionEngine/MCJIT/test-fp-no-external-funcs-remote.ll with 99% similarity]
test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll [moved from test/ExecutionEngine/MCJIT/test-global-init-nonzero-remote.ll with 100% similarity]
test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll [moved from test/ExecutionEngine/MCJIT/test-ptr-reloc-remote.ll with 99% similarity]

index 30ed4e8..9f0552a 100644 (file)
@@ -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 (file)
index 0000000..12fcda0
--- /dev/null
@@ -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
@@ -9,4 +9,3 @@ define i32 @main() {
        %r = call i32 @bar( )           ; <i32> [#uses=1]
        ret i32 %r
 }
-
@@ -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];
 ;     }
@@ -19,4 +19,3 @@ define i32 @main() {
        call double @test( double* %X, double 2.000000e+00 )            ; <double>:1 [#uses=0]
        ret i32 0
 }
-