From 7793e676514bc102e97a993e90257e8628069a8b Mon Sep 17 00:00:00 2001 From: Paul Robinson Date: Mon, 12 Dec 2022 11:24:02 -0800 Subject: [PATCH] [ZOS] Convert tests to check 'target={{.*}}-zos{{.*}}' Also add 'system-zos' as a lit feature and use it where needed. Part of the project to eliminate special handling for triples in lit expressions. Differential Revision: https://reviews.llvm.org/D139444 --- clang/test/Analysis/cfref_PR2519.c | 2 +- clang/test/CodeGen/cfstring2.c | 2 +- clang/test/Driver/as-version.s | 2 +- clang/test/Import/forward-declared-objc-class/test.m | 2 +- clang/test/Import/objc-arc/test-cleanup-object.m | 2 +- clang/test/Import/objc-autoreleasepool/test.m | 2 +- clang/test/Import/objc-definitions-in-expression/test.m | 2 +- clang/test/Import/objc-method/test.m | 2 +- clang/test/Import/objc-param-decl/test.m | 2 +- clang/test/Import/objc-try-catch/test.m | 2 +- clang/test/Modules/DebugInfoNamespace.cpp | 2 +- clang/test/Modules/DebugInfoTransitiveImport.m | 2 +- clang/test/Modules/ExtDebugInfo.cpp | 2 +- clang/test/Modules/ExtDebugInfo.m | 2 +- clang/test/Modules/ModuleDebugInfo.cpp | 2 +- clang/test/Modules/ModuleDebugInfo.m | 2 +- clang/test/Modules/ModuleDebugInfoDwoId.cpp | 2 +- clang/test/Modules/ModuleModuleDebugInfo.cpp | 2 +- clang/test/Modules/autolink.m | 2 +- clang/test/Modules/autolinkTBD.m | 2 +- clang/test/Modules/builtins.m | 2 +- clang/test/Modules/clang_module_file_info.m | 2 +- clang/test/Modules/cxx-irgen.cpp | 2 +- clang/test/Modules/debug-info-moduleimport-in-module.m | 2 +- clang/test/Modules/debug-info-moduleimport.m | 2 +- clang/test/Modules/direct-module-import.m | 2 +- clang/test/Modules/merge-anon-record-definition-in-objc.m | 2 +- clang/test/Modules/merge-extension-ivars.m | 2 +- clang/test/Modules/merge-objc-interface-visibility.m | 2 +- clang/test/Modules/merge-objc-interface.m | 2 +- clang/test/Modules/merge-record-definition-nonmodular.m | 2 +- clang/test/Modules/merge-record-definition-visibility.m | 2 +- clang/test/Modules/merge-record-definition.m | 2 +- clang/test/Modules/module-debuginfo-prefix.m | 2 +- clang/test/Modules/module-file-home-is-cwd.m | 2 +- clang/test/Modules/module_file_info.m | 2 +- clang/test/Modules/objc-initializer.m | 2 +- clang/test/Modules/pch-used.m | 2 +- clang/test/Modules/redecl-ivars.m | 2 +- clang/test/Modules/use-exportas-for-link.m | 2 +- clang/test/PCH/externally-retained.m | 2 +- clang/test/PCH/irgen-rdar13114142.mm | 2 +- clang/test/PCH/objc_container.m | 2 +- clang/test/PCH/objc_literals.m | 2 +- clang/test/PCH/objc_literals.mm | 2 +- clang/test/PCH/objcxx-ivar-class.mm | 2 +- clang/test/PCH/pending-ids.m | 2 +- llvm/test/MC/AsmParser/debug-no-source.s | 2 +- llvm/test/Support/encoding.ll | 4 ++-- llvm/test/tools/llvm-mc/no_warnings.test | 2 +- llvm/utils/lit/lit/llvm/config.py | 2 ++ 51 files changed, 53 insertions(+), 51 deletions(-) diff --git a/clang/test/Analysis/cfref_PR2519.c b/clang/test/Analysis/cfref_PR2519.c index e63ac10..e90a2f1 100644 --- a/clang/test/Analysis/cfref_PR2519.c +++ b/clang/test/Analysis/cfref_PR2519.c @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: %clang_analyze_cc1 -analyzer-checker=core,osx.cocoa.RetainCount,alpha.core -verify %s // expected-no-diagnostics diff --git a/clang/test/CodeGen/cfstring2.c b/clang/test/CodeGen/cfstring2.c index 74e3751..da61905 100644 --- a/clang/test/CodeGen/cfstring2.c +++ b/clang/test/CodeGen/cfstring2.c @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: %clang_cc1 -emit-llvm %s -o %t typedef const struct __CFString * CFStringRef; diff --git a/clang/test/Driver/as-version.s b/clang/test/Driver/as-version.s index 296f9e8..a96b2b5 100644 --- a/clang/test/Driver/as-version.s +++ b/clang/test/Driver/as-version.s @@ -1,6 +1,6 @@ // Test version information. -// UNSUPPORTED: -zos +// UNSUPPORTED: target={{.*}}-zos{{.*}} // RUN: %clang -Wa,--version -c -fintegrated-as %s -o /dev/null \ // RUN: | FileCheck --check-prefix=IAS %s // IAS: clang version diff --git a/clang/test/Import/forward-declared-objc-class/test.m b/clang/test/Import/forward-declared-objc-class/test.m index adf0c25..c94c677 100644 --- a/clang/test/Import/forward-declared-objc-class/test.m +++ b/clang/test/Import/forward-declared-objc-class/test.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: clang-import-test -x objective-c++ -import %S/Inputs/S1.m --import %S/Inputs/S2.m --import %S/Inputs/S3.m -expression %s void expr() { MyClass *c = [MyClass fromInteger:3]; diff --git a/clang/test/Import/objc-arc/test-cleanup-object.m b/clang/test/Import/objc-arc/test-cleanup-object.m index a5fe27b..2ee7775 100644 --- a/clang/test/Import/objc-arc/test-cleanup-object.m +++ b/clang/test/Import/objc-arc/test-cleanup-object.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: clang-import-test -x objective-c -objc-arc -import %S/Inputs/cleanup-objects.m -dump-ast -expression %s | FileCheck %s // CHECK: FunctionDecl {{.*}} getObj ' diff --git a/clang/test/Import/objc-autoreleasepool/test.m b/clang/test/Import/objc-autoreleasepool/test.m index a5173be..fd152a1 100644 --- a/clang/test/Import/objc-autoreleasepool/test.m +++ b/clang/test/Import/objc-autoreleasepool/test.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: clang-import-test -dump-ast -x objective-c++ -import %S/Inputs/F.m -expression %s | FileCheck %s // CHECK: ObjCAutoreleasePoolStmt diff --git a/clang/test/Import/objc-definitions-in-expression/test.m b/clang/test/Import/objc-definitions-in-expression/test.m index 8cc65ac..a1eab13 100644 --- a/clang/test/Import/objc-definitions-in-expression/test.m +++ b/clang/test/Import/objc-definitions-in-expression/test.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: clang-import-test -x objective-c++ -import %S/Inputs/S.m -expression %s @class D; diff --git a/clang/test/Import/objc-method/test.m b/clang/test/Import/objc-method/test.m index 33ac3e6..f820a655 100644 --- a/clang/test/Import/objc-method/test.m +++ b/clang/test/Import/objc-method/test.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: clang-import-test -x objective-c++ -import %S/Inputs/S.m -expression %s void expr() { C *c; diff --git a/clang/test/Import/objc-param-decl/test.m b/clang/test/Import/objc-param-decl/test.m index 3d4dfd1..dc98c31 100644 --- a/clang/test/Import/objc-param-decl/test.m +++ b/clang/test/Import/objc-param-decl/test.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: clang-import-test -dump-ast -x objective-c++ -import %S/Inputs/S.m -expression %s | FileCheck %s // CHECK: ObjCTypeParamDecl diff --git a/clang/test/Import/objc-try-catch/test.m b/clang/test/Import/objc-try-catch/test.m index e6aaf41..03485c0 100644 --- a/clang/test/Import/objc-try-catch/test.m +++ b/clang/test/Import/objc-try-catch/test.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: clang-import-test -x objective-c++ -Xcc -fobjc-exceptions -dump-ast -import %S/Inputs/F.m -expression %s | FileCheck %s // FIXME: Seems that Objective-C try/catch crash codegen on Windows. Reenable once this is fixed. diff --git a/clang/test/Modules/DebugInfoNamespace.cpp b/clang/test/Modules/DebugInfoNamespace.cpp index 1dbd977..b2095ad 100644 --- a/clang/test/Modules/DebugInfoNamespace.cpp +++ b/clang/test/Modules/DebugInfoNamespace.cpp @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: %clang_cc1 -x objective-c++ -std=c++11 -debug-info-kind=standalone \ // RUN: -dwarf-ext-refs -fmodules \ diff --git a/clang/test/Modules/DebugInfoTransitiveImport.m b/clang/test/Modules/DebugInfoTransitiveImport.m index f9671c1..4e4ba1e 100644 --- a/clang/test/Modules/DebugInfoTransitiveImport.m +++ b/clang/test/Modules/DebugInfoTransitiveImport.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: %clang_cc1 -fmodules -fmodule-format=obj -debug-info-kind=limited -dwarf-ext-refs \ // RUN: -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs \ diff --git a/clang/test/Modules/ExtDebugInfo.cpp b/clang/test/Modules/ExtDebugInfo.cpp index 568d094..7691653 100644 --- a/clang/test/Modules/ExtDebugInfo.cpp +++ b/clang/test/Modules/ExtDebugInfo.cpp @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // Test that only forward declarations are emitted for types defined in modules. diff --git a/clang/test/Modules/ExtDebugInfo.m b/clang/test/Modules/ExtDebugInfo.m index 3855dd9..b6a8b26 100644 --- a/clang/test/Modules/ExtDebugInfo.m +++ b/clang/test/Modules/ExtDebugInfo.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // Test that only forward declarations are emitted for types defined in modules. diff --git a/clang/test/Modules/ModuleDebugInfo.cpp b/clang/test/Modules/ModuleDebugInfo.cpp index e385a1f..8f7fa22 100644 --- a/clang/test/Modules/ModuleDebugInfo.cpp +++ b/clang/test/Modules/ModuleDebugInfo.cpp @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // Test that (the same) debug info is emitted for an Objective-C++ // module and a C++ precompiled header. diff --git a/clang/test/Modules/ModuleDebugInfo.m b/clang/test/Modules/ModuleDebugInfo.m index fb27a00..62c6fd6 100644 --- a/clang/test/Modules/ModuleDebugInfo.m +++ b/clang/test/Modules/ModuleDebugInfo.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // Test that debug info is emitted for an Objective-C module and // a precompiled header. diff --git a/clang/test/Modules/ModuleDebugInfoDwoId.cpp b/clang/test/Modules/ModuleDebugInfoDwoId.cpp index e26ed2c..9129364 100644 --- a/clang/test/Modules/ModuleDebugInfoDwoId.cpp +++ b/clang/test/Modules/ModuleDebugInfoDwoId.cpp @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // Tests that dwoIds in modules match the dwoIDs in the main file. // REQUIRES: asserts diff --git a/clang/test/Modules/ModuleModuleDebugInfo.cpp b/clang/test/Modules/ModuleModuleDebugInfo.cpp index b03427e..6144964 100644 --- a/clang/test/Modules/ModuleModuleDebugInfo.cpp +++ b/clang/test/Modules/ModuleModuleDebugInfo.cpp @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: %clang_cc1 -x objective-c++ -std=c++11 -debug-info-kind=standalone \ diff --git a/clang/test/Modules/autolink.m b/clang/test/Modules/autolink.m index f9701224..abc5207 100644 --- a/clang/test/Modules/autolink.m +++ b/clang/test/Modules/autolink.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: %clang_cc1 -emit-pch -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -o %t.pch -I %S/Inputs -x objective-c-header %S/Inputs/autolink-sub3.pch // RUN: %clang_cc1 -emit-llvm -o - -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs -I %S/Inputs -include-pch %t.pch %s | FileCheck %s diff --git a/clang/test/Modules/autolinkTBD.m b/clang/test/Modules/autolinkTBD.m index 5b9433c..69253294 100644 --- a/clang/test/Modules/autolinkTBD.m +++ b/clang/test/Modules/autolinkTBD.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: %clang_cc1 -emit-llvm -o - -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs %s | FileCheck %s // RUN: %clang_cc1 -emit-llvm -fno-autolink -o - -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs %s | FileCheck --check-prefix=CHECK-AUTOLINK-DISABLED %s diff --git a/clang/test/Modules/builtins.m b/clang/test/Modules/builtins.m index a84514a..bcd8ad3 100644 --- a/clang/test/Modules/builtins.m +++ b/clang/test/Modules/builtins.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs %s -verify // RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs -x c %s -verify diff --git a/clang/test/Modules/clang_module_file_info.m b/clang/test/Modules/clang_module_file_info.m index 44eecd0..d84bae1 100644 --- a/clang/test/Modules/clang_module_file_info.m +++ b/clang/test/Modules/clang_module_file_info.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} @import DependsOnModule; // RUN: rm -rf %t %t-obj diff --git a/clang/test/Modules/cxx-irgen.cpp b/clang/test/Modules/cxx-irgen.cpp index 221ae26..b87258a 100644 --- a/clang/test/Modules/cxx-irgen.cpp +++ b/clang/test/Modules/cxx-irgen.cpp @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c++ -std=c++11 -fmodules-cache-path=%t -I %S/Inputs -triple %itanium_abi_triple -disable-llvm-passes -emit-llvm -o - %s | FileCheck %s // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c++ -std=c++11 -fmodules-cache-path=%t -I %S/Inputs -triple %itanium_abi_triple -disable-llvm-passes -emit-llvm -debug-info-kind=limited -o - %s | FileCheck %s diff --git a/clang/test/Modules/debug-info-moduleimport-in-module.m b/clang/test/Modules/debug-info-moduleimport-in-module.m index afc1fb0..ee0445a 100644 --- a/clang/test/Modules/debug-info-moduleimport-in-module.m +++ b/clang/test/Modules/debug-info-moduleimport-in-module.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // Test that an @import inside a module is not represented in the debug info. // REQUIRES: asserts diff --git a/clang/test/Modules/debug-info-moduleimport.m b/clang/test/Modules/debug-info-moduleimport.m index e6c3aa1..acb7dbd 100644 --- a/clang/test/Modules/debug-info-moduleimport.m +++ b/clang/test/Modules/debug-info-moduleimport.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: %clang_cc1 -debug-info-kind=limited -fmodules \ // RUN: -DGREETING="Hello World" -UNDEBUG \ diff --git a/clang/test/Modules/direct-module-import.m b/clang/test/Modules/direct-module-import.m index 3c75a8c..6194048 100644 --- a/clang/test/Modules/direct-module-import.m +++ b/clang/test/Modules/direct-module-import.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs -include Module/Module.h %s -emit-llvm -o - | FileCheck %s diff --git a/clang/test/Modules/merge-anon-record-definition-in-objc.m b/clang/test/Modules/merge-anon-record-definition-in-objc.m index 0bd18b1..da1601b 100644 --- a/clang/test/Modules/merge-anon-record-definition-in-objc.m +++ b/clang/test/Modules/merge-anon-record-definition-in-objc.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: split-file %s %t // RUN: %clang_cc1 -fsyntax-only -F%t/Frameworks %t/test.m -Wno-objc-property-implementation -Wno-incomplete-implementation \ diff --git a/clang/test/Modules/merge-extension-ivars.m b/clang/test/Modules/merge-extension-ivars.m index 6a4859d..bf9814bd 100644 --- a/clang/test/Modules/merge-extension-ivars.m +++ b/clang/test/Modules/merge-extension-ivars.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: split-file %s %t // RUN: %clang_cc1 -emit-llvm -o %t/test-compatible-extensions.ll -fobjc-runtime=macosx-10.9 -F%t/Frameworks %t/test-compatible-extensions.m \ diff --git a/clang/test/Modules/merge-objc-interface-visibility.m b/clang/test/Modules/merge-objc-interface-visibility.m index 96bc4f9..cbb97e72 100644 --- a/clang/test/Modules/merge-objc-interface-visibility.m +++ b/clang/test/Modules/merge-objc-interface-visibility.m @@ -4,7 +4,7 @@ // RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache // RUN: %clang_cc1 -emit-llvm -o %t/test.bc -F%t/Frameworks %t/test.m -DHIDDEN_FIRST=0 \ // RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // Test a case when Objective-C interface is imported both as hidden and as visible. diff --git a/clang/test/Modules/merge-objc-interface.m b/clang/test/Modules/merge-objc-interface.m index ffa66ff..770a9d7 100644 --- a/clang/test/Modules/merge-objc-interface.m +++ b/clang/test/Modules/merge-objc-interface.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: split-file %s %t // RUN: %clang_cc1 -emit-llvm -o %t/test.bc -F%t/Frameworks %t/test.m \ diff --git a/clang/test/Modules/merge-record-definition-nonmodular.m b/clang/test/Modules/merge-record-definition-nonmodular.m index c99c459..f045ec4 100644 --- a/clang/test/Modules/merge-record-definition-nonmodular.m +++ b/clang/test/Modules/merge-record-definition-nonmodular.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: mkdir %t // RUN: %clang_cc1 -emit-llvm -o %t/test.bc -F%S/Inputs/merge-record-definition %s \ diff --git a/clang/test/Modules/merge-record-definition-visibility.m b/clang/test/Modules/merge-record-definition-visibility.m index 6d6320d..21075cb 100644 --- a/clang/test/Modules/merge-record-definition-visibility.m +++ b/clang/test/Modules/merge-record-definition-visibility.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: mkdir %t // RUN: %clang_cc1 -emit-llvm -o %t/test.bc -F%S/Inputs/merge-record-definition %s \ diff --git a/clang/test/Modules/merge-record-definition.m b/clang/test/Modules/merge-record-definition.m index 6ae5d90..b7560cf 100644 --- a/clang/test/Modules/merge-record-definition.m +++ b/clang/test/Modules/merge-record-definition.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: mkdir %t // RUN: %clang_cc1 -emit-llvm -o %t/test.bc -F%S/Inputs/merge-record-definition %s \ diff --git a/clang/test/Modules/module-debuginfo-prefix.m b/clang/test/Modules/module-debuginfo-prefix.m index 34ab0be..7874de7 100644 --- a/clang/test/Modules/module-debuginfo-prefix.m +++ b/clang/test/Modules/module-debuginfo-prefix.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // REQUIRES: asserts // Modules: diff --git a/clang/test/Modules/module-file-home-is-cwd.m b/clang/test/Modules/module-file-home-is-cwd.m index 99a864c..706b815 100644 --- a/clang/test/Modules/module-file-home-is-cwd.m +++ b/clang/test/Modules/module-file-home-is-cwd.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: cd %S // RUN: %clang_cc1 -x objective-c -fmodules -fno-implicit-modules \ // RUN: -fmodule-file-home-is-cwd -fmodule-name=libA -emit-module \ diff --git a/clang/test/Modules/module_file_info.m b/clang/test/Modules/module_file_info.m index 55b92e2..cbffae6 100644 --- a/clang/test/Modules/module_file_info.m +++ b/clang/test/Modules/module_file_info.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} @import DependsOnModule; // RUN: rm -rf %t %t-obj diff --git a/clang/test/Modules/objc-initializer.m b/clang/test/Modules/objc-initializer.m index 9ff0324..5736d78 100644 --- a/clang/test/Modules/objc-initializer.m +++ b/clang/test/Modules/objc-initializer.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: %clang_cc1 -no-opaque-pointers -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/objc-initializer %s -emit-llvm -o - -fobjc-arc | FileCheck %s // RUN: %clang_cc1 -no-opaque-pointers -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/objc-initializer %s -emit-llvm -o - -fobjc-arc -DIMPORT_TOP | FileCheck %s diff --git a/clang/test/Modules/pch-used.m b/clang/test/Modules/pch-used.m index 728709f..7a7707c 100644 --- a/clang/test/Modules/pch-used.m +++ b/clang/test/Modules/pch-used.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: mkdir %t // RUN: %clang_cc1 -x objective-c-header -emit-pch %S/Inputs/pch-used.h -o %t/pch-used.h.pch -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -O0 -isystem %S/Inputs/System/usr/include diff --git a/clang/test/Modules/redecl-ivars.m b/clang/test/Modules/redecl-ivars.m index 670826e..8afb00e 100644 --- a/clang/test/Modules/redecl-ivars.m +++ b/clang/test/Modules/redecl-ivars.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: split-file %s %t // RUN: %clang_cc1 -fsyntax-only -fobjc-runtime=macosx-10.9 -verify -I%t/include %t/test-mismatch-in-extension.m diff --git a/clang/test/Modules/use-exportas-for-link.m b/clang/test/Modules/use-exportas-for-link.m index bdc8576..6f5fd59 100644 --- a/clang/test/Modules/use-exportas-for-link.m +++ b/clang/test/Modules/use-exportas-for-link.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: rm -rf %t // RUN: %clang_cc1 -emit-llvm -o - -fmodules-cache-path=%t -DA -fmodules -fimplicit-module-maps -F %S/Inputs/exportas-link %s | FileCheck --check-prefix=CHECK_A %s // CHECK_A: !llvm.linker.options = !{![[MODULE:[0-9]+]]} diff --git a/clang/test/PCH/externally-retained.m b/clang/test/PCH/externally-retained.m index 592074a..a7d1683 100644 --- a/clang/test/PCH/externally-retained.m +++ b/clang/test/PCH/externally-retained.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // Test for assertion failure due to objc_externally_retained on a function. // Without PCH diff --git a/clang/test/PCH/irgen-rdar13114142.mm b/clang/test/PCH/irgen-rdar13114142.mm index a38bee3..4cc985d 100644 --- a/clang/test/PCH/irgen-rdar13114142.mm +++ b/clang/test/PCH/irgen-rdar13114142.mm @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: %clang_cc1 %s -triple %itanium_abi_triple -emit-pch -o %t.pch // RUN: %clang_cc1 %s -triple %itanium_abi_triple -emit-llvm -include-pch %t.pch -o - | FileCheck %s diff --git a/clang/test/PCH/objc_container.m b/clang/test/PCH/objc_container.m index f307058..8b05c93 100644 --- a/clang/test/PCH/objc_container.m +++ b/clang/test/PCH/objc_container.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // Test this without pch. // RUN: %clang_cc1 -include %S/objc_container.h -fsyntax-only -verify %s diff --git a/clang/test/PCH/objc_literals.m b/clang/test/PCH/objc_literals.m index 3c513e2..16ed6ae 100644 --- a/clang/test/PCH/objc_literals.m +++ b/clang/test/PCH/objc_literals.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: %clang_cc1 -emit-pch -o %t %s // RUN: %clang_cc1 -include-pch %t -verify %s // RUN: %clang_cc1 -include-pch %t -ast-print %s | FileCheck -check-prefix=CHECK-PRINT %s diff --git a/clang/test/PCH/objc_literals.mm b/clang/test/PCH/objc_literals.mm index 76d26cb..07d0b5b 100644 --- a/clang/test/PCH/objc_literals.mm +++ b/clang/test/PCH/objc_literals.mm @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-pch -x objective-c++ -std=c++0x -o %t %s // RUN: %clang_cc1 -triple %itanium_abi_triple -include-pch %t -x objective-c++ -std=c++0x -verify %s // RUN: %clang_cc1 -triple %itanium_abi_triple -include-pch %t -x objective-c++ -std=c++0x -ast-print %s | FileCheck -check-prefix=CHECK-PRINT %s diff --git a/clang/test/PCH/objcxx-ivar-class.mm b/clang/test/PCH/objcxx-ivar-class.mm index ef8b6a7..4469e20 100644 --- a/clang/test/PCH/objcxx-ivar-class.mm +++ b/clang/test/PCH/objcxx-ivar-class.mm @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // Test this without pch. // RUN: %clang_cc1 -include %S/objcxx-ivar-class.h -triple %itanium_abi_triple %s -emit-llvm -o - | FileCheck %s diff --git a/clang/test/PCH/pending-ids.m b/clang/test/PCH/pending-ids.m index 2a78cae..cf502da 100644 --- a/clang/test/PCH/pending-ids.m +++ b/clang/test/PCH/pending-ids.m @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos, target={{.*}}-aix{{.*}} +// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} // Test for rdar://10278815 // Without PCH diff --git a/llvm/test/MC/AsmParser/debug-no-source.s b/llvm/test/MC/AsmParser/debug-no-source.s index b88dcf9..355992f 100644 --- a/llvm/test/MC/AsmParser/debug-no-source.s +++ b/llvm/test/MC/AsmParser/debug-no-source.s @@ -1,4 +1,4 @@ -// UNSUPPORTED: -zos +// UNSUPPORTED: target={{.*}}-zos{{.*}} // REQUIRES: object-emission // RUN: llvm-mc %s | FileCheck %s diff --git a/llvm/test/Support/encoding.ll b/llvm/test/Support/encoding.ll index 26a46b3..c3f2f3f 100644 --- a/llvm/test/Support/encoding.ll +++ b/llvm/test/Support/encoding.ll @@ -1,9 +1,9 @@ ; Checks if llc can deal with different char encodings. ; This is only required for z/OS. ; -; UNSUPPORTED: !s390x-none-zos +; REQUIRES: system-zos, systemz-registered-target ; -; RUN: cat %s >%t && chtag -tc ISO8859-1 %t && llc %t -o - >/dev/null +; RUN: cat %s >%t && chtag -tc ISO8859-1 %t && llc -mtriple=s390x-ibm-zos %t -o - >/dev/null ; RUN: iconv -f ISO8859-1 -t IBM-1047 <%s >%t && chtag -tc IBM-1047 %t && llc %t -o - >/dev/null ; RUN: iconv -f ISO8859-1 -t IBM-1047 <%s >%t && chtag -r %t && llc %t -o - >/dev/null diff --git a/llvm/test/tools/llvm-mc/no_warnings.test b/llvm/test/tools/llvm-mc/no_warnings.test index b2c4d6b..31257ce 100644 --- a/llvm/test/tools/llvm-mc/no_warnings.test +++ b/llvm/test/tools/llvm-mc/no_warnings.test @@ -1,4 +1,4 @@ -# UNSUPPORTED: -zos +# UNSUPPORTED: target={{.*}}-zos{{.*}} # RUN: llvm-mc --no-warn %s 2>&1 | FileCheck %s # CHECK-NOT: warning: diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py index 4be5960..fd76f8d 100644 --- a/llvm/utils/lit/lit/llvm/config.py +++ b/llvm/utils/lit/lit/llvm/config.py @@ -88,6 +88,8 @@ class LLVMConfig(object): features.add('system-aix') elif platform.system() == 'SunOS': features.add('system-solaris') + elif platform.system() == 'OS/390': + features.add('system-zos') # Native compilation: host arch == default triple arch # Both of these values should probably be in every site config (e.g. as -- 2.7.4