From f2d52c0531694260dabc117472d5141401726027 Mon Sep 17 00:00:00 2001 From: wanglei Date: Thu, 2 Feb 2023 10:34:27 +0800 Subject: [PATCH] [ExecutionEngine] Enable ExecutionEngine regression tests on LoongArch 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 | 3 +++ llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg | 4 +++- llvm/test/ExecutionEngine/frem.ll | 3 +++ llvm/test/ExecutionEngine/lit.local.cfg | 2 +- llvm/test/ExecutionEngine/mov64zext32.ll | 3 +++ llvm/test/ExecutionEngine/test-interp-vec-arithm_float.ll | 3 +++ llvm/test/ExecutionEngine/test-interp-vec-arithm_int.ll | 3 +++ llvm/test/ExecutionEngine/test-interp-vec-logical.ll | 3 +++ llvm/test/ExecutionEngine/test-interp-vec-setcond-fp.ll | 3 +++ llvm/test/ExecutionEngine/test-interp-vec-setcond-int.ll | 3 +++ 10 files changed, 28 insertions(+), 2 deletions(-) diff --git a/llvm/test/ExecutionEngine/OrcLazy/emulated-tls.ll b/llvm/test/ExecutionEngine/OrcLazy/emulated-tls.ll index 4b603cd..51a5905 100644 --- a/llvm/test/ExecutionEngine/OrcLazy/emulated-tls.ll +++ b/llvm/test/ExecutionEngine/OrcLazy/emulated-tls.ll @@ -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 ; diff --git a/llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg b/llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg index 4161b4f..3a3d23f 100644 --- a/llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg +++ b/llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg @@ -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. diff --git a/llvm/test/ExecutionEngine/frem.ll b/llvm/test/ExecutionEngine/frem.ll index b8739c2..d33e4fc 100644 --- a/llvm/test/ExecutionEngine/frem.ll +++ b/llvm/test/ExecutionEngine/frem.ll @@ -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. diff --git a/llvm/test/ExecutionEngine/lit.local.cfg b/llvm/test/ExecutionEngine/lit.local.cfg index e71e7cf..b00ef0d 100644 --- a/llvm/test/ExecutionEngine/lit.local.cfg +++ b/llvm/test/ExecutionEngine/lit.local.cfg @@ -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. diff --git a/llvm/test/ExecutionEngine/mov64zext32.ll b/llvm/test/ExecutionEngine/mov64zext32.ll index bba1a19..43bd0fb 100644 --- a/llvm/test/ExecutionEngine/mov64zext32.ll +++ b/llvm/test/ExecutionEngine/mov64zext32.ll @@ -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 diff --git a/llvm/test/ExecutionEngine/test-interp-vec-arithm_float.ll b/llvm/test/ExecutionEngine/test-interp-vec-arithm_float.ll index 6f78426..99d9579 100644 --- a/llvm/test/ExecutionEngine/test-interp-vec-arithm_float.ll +++ b/llvm/test/ExecutionEngine/test-interp-vec-arithm_float.ll @@ -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 diff --git a/llvm/test/ExecutionEngine/test-interp-vec-arithm_int.ll b/llvm/test/ExecutionEngine/test-interp-vec-arithm_int.ll index 6896af8..2e5592d 100644 --- a/llvm/test/ExecutionEngine/test-interp-vec-arithm_int.ll +++ b/llvm/test/ExecutionEngine/test-interp-vec-arithm_int.ll @@ -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 diff --git a/llvm/test/ExecutionEngine/test-interp-vec-logical.ll b/llvm/test/ExecutionEngine/test-interp-vec-logical.ll index f654120..1e11659 100644 --- a/llvm/test/ExecutionEngine/test-interp-vec-logical.ll +++ b/llvm/test/ExecutionEngine/test-interp-vec-logical.ll @@ -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 diff --git a/llvm/test/ExecutionEngine/test-interp-vec-setcond-fp.ll b/llvm/test/ExecutionEngine/test-interp-vec-setcond-fp.ll index 84bdec1..e919550d 100644 --- a/llvm/test/ExecutionEngine/test-interp-vec-setcond-fp.ll +++ b/llvm/test/ExecutionEngine/test-interp-vec-setcond-fp.ll @@ -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 diff --git a/llvm/test/ExecutionEngine/test-interp-vec-setcond-int.ll b/llvm/test/ExecutionEngine/test-interp-vec-setcond-int.ll index 5a20fc4..9862d6a 100644 --- a/llvm/test/ExecutionEngine/test-interp-vec-setcond-int.ll +++ b/llvm/test/ExecutionEngine/test-interp-vec-setcond-int.ll @@ -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 -- 2.7.4