Skip to content

Commit c9ab1d8

Browse files
authored
Mark test cases as unsupported on z/OS (#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+
??(??)

clang/test/Driver/std.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// RUN: %clang -w -std=c99 -trigraphs -std=gnu99 %s -E -o - | FileCheck -check-prefix=OVERRIDE %s
2-
// OVERRIDE: ??(??)
3-
// RUN: %clang -w -std=c99 -ftrigraphs -std=gnu99 %s -E -o - | FileCheck -check-prefix=FOVERRIDE %s
4-
// FOVERRIDE: ??(??)
51
// RUN: %clang -w -ansi %s -E -o - | FileCheck -check-prefix=ANSI %s
62
// ANSI: []
73
// RUN: %clang -w -ansi %s -fno-trigraphs -E -o - | FileCheck -check-prefix=ANSI-OVERRIDE %s

clang/test/FixIt/fixit-c++2a-tls.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// RUN: %clang_cc1 -verify -std=c++2a -pedantic-errors %s
2+
// RUN: cp %s %t
3+
// RUN: %clang_cc1 -x c++ -std=c++2a -fixit %t
4+
// RUN: %clang_cc1 -Wall -pedantic-errors -x c++ -std=c++2a %t
5+
// RUN: cat %t | FileCheck %s
6+
// UNSUPPORTED: target={{.*-zos.*}}
7+
8+
/* This is a test of the various code modification hints that only
9+
apply in C++2a. */
10+
11+
namespace constinit_mismatch {
12+
extern thread_local constinit int a; // expected-note {{declared constinit here}}
13+
thread_local int a = 123; // expected-error {{'constinit' specifier missing on initializing declaration of 'a'}}
14+
// CHECK: {{^}} constinit thread_local int a = 123;
15+
}
16+

clang/test/FixIt/fixit-c++2a.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ template<typename ...T> void init_capture_pack(T ...a) {
1616
}
1717

1818
namespace constinit_mismatch {
19-
extern thread_local constinit int a; // expected-note {{declared constinit here}}
20-
thread_local int a = 123; // expected-error {{'constinit' specifier missing on initializing declaration of 'a'}}
21-
// CHECK: {{^}} constinit thread_local int a = 123;
22-
2319
int b = 123; // expected-note {{add the 'constinit' specifier}}
2420
extern constinit int b; // expected-error {{'constinit' specifier added after initialization of variable}}
2521
// CHECK: {{^}} extern int b;

clang/test/Interpreter/const.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// UNSUPPORTED: system-aix
1+
// UNSUPPORTED: system-aix, system-zos
22
// see https://github.com/llvm/llvm-project/issues/68092
33
// XFAIL: host={{.*}}-windows-msvc
44

clang/test/Lexer/unicode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// RUN: %clang_cc1 -fsyntax-only -verify=expected,cxx -x c++ -std=c++11 %s
44
// RUN: %clang_cc1 -std=c99 -E -DPP_ONLY=1 %s | FileCheck %s --strict-whitespace
55
// RUN: %clang_cc1 -E -DPP_ONLY=1 %s | FileCheck %s --strict-whitespace
6+
// UNSUPPORTED: system-zos
67

78
// This file contains Unicode characters; please do not "fix" them!
89

clang/test/Modules/cstd.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: rm -rf %t
22
// RUN: %clang_cc1 -fsyntax-only -internal-isystem %S/Inputs/System/usr/include -fmodules -fimplicit-module-maps -fbuiltin-headers-in-system-modules -fmodules-cache-path=%t -D__need_wint_t -Werror=implicit-function-declaration %s
3+
// UNSUPPORTED: target={{.*}}-zos{{.*}}
34

45
@import uses_other_constants;
56
const double other_value = DBL_MAX;

clang/test/Modules/merge-objc-protocol-visibility.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// UNSUPPORTED: target={{.*}}-aix{{.*}}
1+
// UNSUPPORTED: target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}
22
// RUN: rm -rf %t
33
// RUN: split-file %s %t
44
// RUN: %clang_cc1 -emit-llvm -o %t/test.bc -F%t/Frameworks %t/test.m -Werror=objc-method-access -DHIDDEN_FIRST=1 \

clang/test/PCH/chain-openmp-threadprivate.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// with PCH
99
// RUN: %clang_cc1 -fopenmp -emit-llvm -chain-include %s -chain-include %s %s -o - | FileCheck %s -check-prefix=CHECK-TLS-1
1010
// RUN: %clang_cc1 -fopenmp -emit-llvm -chain-include %s -chain-include %s %s -o - | FileCheck %s -check-prefix=CHECK-TLS-2
11+
// // UNSUPPORTED: target={{.*}}-zos{{.*}}
1112

1213
#if !defined(PASS1)
1314
#define PASS1

clang/test/Sema/thread_local.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang_cc1 -fsyntax-only -std=c23 %s -verify
2+
// UNSUPPORTED: target={{.*}}-zos{{.*}}
23

34
// Ensure that thread_local and _Thread_local are synonyms in C23 and both
45
// restrict local variables to be explicitly static or extern.

llvm/test/MC/AsmParser/layout-interdependency.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# RUN: not llvm-mc --filetype=obj %s -o /dev/null 2>&1 | FileCheck %s
22
# REQUIRES: object-emission
3+
# UNSUPPORTED: target={{.*}}-zos{{.*}}
34

45
fct_end:
56

llvm/test/Object/archive-big-extract.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## Test extract xcoff object file from AIX big archive.
2+
# UNSUPPORTED: target={{.*}}-zos{{.*}}
23
# RUN: rm -rf %t && mkdir -p %t/extracted/ && cd %t/extracted/
34
# RUN: llvm-ar x %p/Inputs/aix-big-archive.a
45
# RUN: echo "content_of_evenlen" > evenlen_1

llvm/test/Object/archive-extract.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
; This test just makes sure that llvm-ar can extract bytecode members
22
; from various style archives.
33

4+
; UNSUPPORTED: target={{.*}}-zos{{.*}}
45
; RUN: rm -rf %t && mkdir -p %t && cd %t
56

67
; RUN: rm -f very_long_bytecode_file_name.bc

0 commit comments

Comments
 (0)