From 5950a0623753a629814346ebadabbcda0ca2bdee Mon Sep 17 00:00:00 2001 From: Youngsuk Kim Date: Tue, 11 Apr 2023 01:41:48 +0000 Subject: [PATCH] [MCJIT] Run ExecutionEngine/MCJIT/remote tests only if threads enabled. When LLVM_ENABLE_THREADS=Off, disables tests under llvm/test/ExecutionEngine/MCJIT/remote/ that require threads. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D147803 --- llvm/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll | 1 + llvm/test/ExecutionEngine/MCJIT/remote/eh.ll | 1 + llvm/test/ExecutionEngine/MCJIT/remote/multi-module-a.ll | 1 + llvm/test/ExecutionEngine/MCJIT/remote/simpletest-remote.ll | 1 + llvm/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll | 1 + llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll | 1 + llvm/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll | 1 + .../ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll | 1 + .../test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll | 1 + .../test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-sm-pic.ll | 1 + llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll | 1 + llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll | 1 + 12 files changed, 12 insertions(+) diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll b/llvm/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll index b14f6a3..646881e 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/cross-module-a.ll @@ -1,5 +1,6 @@ ; RUN: %lli -jit-kind=mcjit -extra-module=%p/Inputs/cross-module-b.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null ; XFAIL: target={{.*-windows-(gnu|msvc)}} +; REQUIRES: thread_support ; UNSUPPORTED: target=powerpc64-unknown-linux-gnu ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/eh.ll b/llvm/test/ExecutionEngine/MCJIT/remote/eh.ll index 9f35422..b094ec2 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/eh.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/eh.ll @@ -1,6 +1,7 @@ ; REQUIRES: cxx-shared-library ; RUN: %lli -jit-kind=mcjit -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s ; XFAIL: target=arm{{.*}}, target={{.*-(cygwin|windows-msvc|windows-gnu)}} +; REQUIRES: thread_support ; UNSUPPORTED: target=powerpc64-unknown-linux-gnu ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed ; FIXME: Something hangs here. diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/multi-module-a.ll b/llvm/test/ExecutionEngine/MCJIT/remote/multi-module-a.ll index 1953895..4d44a52 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/multi-module-a.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/multi-module-a.ll @@ -1,4 +1,5 @@ ; RUN: %lli -jit-kind=mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null +; REQUIRES: thread_support ; XFAIL: target={{.*-windows-(gnu|msvc)}} ; UNSUPPORTED: target=powerpc64-unknown-linux-gnu ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/simpletest-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/simpletest-remote.ll index 8ebe494..4042b31 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/simpletest-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/simpletest-remote.ll @@ -1,5 +1,6 @@ ; RUN: %lli -jit-kind=mcjit -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null ; XFAIL: target={{.*-windows-(gnu|msvc)}} +; REQUIRES: thread_support ; UNSUPPORTED: target=powerpc64-unknown-linux-gnu ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll index d35448a..43e61f1 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/stubs-remote.ll @@ -1,5 +1,6 @@ ; RUN: %lli -jit-kind=mcjit -remote-mcjit -disable-lazy-compilation=false -mcjit-remote-process=lli-child-target%exeext %s ; XFAIL: target={{.*-windows-(gnu|msvc)}} +; REQUIRES: thread_support ; UNSUPPORTED: target=powerpc64-unknown-linux-gnu ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll index fa0cb46..d9a8d85 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-common-symbols-remote.ll @@ -1,5 +1,6 @@ ; RUN: %lli -jit-kind=mcjit -remote-mcjit -O0 -disable-lazy-compilation=false -mcjit-remote-process=lli-child-target%exeext %s ; XFAIL: target={{.*-windows-(gnu|msvc)}} +; REQUIRES: thread_support ; UNSUPPORTED: target=powerpc64-unknown-linux-gnu ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll index 6b17590a..0cd513c 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll @@ -1,5 +1,6 @@ ; RUN: %lli -jit-kind=mcjit -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s ; XFAIL: target={{.*-windows-(gnu|msvc)}} +; REQUIRES: thread_support ; UNSUPPORTED: target=powerpc64-unknown-linux-gnu ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll index d70154e..73e66d3e 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-fp-no-external-funcs-remote.ll @@ -1,5 +1,6 @@ ; RUN: %lli -jit-kind=mcjit -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null ; XFAIL: target={{.*-windows-(gnu|msvc)}} +; REQUIRES: thread_support ; UNSUPPORTED: target=powerpc64-unknown-linux-gnu ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll index bf2c111..71617e0 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-remote.ll @@ -1,5 +1,6 @@ ; RUN: %lli -jit-kind=mcjit -remote-mcjit -mcjit-remote-process=lli-child-target%exeext %s > /dev/null ; XFAIL: target={{.*-windows-(gnu|msvc)}} +; REQUIRES: thread_support ; UNSUPPORTED: target=powerpc64-unknown-linux-gnu ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-sm-pic.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-sm-pic.ll index d661814..c2c79a9 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-sm-pic.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-global-init-nonzero-sm-pic.ll @@ -2,6 +2,7 @@ ; RUN: -relocation-model=pic -code-model=small %s > /dev/null ; XFAIL: target={{(mips|mipsel)-.*}}, target={{(aarch64|arm).*}}, target={{(i686|i386).*}} ; XFAIL: target={{.*-windows-(gnu|msvc)}} +; REQUIRES: thread_support ; UNSUPPORTED: target=target=powerpc64-unknown-linux-gnu ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll index 625e716..18e6b03 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-remote.ll @@ -1,5 +1,6 @@ ; RUN: %lli -jit-kind=mcjit -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s ; XFAIL: target={{.*-windows-(gnu|msvc)}} +; REQUIRES: thread_support ; UNSUPPORTED: target=powerpc64-unknown-linux-gnu ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll index 00239a0..db88cbb 100644 --- a/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll @@ -2,6 +2,7 @@ ; RUN: -O0 -relocation-model=pic -code-model=small %s ; XFAIL: target={{(mips|mipsel)-.*}}, target={{(aarch64|arm).*}}, target={{(i686|i386).*}} ; XFAIL: target={{.*-windows-(gnu|msvc)}} +; REQUIRES: thread_support ; UNSUPPORTED: target=powerpc64-unknown-linux-gnu ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed -- 2.7.4