diff options
| author | Chris Bieneman <beanz@abolishcrlf.org> | 2022-01-31 16:15:47 -0600 |
|---|---|---|
| committer | Chris Bieneman <beanz@abolishcrlf.org> | 2022-02-01 13:18:39 -0600 |
| commit | 7a0cbe11fb26302cea8ea4b5606ce3d159298754 (patch) | |
| tree | 994ac95376320e695c6f138eca57cbaa735454ea | |
| parent | 466329d047fc53ea4a1ba3843c27a5cfdacd17a5 (diff) | |
| download | llvm-7a0cbe11fb26302cea8ea4b5606ce3d159298754.zip llvm-7a0cbe11fb26302cea8ea4b5606ce3d159298754.tar.gz llvm-7a0cbe11fb26302cea8ea4b5606ce3d159298754.tar.bz2 | |
[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.
| -rw-r--r-- | llvm/test/CodeGen/MLRegalloc/default-eviction-advisor.ll | 1 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/dwarfdump-immutable.ll | 2 | ||||
| -rw-r--r-- | llvm/test/tools/llc/binutils-version.ll | 1 | ||||
| -rw-r--r-- | llvm/test/tools/llc/filetype-null-stop-after.ll | 1 | ||||
| -rw-r--r-- | llvm/test/tools/llc/time-trace.ll | 1 | ||||
| -rw-r--r-- | llvm/test/tools/llvm-lto/ltomodule.ll | 2 |
6 files changed, 6 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/MLRegalloc/default-eviction-advisor.ll b/llvm/test/CodeGen/MLRegalloc/default-eviction-advisor.ll index d02b9c0..0c9d2a7 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 e9cd801..4d8c262 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 d37d5af..e6b0c52 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 5be63a5..639334d 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 49e2890..332b1d0 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 fa64ec2..0c2275e 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 |
