diff --git a/clang/test/Driver/XRay/lit.local.cfg b/clang/test/Driver/XRay/lit.local.cfg --- a/clang/test/Driver/XRay/lit.local.cfg +++ b/clang/test/Driver/XRay/lit.local.cfg @@ -13,6 +13,7 @@ "mipsel", "mips64", "mips64el", + "loongarch64", ] # Only on platforms we support. 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: target={{(x86_64|x86_64h)-.*}} +// REQUIRES: target={{(x86_64|x86_64h|loongarch64)-.*}} 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 @@ -7,4 +7,4 @@ // CHECK: -fxray-instrumentation-bundle=function // // REQUIRES: target={{.*-(linux|freebsd).*}} -// REQUIRES: target={{(amd64|x86_64|x86_64h|arm|aarch64|arm64)-.*}} +// REQUIRES: target={{(amd64|x86_64|x86_64h|arm|aarch64|arm64|loongarch64)-.*}} 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 @@ -46,4 +46,4 @@ // NONE-NOT: libclang_rt.xray-basic // NONE-NOT: libclang_rt.xray-fdr // REQUIRES: target={{.*-(linux|freebsd).*}} -// REQUIRES: target={{(amd64|x86_64|x86_64h|arm|aarch64|arm64)-.*}} +// REQUIRES: target={{(amd64|x86_64|x86_64h|arm|aarch64|arm64|loongarch64)-.*}}