[llvm] f2d52c0 - [ExecutionEngine] Enable ExecutionEngine regression tests on LoongArch

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 19:16:39 PST 2023


Author: wanglei
Date: 2023-02-02T11:16:18+08:00
New Revision: f2d52c0531694260dabc117472d5141401726027

URL: https://github.com/llvm/llvm-project/commit/f2d52c0531694260dabc117472d5141401726027
DIFF: https://github.com/llvm/llvm-project/commit/f2d52c0531694260dabc117472d5141401726027.diff

LOG: [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

Added: 
    

Modified: 
    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

Removed: 
    


################################################################################
diff  --git a/llvm/test/ExecutionEngine/OrcLazy/emulated-tls.ll b/llvm/test/ExecutionEngine/OrcLazy/emulated-tls.ll
index 4b603cd29988b..51a5905feefa9 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 4161b4f3ce4b6..3a3d23f2bb335 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 b8739c249cf58..d33e4fca876e1 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 e71e7cf3cb88b..b00ef0dcbdf03 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 bba1a1987350a..43bd0fb2f7b43 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 6f784265a73e1..99d95791c5ad2 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 6896af83c44fb..2e5592d4d363c 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 f654120eaf8e0..1e11659b1898a 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 84bdec1cf5597..e919550de2689 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 5a20fc4f11721..9862d6af1f6eb 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
 


        


More information about the llvm-commits mailing list