Skip to content

Commit 7a0cbe1

Browse files
committed
[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.
1 parent 466329d commit 7a0cbe1

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

llvm/test/CodeGen/MLRegalloc/default-eviction-advisor.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
; trying to use ML-driven advisor.
33
; REQUIRES: !have_tf_aot
44
; REQUIRES: !have_tf_api
5+
; REQUIRES: default_target
56
; RUN: not llc -O2 -regalloc-enable-advisor=development < %s 2>&1 | FileCheck %s
67
; RUN: not llc -O2 -regalloc-enable-advisor=release < %s 2>&1 | FileCheck %s
78
; RUN: llc -O2 -regalloc-enable-advisor=default < %s 2>&1 | FileCheck %s --check-prefix=DEFAULT

llvm/test/DebugInfo/dwarfdump-immutable.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;; This test checks whether DWARF tag DW_TAG_immutable_type
22
;; is accepted and processed.
3-
3+
; REQUIRES: default_target
44
; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s
55

66
;; Test whether DW_TAG_immutable_type is accepted.

llvm/test/tools/llc/binutils-version.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
;; Test valid and invalid -binutils-version values.
2+
; REQUIRES: default_target
23
; RUN: llc %s -filetype=null -binutils-version=none
34
; RUN: llc %s -filetype=null -binutils-version=2
45
; RUN: llc %s -filetype=null -binutils-version=2.35
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
; -stop-after would normally dump MIR, but with -filetype=null as well check
22
; there's no output at all.
3+
; REQUIRES: default_target
34
; RUN: llc -filetype=null -stop-after=finalize-isel -o - %s | count 0

llvm/test/tools/llc/time-trace.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; REQUIRES: default_target
12
; RUN: llc -o /dev/null -O2 -time-trace -time-trace-granularity=100 -time-trace-file=%t.json
23
; RUN: FileCheck --input-file=%t.json %s
34

llvm/test/tools/llvm-lto/ltomodule.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# RUN: rm -rf %t && split-file %s %t
2-
2+
; REQUIRES: default_target
33
; RUN: llvm-as < %t/hasCtor.ll > %t.bc
44
; RUN: llvm-lto %t.bc -query-hasCtorDtor | FileCheck %s --check-prefixes=POSITIVE
55

0 commit comments

Comments
 (0)