Skip to content

Commit f4eb87f

Browse files
committed
[NVPTX] Convert tests to check 'target=nvptx.*'
Part of the project to eliminate special handling for triples in lit expressions.
1 parent 6736bce commit f4eb87f

27 files changed

+27
-27
lines changed

llvm/test/CodeGen/Generic/2007-12-17-InvokeAsm.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc -no-integrated-as < %s
22

33
; The test uses inline assembly with x86-specific constraints.
4-
; UNSUPPORTED: nvptx
4+
; UNSUPPORTED: target=nvptx{{.*}}
55

66

77
define fastcc void @bc__support__high_resolution_time__initialize_clock_rate() personality i32 (...)* @__gxx_personality_v0 {

llvm/test/CodeGen/Generic/2009-03-17-LSR-APInt.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; PR3806
33

44
; NVPTX does not support 'alias' yet
5-
; XFAIL: nvptx
5+
; XFAIL: target=nvptx{{.*}}
66

77
%struct..0__pthread_mutex_s = type { i32, i32, i32, i32, i32, i32, %struct.__pthread_list_t }
88
%struct.Alignment = type { i32 }

llvm/test/CodeGen/Generic/2010-11-04-BigByval.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
; The test is intentionally disabled only for the NVPTX target
55
; (i.e. not for nvptx-registered-target feature) due to excessive runtime.
66
; Please note, that there are NVPTX special testcases for "byval"
7-
; UNSUPPORTED: nvptx
7+
; UNSUPPORTED: target=nvptx{{.*}}
88

99
%big = type [131072 x i8]
1010

llvm/test/CodeGen/Generic/2010-ZeroSizedArg.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; PR4975
33

44
; NVPTX does not support zero sized type arg
5-
; UNSUPPORTED: nvptx
5+
; UNSUPPORTED: target=nvptx{{.*}}
66

77
%0 = type <{ [0 x i32] }>
88
%union.T0 = type { }

llvm/test/CodeGen/Generic/APIntLoadStore.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc < %s > %t
22

33
; NVPTX does not support arbitrary integer types and has acceptable subset tested in NVPTX/APIntLoadStore.ll
4-
; UNSUPPORTED: nvptx
4+
; UNSUPPORTED: target=nvptx{{.*}}
55

66
@i1_l = external global i1 ; <i1*> [#uses=1]
77
@i1_s = external global i1 ; <i1*> [#uses=1]

llvm/test/CodeGen/Generic/APIntParam.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc < %s > %t
22

33
; NVPTX does not support arbitrary integer types and has acceptable subset tested in NVPTX/APIntParam.ll
4-
; UNSUPPORTED: nvptx
4+
; UNSUPPORTED: target=nvptx{{.*}}
55

66
@i1_s = external global i1 ; <i1*> [#uses=1]
77
@i2_s = external global i2 ; <i2*> [#uses=1]

llvm/test/CodeGen/Generic/APIntSextParam.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc < %s > %t
22

33
; NVPTX does not support arbitrary integer types and has acceptable subset tested in NVPTX/APIntSextParam.ll
4-
; UNSUPPORTED: nvptx
4+
; UNSUPPORTED: target=nvptx{{.*}}
55

66
@i1_s = external global i1 ; <i1*> [#uses=1]
77
@i2_s = external global i2 ; <i2*> [#uses=1]

llvm/test/CodeGen/Generic/APIntZextParam.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc < %s > %t
22

33
; NVPTX does not support arbitrary integer types and has acceptable subset tested in NVPTX/APIntZextParam.ll
4-
; UNSUPPORTED: nvptx
4+
; UNSUPPORTED: target=nvptx{{.*}}
55

66
@i1_s = external global i1 ; <i1*> [#uses=1]
77
@i2_s = external global i2 ; <i2*> [#uses=1]

llvm/test/CodeGen/Generic/ForceStackAlign.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
; XFAIL: sparc
1010

1111
; NVPTX cannot select dynamic_stackalloc
12-
; XFAIL: nvptx
12+
; XFAIL: target=nvptx{{.*}}
1313

1414
define i32 @f(i8* %p) nounwind {
1515
entry:

llvm/test/CodeGen/Generic/add-with-overflow-128.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
; NVPTX fails to LowerFormalArguments for arg type i96
44
; the arg byte size must be one of the {16, 8, 4, 2}
5-
; XFAIL: nvptx
5+
; XFAIL: target=nvptx{{.*}}
66

77
@ok = internal constant [4 x i8] c"%d\0A\00"
88
@no = internal constant [4 x i8] c"no\0A\00"

llvm/test/CodeGen/Generic/addr-label.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
; REQUIRES: arm-registered-target
55

66
; NVPTX cannot select BlockAddress
7-
; XFAIL: nvptx
7+
; XFAIL: target=nvptx{{.*}}
88

99
;; Reference to a label that gets deleted.
1010
define i8* @test1() nounwind {

llvm/test/CodeGen/Generic/empty-load-store.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; PR2612
33

44
; Triggers a crash on assertion as NVPTX does not support 0-sized arrays.
5-
; UNSUPPORTED: nvptx
5+
; UNSUPPORTED: target=nvptx{{.*}}
66

77
@current_foo = internal global { } zeroinitializer
88

llvm/test/CodeGen/Generic/externally_available.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
; so that users won't run into errors in situations like:
77
; clang -target powerpc-ibm-aix -xc -<<<$'extern inline __attribute__((__gnu_inline__)) void foo() {}\nvoid bar() { foo(); }' -O -Xclang -disable-llvm-passes
88

9-
; XFAIL: nvptx
9+
; XFAIL: target=nvptx{{.*}}
1010
; unexpected emitting of the global var, while the function is not emitted as expected
1111

1212
; test_function should not be emitted to the .s file.

llvm/test/CodeGen/Generic/fpowi-promote.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
; PR1239
44

55
; Undefined external symbol "__powisf2"
6-
; XFAIL: nvptx
6+
; XFAIL: target=nvptx{{.*}}
77

88
define float @test(float %tmp23302331, i32 %tmp23282329 ) {
99

llvm/test/CodeGen/Generic/icmp-illegal.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
; NVPTX fails to LowerFormalArguments for arg size > i128
44
; the arg byte size must be one of the {16, 8, 4, 2}
5-
; XFAIL: nvptx
5+
; XFAIL: target=nvptx{{.*}}
66

77
; CHECK-LABEL: test_ult
88
define i1 @test_ult(i256 %a) nounwind {

llvm/test/CodeGen/Generic/intrinsics.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; RUN: llc -O0 < %s
33

44
; NVPTX can't select sinf(float)/sin(double)
5-
; XFAIL: nvptx
5+
; XFAIL: target=nvptx{{.*}}
66

77
;; SQRT
88
declare float @llvm.sqrt.f32(float)

llvm/test/CodeGen/Generic/live-debug-label.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc < %s -stop-after=virtregrewriter -o - | FileCheck %s
22
;
33
; NVPTX produces a different order of the BBs
4-
; XFAIL: nvptx
4+
; XFAIL: target=nvptx{{.*}}
55

66
; Generated with "clang++ -g -O1 -S -emit-llvm"
77
;

llvm/test/CodeGen/Generic/llc-start-stop.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NVPTX customizes the list of passes so the test cannot find what it expects
2-
; XFAIL: nvptx
2+
; XFAIL: target=nvptx{{.*}}
33

44
; Note: -verify-machineinstrs is used in order to make this test compatible with EXPENSIVE_CHECKS.
55
; RUN: llc < %s -debug-pass=Structure -stop-after=loop-reduce -verify-machineinstrs -o /dev/null 2>&1 \

llvm/test/CodeGen/Generic/pr12507.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc < %s
22

33
; NVPTX failed to lower arg i160, as size > 64
4-
; UNSUPPORTED: nvptx
4+
; UNSUPPORTED: target=nvptx{{.*}}
55

66
@c = external global i32, align 4
77

llvm/test/CodeGen/Generic/pr24662.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; RUN: llc < %s
33

44
; NVPTX failed to lower i670010, as size > 64
5-
; UNSUPPORTED: nvptx
5+
; UNSUPPORTED: target=nvptx{{.*}}
66

77
define i60 @PR24662a() {
88
ret i60 trunc (i670010 fptoui(float 0x400D9999A0000000 to i670010) to i60)

llvm/test/CodeGen/Generic/stacksave-restore.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc < %s
22

33
; NVPTX can not select llvm.stacksave (dynamic_stackalloc) and llvm.stackrestore
4-
; UNSUPPORTED: nvptx
4+
; UNSUPPORTED: target=nvptx{{.*}}
55

66
declare i8* @llvm.stacksave()
77

llvm/test/CodeGen/Generic/zero-sized-array.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; PR9900
33

44
; NVPTX does not support zero sized type arg
5-
; UNSUPPORTED: nvptx
5+
; UNSUPPORTED: target=nvptx{{.*}}
66

77
%zero = type [0 x i8]
88
%foobar = type { i32, %zero }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
; RUN: llc -O2 -regalloc-enable-advisor=default < %s 2>&1 | FileCheck %s --check-prefix=DEFAULT
99

1010
; regalloc-enable-advisor is not enabled for NVPTX
11-
; UNSUPPORTED: nvptx
11+
; UNSUPPORTED: target=nvptx{{.*}}
1212

1313
define void @f2(i64 %lhs, i64 %rhs, i64* %addr) {
1414
%sum = add i64 %lhs, %rhs

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
; RUN: llc -O2 -regalloc-enable-priority-advisor=default < %s 2>&1 | FileCheck %s --check-prefix=DEFAULT
99

1010
; regalloc-enable-priority-advisor is not enabled for NVPTX
11-
; UNSUPPORTED: nvptx
11+
; UNSUPPORTED: target=nvptx{{.*}}
1212

1313
define void @f2(i64 %lhs, i64 %rhs, i64* %addr) {
1414
%sum = add i64 %lhs, %rhs

llvm/test/Feature/optnone-llc.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
; RUN: llc -O1 -debug-only=isel -fast-isel=false %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=NOFAST
77

88
; REQUIRES: asserts, default_triple
9-
; UNSUPPORTED: nvptx
9+
; UNSUPPORTED: target=nvptx{{.*}}
1010

1111
; This test verifies that we don't run Machine Function optimizations
1212
; on optnone functions, and that we can turn off FastISel.

llvm/test/MC/AsmParser/include.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: llc -I %p/Inputs -filetype asm -o - %s | FileCheck %s
2-
; UNSUPPORTED: -zos,nvptx
2+
; UNSUPPORTED: -zos,target=nvptx{{.*}}
33
; REQUIRES: default_triple
44

55
module asm ".include \22module.x\22"

llvm/test/MC/AsmParser/macro-same-context.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;; Test that macros in inline assembly blocks share the same context,
22
;; thus a definition is available to the whole file. PR36110
3-
; UNSUPPORTED: -zos,nvptx
3+
; UNSUPPORTED: -zos,target=nvptx{{.*}}
44
; RUN: not llc < %s 2>&1 | FileCheck %s
55
; REQUIRES: default_triple
66

0 commit comments

Comments
 (0)