diff --git a/clang/test/Driver/XRay/xray-ignore-loops-flags.cpp b/clang/test/Driver/XRay/xray-ignore-loops-flags.cpp --- a/clang/test/Driver/XRay/xray-ignore-loops-flags.cpp +++ b/clang/test/Driver/XRay/xray-ignore-loops-flags.cpp @@ -6,4 +6,4 @@ // RUN: -x c++ -emit-llvm -c -o - %s 2>&1 | FileCheck %s // CHECK: -fxray-ignore-loops // -// REQUIRES: x86_64 || x86_64h +// REQUIRES: target={{(x86_64|x86_64h)-.*}} diff --git a/clang/test/Driver/XRay/xray-instrumentation-bundles-flags.cpp b/clang/test/Driver/XRay/xray-instrumentation-bundles-flags.cpp --- a/clang/test/Driver/XRay/xray-instrumentation-bundles-flags.cpp +++ b/clang/test/Driver/XRay/xray-instrumentation-bundles-flags.cpp @@ -6,5 +6,5 @@ // RUN: -c -o - %s 2>&1 | FileCheck %s // CHECK: -fxray-instrumentation-bundle=function // -// REQUIRES: linux || freebsd -// REQUIRES: amd64 || x86_64 || x86_64h || arm || aarch64 || arm64 +// REQUIRES: target={{.*-(linux|freebsd).*}} +// REQUIRES: target={{(amd64|x86_64|x86_64h|arm|aarch64|arm64)-.*}} diff --git a/clang/test/Driver/XRay/xray-mode-flags.cpp b/clang/test/Driver/XRay/xray-mode-flags.cpp --- a/clang/test/Driver/XRay/xray-mode-flags.cpp +++ b/clang/test/Driver/XRay/xray-mode-flags.cpp @@ -45,5 +45,5 @@ // FDR: libclang_rt.xray-fdr // NONE-NOT: libclang_rt.xray-basic // NONE-NOT: libclang_rt.xray-fdr -// REQUIRES: linux || freebsd -// REQUIRES: amd64 || x86_64 || x86_64h || arm || aarch64 || arm64 +// REQUIRES: target={{.*-(linux|freebsd).*}} +// REQUIRES: target={{(amd64|x86_64|x86_64h|arm|aarch64|arm64)-.*}} diff --git a/clang/test/Driver/XRay/xray-shared-noxray.cpp b/clang/test/Driver/XRay/xray-shared-noxray.cpp --- a/clang/test/Driver/XRay/xray-shared-noxray.cpp +++ b/clang/test/Driver/XRay/xray-shared-noxray.cpp @@ -8,7 +8,8 @@ // SHARED-NOT: {{clang_rt\.xray-}} // STATIC: {{clang_rt\.xray-}} // -// REQUIRES: linux, enable_shared +// REQUIRES: target={{.*-linux.*}} +// REQUIRES: enable_shared int foo() { return 42; } #ifdef MAIN