[llvm] c344d97 - [NVPTX][tests] Do not run tests that require direct object generation
Igor Kudrin via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 22 05:49:55 PDT 2022
Author: Igor Kudrin
Date: 2022-03-22T16:46:48+04:00
New Revision: c344d97a125b18f8fed0a64aace73c49a870e079
URL: https://github.com/llvm/llvm-project/commit/c344d97a125b18f8fed0a64aace73c49a870e079
DIFF: https://github.com/llvm/llvm-project/commit/c344d97a125b18f8fed0a64aace73c49a870e079.diff
LOG: [NVPTX][tests] Do not run tests that require direct object generation
NVPTX does not support generating binary files, which is required for
these tests.
The majority of tests in 'DebugInfo/Generic' also require emitting
object files, so they all are disabled for NVPTX.
Differential Revision: https://reviews.llvm.org/D121996
Added:
Modified:
llvm/test/DebugInfo/Generic/lit.local.cfg
llvm/test/DebugInfo/attr-btf_type_tag.ll
llvm/test/DebugInfo/dwarfdump-immutable.ll
llvm/test/Instrumentation/InstrProfiling/debug-info-correlate.ll
llvm/test/MC/AsmParser/debug-empty-source.s
llvm/test/MC/AsmParser/debug-no-source.s
llvm/test/MC/ELF/cfi-version.ll
llvm/test/MC/ELF/dwarf-file0.s
llvm/test/MC/ELF/dwarf-loc0.s
llvm/test/lit.cfg.py
llvm/test/tools/llvm-mc/lit.local.cfg
Removed:
################################################################################
diff --git a/llvm/test/DebugInfo/Generic/lit.local.cfg b/llvm/test/DebugInfo/Generic/lit.local.cfg
index 156d7d172ed0d..7ce6a3d39231b 100644
--- a/llvm/test/DebugInfo/Generic/lit.local.cfg
+++ b/llvm/test/DebugInfo/Generic/lit.local.cfg
@@ -1,4 +1,4 @@
if not config.target_triple:
config.unsupported = True
-elif 'xcore' in config.target_triple:
+elif config.target_triple.startswith(("nvptx", "xcore")):
config.unsupported = True
diff --git a/llvm/test/DebugInfo/attr-btf_type_tag.ll b/llvm/test/DebugInfo/attr-btf_type_tag.ll
index 4561d0512a991..6ba24dc9dd36f 100644
--- a/llvm/test/DebugInfo/attr-btf_type_tag.ll
+++ b/llvm/test/DebugInfo/attr-btf_type_tag.ll
@@ -1,4 +1,4 @@
-; REQUIRES: x86-registered-target
+; REQUIRES: object-emission
; RUN: llc -filetype=obj -o %t %s
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
; Source:
diff --git a/llvm/test/DebugInfo/dwarfdump-immutable.ll b/llvm/test/DebugInfo/dwarfdump-immutable.ll
index c08fe3f21c378..672113f0f7aed 100644
--- a/llvm/test/DebugInfo/dwarfdump-immutable.ll
+++ b/llvm/test/DebugInfo/dwarfdump-immutable.ll
@@ -1,6 +1,6 @@
;; This test checks whether DWARF tag DW_TAG_immutable_type
;; is accepted and processed.
-; REQUIRES: default_triple
+; REQUIRES: object-emission
; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s
;; Test whether DW_TAG_immutable_type is accepted.
diff --git a/llvm/test/Instrumentation/InstrProfiling/debug-info-correlate.ll b/llvm/test/Instrumentation/InstrProfiling/debug-info-correlate.ll
index 4afbad679fc87..421bf96b6e73e 100644
--- a/llvm/test/Instrumentation/InstrProfiling/debug-info-correlate.ll
+++ b/llvm/test/Instrumentation/InstrProfiling/debug-info-correlate.ll
@@ -2,7 +2,7 @@
; RUN: FileCheck < %t.ll --implicit-check-not "{{__llvm_prf_data|__llvm_prf_names}}" %s
; RUN: %llc_dwarf -O0 -filetype=obj < %t.ll | llvm-dwarfdump - | FileCheck --implicit-check-not "{{DW_TAG|NULL}}" %s --check-prefix CHECK-DWARF
-; REQUIRES: system-linux
+; REQUIRES: system-linux, object-emission
@__profn_foo = private constant [3 x i8] c"foo"
; CHECK: @__profc_foo =
diff --git a/llvm/test/MC/AsmParser/debug-empty-source.s b/llvm/test/MC/AsmParser/debug-empty-source.s
index 372d614c5e360..9d2fc843f8ed6 100644
--- a/llvm/test/MC/AsmParser/debug-empty-source.s
+++ b/llvm/test/MC/AsmParser/debug-empty-source.s
@@ -1,6 +1,6 @@
// XFAIL: -aix
// UNSUPPORTED: -zos
-// REQUIRES: default_triple
+// REQUIRES: object-emission
// RUN: llvm-mc %s -o -| FileCheck %s
.file 1 "dir1" "foo" source ""
diff --git a/llvm/test/MC/AsmParser/debug-no-source.s b/llvm/test/MC/AsmParser/debug-no-source.s
index 8a3ba5b6d93bc..b88dcf9e33187 100644
--- a/llvm/test/MC/AsmParser/debug-no-source.s
+++ b/llvm/test/MC/AsmParser/debug-no-source.s
@@ -1,5 +1,5 @@
// UNSUPPORTED: -zos
-// REQUIRES: default_triple
+// REQUIRES: object-emission
// RUN: llvm-mc %s | FileCheck %s
.file 1 "dir1/foo"
diff --git a/llvm/test/MC/ELF/cfi-version.ll b/llvm/test/MC/ELF/cfi-version.ll
index 4006e35f763d4..96c17417b8b0e 100644
--- a/llvm/test/MC/ELF/cfi-version.ll
+++ b/llvm/test/MC/ELF/cfi-version.ll
@@ -8,7 +8,7 @@
; .debug_frame is not emitted for targeting Windows x64, arm64, or AIX.
; REQUIRES: debug_frame
-; REQUIRES: default_triple
+; REQUIRES: object-emission
; Function Attrs: nounwind
define i32 @foo() #0 !dbg !4 {
diff --git a/llvm/test/MC/ELF/dwarf-file0.s b/llvm/test/MC/ELF/dwarf-file0.s
index b209bed36acb9..22220466e9146 100644
--- a/llvm/test/MC/ELF/dwarf-file0.s
+++ b/llvm/test/MC/ELF/dwarf-file0.s
@@ -1,6 +1,6 @@
# XFAIL: -aix
# UNSUPPORTED: -zos
-# REQUIRES: default_triple
+# REQUIRES: object-emission
# 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
# RUN: llvm-mc -dwarf-version 5 %s -filetype=obj -o - | llvm-dwarfdump -debug-line - | FileCheck %s
diff --git a/llvm/test/MC/ELF/dwarf-loc0.s b/llvm/test/MC/ELF/dwarf-loc0.s
index 2332367af630d..f3d7f56030408 100644
--- a/llvm/test/MC/ELF/dwarf-loc0.s
+++ b/llvm/test/MC/ELF/dwarf-loc0.s
@@ -1,6 +1,6 @@
# XFAIL: -aix
# UNSUPPORTED: -zos
-# REQUIRES: default_triple
+# REQUIRES: object-emission
# 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
# Show that ".loc 0" works in DWARF v5, gets an error for earlier versions.
diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py
index eea7f8922e81e..bacf9960bccc1 100644
--- a/llvm/test/lit.cfg.py
+++ b/llvm/test/lit.cfg.py
@@ -299,7 +299,7 @@ def have_cxx_shared_library():
if config.target_triple:
config.available_features.add('default_triple')
# Direct object generation
- if not 'xcore' in config.target_triple:
+ if not config.target_triple.startswith(("nvptx", "xcore")):
config.available_features.add('object-emission')
import subprocess
diff --git a/llvm/test/tools/llvm-mc/lit.local.cfg b/llvm/test/tools/llvm-mc/lit.local.cfg
index eb099c463f00a..00173edc899f7 100644
--- a/llvm/test/tools/llvm-mc/lit.local.cfg
+++ b/llvm/test/tools/llvm-mc/lit.local.cfg
@@ -1,3 +1,3 @@
# Requires a non-empty default triple for these tests
-if 'default_triple' not in config.available_features:
+if 'object-emission' not in config.available_features:
config.unsupported = True
More information about the llvm-commits
mailing list