[SystemZ]  Enable GCC C Torture Suite

Review: Ulrich Weigand
diff --git a/SingleSource/Regression/C/CMakeLists.txt b/SingleSource/Regression/C/CMakeLists.txt
index 2aaecdd..8941067 100644
--- a/SingleSource/Regression/C/CMakeLists.txt
+++ b/SingleSource/Regression/C/CMakeLists.txt
@@ -1,4 +1,4 @@
-if(ARCH MATCHES "x86" OR ARCH MATCHES "riscv")
+if(ARCH MATCHES "x86" OR ARCH MATCHES "riscv"  OR ARCH MATCHES "SystemZ")
   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
index 6cc689e..ab88e01 100644
--- a/SingleSource/Regression/C/gcc-c-torture/execute/CMakeLists.txt
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/CMakeLists.txt
@@ -240,6 +240,20 @@
   list(APPEND TestsToSkip ${RISCVTestsToSkip})
 endif()
 
+# SystemZ Test Blacklist
+if(ARCH MATCHES "SystemZ")
+  file(GLOB SystemZTestsToSkip CONFIGURE_DEPENDS
+    # error: __builtin_longjmp is not supported for the current target
+    # error: __builtin_setjmp is not supported for the current target
+    built-in-setjmp.c
+    pr84521.c
+    # Triggers "Unsupported stack frame traversal count"
+    20030323-1.c
+  )
+
+  list(APPEND TestsToSkip ${SystemZTestsToSkip})
+endif()
+
 ##
 ## Test target setup
 ##