[ExecutionEngine] Enable ExecutionEngine regression tests on LoongArch
authorwanglei <wanglei@loongson.cn>
Thu, 2 Feb 2023 02:34:27 +0000 (10:34 +0800)
committerwanglei <wanglei@loongson.cn>
Thu, 2 Feb 2023 03:16:18 +0000 (11:16 +0800)
This patch also sets `UNSUPPORTED` on some tests which need `mcjit` and
`emulated tls` support.

Depends on D142950

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D142954

llvm/test/ExecutionEngine/OrcLazy/emulated-tls.ll
llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg
llvm/test/ExecutionEngine/frem.ll
llvm/test/ExecutionEngine/lit.local.cfg
llvm/test/ExecutionEngine/mov64zext32.ll
llvm/test/ExecutionEngine/test-interp-vec-arithm_float.ll
llvm/test/ExecutionEngine/test-interp-vec-arithm_int.ll
llvm/test/ExecutionEngine/test-interp-vec-logical.ll
llvm/test/ExecutionEngine/test-interp-vec-setcond-fp.ll
llvm/test/ExecutionEngine/test-interp-vec-setcond-int.ll

index 4b603cd..51a5905 100644 (file)
@@ -1,3 +1,6 @@
+; LoongArch does not support emulated tls.
+; UNSUPPORTED: target=loongarch{{.*}}
+
 ; RUN: not lli -no-process-syms -emulated-tls -jit-kind=orc-lazy %s 2>&1 \
 ; RUN:   | FileCheck %s
 ;
index 4161b4f..3a3d23f 100644 (file)
@@ -1,6 +1,8 @@
 import sys
 
-if config.root.host_arch not in ['i386', 'x86', 'x86_64', 'AMD64', 'mips', 'mipsel', 'mips64', 'mips64el']:
+if config.root.host_arch not in ['i386', 'x86', 'x86_64', 'AMD64',
+                                 'mips', 'mipsel', 'mips64', 'mips64el',
+                                 'loongarch64']:
     config.unsupported = True
 
 # FIXME: These tests don't pass with the COFF rtld.
index b8739c2..d33e4fc 100644 (file)
@@ -1,3 +1,6 @@
+; LoongArch does not support mcjit.
+; UNSUPPORTED: target=loongarch{{.*}}
+
 ; LLI.exe used to crash on Windows\X86 when certain single precession
 ; floating point intrinsics (defined as macros) are used.
 ; This unit test guards against the failure.
index e71e7cf..b00ef0d 100644 (file)
@@ -1,4 +1,4 @@
-if config.root.native_target in ['Sparc', 'PowerPC', 'SystemZ', 'Hexagon', 'RISCV', 'LoongArch']:
+if config.root.native_target in ['Sparc', 'PowerPC', 'SystemZ', 'Hexagon', 'RISCV']:
     config.unsupported = True
 
 # ExecutionEngine tests are not expected to pass in a cross-compilation setup.
index bba1a19..43bd0fb 100644 (file)
@@ -1,3 +1,6 @@
+; LoongArch does not support mcjit.
+; UNSUPPORTED: target=loongarch{{.*}}
+
 ; RUN: %lli -jit-kind=mcjit %s > /dev/null
 ; RUN: %lli %s > /dev/null
 
index 6f78426..99d9579 100644 (file)
@@ -1,3 +1,6 @@
+; LoongArch does not support mcjit.
+; UNSUPPORTED: target=loongarch{{.*}}
+
 ; RUN: %lli -jit-kind=mcjit %s > /dev/null
 ; RUN: %lli %s > /dev/null
 
index 6896af8..2e5592d 100644 (file)
@@ -1,3 +1,6 @@
+; LoongArch does not support mcjit.
+; UNSUPPORTED: target=loongarch{{.*}}
+
 ; RUN: %lli -jit-kind=mcjit %s > /dev/null
 ; RUN: %lli %s > /dev/null
 
index f654120..1e11659 100644 (file)
@@ -1,3 +1,6 @@
+; LoongArch does not support mcjit.
+; UNSUPPORTED: target=loongarch{{.*}}
+
 ; RUN: %lli -jit-kind=mcjit %s > /dev/null
 ; RUN: %lli %s > /dev/null
 
index 84bdec1..e919550 100644 (file)
@@ -1,3 +1,6 @@
+; LoongArch does not support mcjit.
+; UNSUPPORTED: target=loongarch{{.*}}
+
 ; RUN: %lli -jit-kind=mcjit %s > /dev/null
 ; RUN: %lli %s > /dev/null
 
index 5a20fc4..9862d6a 100644 (file)
@@ -1,3 +1,6 @@
+; LoongArch does not support mcjit.
+; UNSUPPORTED: target=loongarch{{.*}}
+
 ; RUN: %lli -jit-kind=mcjit %s > /dev/null
 ; RUN: %lli %s > /dev/null