[llvm] 7a0cbe1 - [NFC] These tests require a default target

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 1 11:18:49 PST 2022


Author: Chris Bieneman
Date: 2022-02-01T13:18:39-06:00
New Revision: 7a0cbe11fb26302cea8ea4b5606ce3d159298754

URL: https://github.com/llvm/llvm-project/commit/7a0cbe11fb26302cea8ea4b5606ce3d159298754
DIFF: https://github.com/llvm/llvm-project/commit/7a0cbe11fb26302cea8ea4b5606ce3d159298754.diff

LOG: [NFC] These tests require a default target

These test cases all rely on a default target being specified. Adding
the requirement gets the tests properly skipped when
LLVM_DEFAULT_TARGET_TRIPLE is unset.

Added: 
    

Modified: 
    llvm/test/CodeGen/MLRegalloc/default-eviction-advisor.ll
    llvm/test/DebugInfo/dwarfdump-immutable.ll
    llvm/test/tools/llc/binutils-version.ll
    llvm/test/tools/llc/filetype-null-stop-after.ll
    llvm/test/tools/llc/time-trace.ll
    llvm/test/tools/llvm-lto/ltomodule.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/MLRegalloc/default-eviction-advisor.ll b/llvm/test/CodeGen/MLRegalloc/default-eviction-advisor.ll
index d02b9c0039ef..0c9d2a7ab4a7 100644
--- a/llvm/test/CodeGen/MLRegalloc/default-eviction-advisor.ll
+++ b/llvm/test/CodeGen/MLRegalloc/default-eviction-advisor.ll
@@ -2,6 +2,7 @@
 ; trying to use ML-driven advisor.
 ; REQUIRES: !have_tf_aot
 ; REQUIRES: !have_tf_api
+; REQUIRES: default_target
 ; RUN: not llc -O2 -regalloc-enable-advisor=development < %s 2>&1 | FileCheck %s
 ; RUN: not llc -O2 -regalloc-enable-advisor=release < %s 2>&1 | FileCheck %s
 ; RUN: llc -O2 -regalloc-enable-advisor=default < %s 2>&1 | FileCheck %s --check-prefix=DEFAULT

diff  --git a/llvm/test/DebugInfo/dwarfdump-immutable.ll b/llvm/test/DebugInfo/dwarfdump-immutable.ll
index e9cd8015e1e0..4d8c262840a1 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_target
 ; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s
 
 ;; Test whether DW_TAG_immutable_type is accepted.

diff  --git a/llvm/test/tools/llc/binutils-version.ll b/llvm/test/tools/llc/binutils-version.ll
index d37d5afad9e2..e6b0c52f401f 100644
--- a/llvm/test/tools/llc/binutils-version.ll
+++ b/llvm/test/tools/llc/binutils-version.ll
@@ -1,4 +1,5 @@
 ;; Test valid and invalid -binutils-version values.
+; REQUIRES: default_target
 ; RUN: llc %s -filetype=null -binutils-version=none
 ; RUN: llc %s -filetype=null -binutils-version=2
 ; RUN: llc %s -filetype=null -binutils-version=2.35

diff  --git a/llvm/test/tools/llc/filetype-null-stop-after.ll b/llvm/test/tools/llc/filetype-null-stop-after.ll
index 5be63a55b648..639334d1a255 100644
--- a/llvm/test/tools/llc/filetype-null-stop-after.ll
+++ b/llvm/test/tools/llc/filetype-null-stop-after.ll
@@ -1,3 +1,4 @@
 ; -stop-after would normally dump MIR, but with -filetype=null as well check
 ; there's no output at all.
+; REQUIRES: default_target
 ; RUN: llc -filetype=null -stop-after=finalize-isel -o - %s | count 0

diff  --git a/llvm/test/tools/llc/time-trace.ll b/llvm/test/tools/llc/time-trace.ll
index 49e2890f58de..332b1d06bfad 100644
--- a/llvm/test/tools/llc/time-trace.ll
+++ b/llvm/test/tools/llc/time-trace.ll
@@ -1,3 +1,4 @@
+; REQUIRES: default_target
 ; RUN: llc -o /dev/null -O2 -time-trace -time-trace-granularity=100 -time-trace-file=%t.json
 ; RUN: FileCheck --input-file=%t.json %s
 

diff  --git a/llvm/test/tools/llvm-lto/ltomodule.ll b/llvm/test/tools/llvm-lto/ltomodule.ll
index fa64ec2d0ce7..0c2275e62216 100644
--- a/llvm/test/tools/llvm-lto/ltomodule.ll
+++ b/llvm/test/tools/llvm-lto/ltomodule.ll
@@ -1,5 +1,5 @@
 # RUN: rm -rf %t && split-file %s %t
-
+; REQUIRES: default_target
 ; RUN: llvm-as < %t/hasCtor.ll > %t.bc
 ; RUN: llvm-lto %t.bc -query-hasCtorDtor | FileCheck %s --check-prefixes=POSITIVE
 


        


More information about the llvm-commits mailing list