[BOLT] Add bolt-runtime requirement to tests

These tests rely on the	X86 runtime, add the REQUIRES.

Differential Revision: https://reviews.llvm.org/D148737
This commit is contained in:
Nathan Sidwell 2023-04-19 15:53:17 -04:00
parent b5f0a87686
commit 0044647fdc
7 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# Try to instrument a very fast test. Input bin will not execute any code during
# runtime besides returning zero in main, so it is a good trivial case.
REQUIRES: system-linux
REQUIRES: system-linux,bolt-runtime
RUN: %clang %p/Inputs/basic-instrumentation.s -Wl,-q -o %t.exe
RUN: llvm-bolt %t.exe -o %t --instrument \

View File

@ -1,6 +1,6 @@
# Check instrumentation of C++ code with exceptions
REQUIRES: system-linux
REQUIRES: system-linux,bolt-runtime
RUN: %clangxx %cxxflags -no-pie %p/Inputs/exceptions_split.cpp -Wl,-q -g -o %t_exc_split
RUN: llvm-bolt %t_exc_split -o %t.exc --instrument --instrumentation-file=%t.fdata

View File

@ -36,7 +36,7 @@ int main(int argc, char **argv) {
}
/*
REQUIRES: system-linux && lit-max-individual-test-time
REQUIRES: system-linux,bolt-runtime,lit-max-individual-test-time
RUN: %clang %cflags %s -o %t.exe -Wl,-q -pie -fpie

View File

@ -1,4 +1,4 @@
REQUIRES: system-linux
REQUIRES: system-linux,bolt-runtime
RUN: %clangxx %cxxflags -pie -fPIC %p/Inputs/pie-exceptions-failed-split.s \
RUN: -Wl,-q -o %t

View File

@ -1,7 +1,7 @@
## Check that BOLT successfully splits C++ exception-handling code for
## PIEs or shared objects.
REQUIRES: system-linux
REQUIRES: system-linux,bolt-runtime
RUN: %clangxx %cxxflags -pie -fPIC %p/Inputs/exceptions_split.cpp -Wl,-q -o %t
RUN: llvm-bolt %t -o %t.instr --instrument --instrumentation-file=%t.fdata

View File

@ -1,4 +1,4 @@
REQUIRES: system-linux
REQUIRES: system-linux,bolt-runtime
RUN: %clang %p/Inputs/basic-instrumentation.s -Wl,-q -o %t.exe
RUN: llvm-bolt %t.exe -o %t --instrument

View File

@ -1,7 +1,7 @@
# Meta test using merge-fdata binary
UNSUPPORTED: asan
# Instrumentation currently only works on X86
REQUIRES: x86_64-linux
REQUIRES: x86_64-linux,bolt-runtime
# Instrumentation, should test:
# - Direct branches