Skip to content

Commit c9ab1d8

Browse files
authored
Mark test cases as unsupported on z/OS (llvm#90990)
These test cases are testing features not available when either targeting the s390x-ibm-zos target or use tools/features not available on the z/OS operating system. In a couple cases the lit test had a number of subtests with one or two that aren't supported on z/OS. Rather than mark the entire test as unsupported I split out the unsupported tests into a separate test case.
1 parent 2a4f1f4 commit c9ab1d8

22 files changed

+41
-15
lines changed

clang/test/AST/Interp/cxx23.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// UNSUPPORTED: target={{.*}}-zos{{.*}}
12
// RUN: %clang_cc1 -std=c++20 -fsyntax-only -fcxx-exceptions -verify=ref20,all,all20 %s
23
// RUN: %clang_cc1 -std=c++23 -fsyntax-only -fcxx-exceptions -verify=ref23,all %s
34
// RUN: %clang_cc1 -std=c++20 -fsyntax-only -fcxx-exceptions -verify=expected20,all,all20 %s -fexperimental-new-constant-interpreter

clang/test/CodeGen/ffp-contract-option.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: x86-registered-target
2+
// UNSUPPORTED: target={{.*}}-zos{{.*}}
23
// RUN: %clang_cc1 -triple=x86_64 %s -emit-llvm -o - \
34
// RUN:| FileCheck --check-prefixes CHECK,CHECK-DEFAULT %s
45

clang/test/CodeGen/ffp-model.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: x86-registered-target
2+
// UNSUPPORTED: target={{.*}}-zos{{.*}}
23
// RUN: %clang -S -emit-llvm -fenable-matrix -ffp-model=fast %s -o - \
34
// RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-FAST
45

clang/test/CodeGen/fp-matrix-pragma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang -emit-llvm -S -fenable-matrix -mllvm -disable-llvm-optzns %s -o - | FileCheck %s
2+
// UNSUPPORTED: target={{.*}}-zos{{.*}}
23

34
typedef float fx2x2_t __attribute__((matrix_type(2, 2)));
45
typedef int ix2x2_t __attribute__((matrix_type(2, 2)));

clang/test/Driver/clang-offload-bundler-asserts-on.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: x86-registered-target
22
// REQUIRES: asserts
3-
// UNSUPPORTED: target={{.*}}-macosx{{.*}}, target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}
3+
// UNSUPPORTED: target={{.*}}-macosx{{.*}}, target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}
44

55
// Generate the file we can bundle.
66
// RUN: %clang -O0 -target %itanium_abi_triple %s -c -o %t.o

clang/test/Driver/clang-offload-bundler-standardize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: x86-registered-target
22
// REQUIRES: asserts
3-
// UNSUPPORTED: target={{.*}}-macosx{{.*}}, target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}
3+
// UNSUPPORTED: target={{.*}}-macosx{{.*}}, target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}
44
// REQUIRES: asserts
55

66
// Generate the file we can bundle.

clang/test/Driver/clang-offload-bundler-zlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: zlib && !zstd
22
// REQUIRES: x86-registered-target
3-
// UNSUPPORTED: target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}
3+
// UNSUPPORTED: target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}
44

55
//
66
// Generate the host binary to be bundled.

clang/test/Driver/clang-offload-bundler-zstd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: zstd
22
// REQUIRES: x86-registered-target
3-
// UNSUPPORTED: target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}
3+
// UNSUPPORTED: target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}
44

55
//
66
// Generate the host binary to be bundled.

clang/test/Driver/clang-offload-bundler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: x86-registered-target
2-
// UNSUPPORTED: target={{.*}}-macosx{{.*}}, target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}
2+
// UNSUPPORTED: target={{.*}}-macosx{{.*}}, target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}
33

44
//
55
// Generate all the types of files we can bundle.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// UNSUPPORTED: target={{.*-zos.*}}
2+
// RUN: %clang -w -std=c99 -trigraphs -std=gnu99 %s -E -o - | FileCheck -check-prefix=OVERRIDE %s
3+
// OVERRIDE: ??(??)
4+
// RUN: %clang -w -std=c99 -ftrigraphs -std=gnu99 %s -E -o - | FileCheck -check-prefix=FOVERRIDE %s
5+
// FOVERRIDE: ??(??)
6+
7+
??(??)

0 commit comments

Comments
 (0)