diff --git a/SingleSource/Regression/C/CMakeLists.txt b/SingleSource/Regression/C/CMakeLists.txt --- a/SingleSource/Regression/C/CMakeLists.txt +++ b/SingleSource/Regression/C/CMakeLists.txt @@ -1,6 +1,7 @@ if(ARCH MATCHES "x86" OR ARCH MATCHES "riscv" OR ARCH MATCHES "SystemZ" OR ARCH MATCHES "Mips" OR - ARCH MATCHES "AArch64" OR ARCH MATCHES "ARM") + ARCH MATCHES "AArch64" OR ARCH MATCHES "ARM" OR + ARCH MATCHES "LoongArch") add_subdirectory(gcc-c-torture) endif() diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/CMakeLists.txt b/SingleSource/Regression/C/gcc-c-torture/execute/CMakeLists.txt --- a/SingleSource/Regression/C/gcc-c-torture/execute/CMakeLists.txt +++ b/SingleSource/Regression/C/gcc-c-torture/execute/CMakeLists.txt @@ -245,6 +245,19 @@ list(APPEND TestsToSkip ${MipsTestsToSkip}) endif() +# LoongArch Test Blacklist +if(ARCH MATCHES "LoongArch") + file(GLOB LoongArchTestsToSkip CONFIGURE_DEPENDS + # No backend support for __builtin_longjmp/__builtin_setjmp + built-in-setjmp.c + pr84521.c + # Triggers "return address can be determined only for current frame" + 20030323-1.c + ) + + list(APPEND TestsToSkip ${LoongArchTestsToSkip}) +endif() + # RISC-V Test Blacklist if(ARCH MATCHES "riscv") file(GLOB RISCVTestsToSkip CONFIGURE_DEPENDS