From 5a7de1d054c839fdaf58f6a39aa8e95e73a4bd2a Mon Sep 17 00:00:00 2001 From: Anirudh Prasad Date: Mon, 5 Jul 2021 11:06:38 -0400 Subject: [PATCH] [MCParser][z/OS] Mark a few tests as unsupported for the z/OS Target - Background here is that that these sets of tests are "invalid" to be run on z/OS - The reason is because these test constructs that HLASM never supports (HLASM doesn't support GNU style directives) - Usually tests are geared towards a particular target via the use of a triple that targets just that platform, but these tests require the use of a "default triple" - Thus, we mark these tests as "UNSUPPORTED" for z/OS since we don't want to run these for z/OS Reviewed By: yusra.syeda, abhina.sreeskantharajan Differential Revision: https://reviews.llvm.org/D105204 --- test/MC/AsmParser/debug-empty-source.s | 1 + test/MC/AsmParser/debug-no-source.s | 1 + test/MC/AsmParser/include.ll | 1 + test/MC/AsmParser/macro-same-context.ll | 1 + test/MC/ELF/dwarf-file0.s | 1 + test/MC/ELF/dwarf-loc0.s | 1 + test/tools/llvm-mc/no_warnings.test | 1 + 7 files changed, 7 insertions(+) diff --git a/test/MC/AsmParser/debug-empty-source.s b/test/MC/AsmParser/debug-empty-source.s index a2709f1c101..43240c8f5a2 100644 --- a/test/MC/AsmParser/debug-empty-source.s +++ b/test/MC/AsmParser/debug-empty-source.s @@ -1,3 +1,4 @@ +// UNSUPPORTED: -zos // REQUIRES: default_triple // RUN: llvm-mc %s -o -| FileCheck %s diff --git a/test/MC/AsmParser/debug-no-source.s b/test/MC/AsmParser/debug-no-source.s index 67ae71153ad..8a3ba5b6d93 100644 --- a/test/MC/AsmParser/debug-no-source.s +++ b/test/MC/AsmParser/debug-no-source.s @@ -1,3 +1,4 @@ +// UNSUPPORTED: -zos // REQUIRES: default_triple // RUN: llvm-mc %s | FileCheck %s diff --git a/test/MC/AsmParser/include.ll b/test/MC/AsmParser/include.ll index 51e9c88bc64..c7751cc6789 100644 --- a/test/MC/AsmParser/include.ll +++ b/test/MC/AsmParser/include.ll @@ -1,4 +1,5 @@ ; RUN: llc -I %p/Inputs -filetype asm -o - %s | FileCheck %s +; UNSUPPORTED: -zos ; REQUIRES: default_triple module asm ".include \22module.x\22" diff --git a/test/MC/AsmParser/macro-same-context.ll b/test/MC/AsmParser/macro-same-context.ll index 0acc1952420..81d15d8a196 100644 --- a/test/MC/AsmParser/macro-same-context.ll +++ b/test/MC/AsmParser/macro-same-context.ll @@ -1,5 +1,6 @@ ;; Test that macros in inline assembly blocks share the same context, ;; thus a definition is available to the whole file. PR36110 +; UNSUPPORTED: -zos ; RUN: not llc < %s 2>&1 | FileCheck %s ; REQUIRES: default_triple ;; This test is expected to fail on AIX, diff --git a/test/MC/ELF/dwarf-file0.s b/test/MC/ELF/dwarf-file0.s index acf1fab0935..be335406e93 100644 --- a/test/MC/ELF/dwarf-file0.s +++ b/test/MC/ELF/dwarf-file0.s @@ -1,3 +1,4 @@ +# UNSUPPORTED: -zos # REQUIRES: default_triple # RUN: llvm-mc -dwarf-version 4 %s -filetype=obj -o - | llvm-dwarfdump -debug-line - | FileCheck %s # RUN: llvm-mc -dwarf-version 4 %s --fatal-warnings -o - | FileCheck %s --check-prefix=ASM diff --git a/test/MC/ELF/dwarf-loc0.s b/test/MC/ELF/dwarf-loc0.s index 2ae025e1dbd..e2d279c83bc 100644 --- a/test/MC/ELF/dwarf-loc0.s +++ b/test/MC/ELF/dwarf-loc0.s @@ -1,3 +1,4 @@ +# UNSUPPORTED: -zos # REQUIRES: default_triple # RUN: llvm-mc -dwarf-version 5 --defsym FILE0=1 %s -filetype=obj -o - | llvm-dwarfdump -debug-line - | FileCheck %s # RUN: not llvm-mc -dwarf-version 4 %s -filetype=asm -o - 2>&1 | FileCheck %s -check-prefix=ERR diff --git a/test/tools/llvm-mc/no_warnings.test b/test/tools/llvm-mc/no_warnings.test index 973dc271a58..b2c4d6b5c42 100644 --- a/test/tools/llvm-mc/no_warnings.test +++ b/test/tools/llvm-mc/no_warnings.test @@ -1,3 +1,4 @@ +# UNSUPPORTED: -zos # RUN: llvm-mc --no-warn %s 2>&1 | FileCheck %s # CHECK-NOT: warning: