1
1
; RUN: llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs \
2
- ; RUN: | FileCheck %s --check-prefix =CHECK --check-prefix= CHECK-NOTRAP
2
+ ; RUN: | FileCheck %s --check-prefixes =CHECK, CHECK-NOTRAP
3
3
; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs \
4
- ; RUN: | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-NOTRAP
4
+ ; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-NOTRAP
5
+ ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs -mattr=+ptx75 \
6
+ ; RUN: | FileCheck %s --check-prefixes=CHECK-PTX75
5
7
; RUN: llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs -trap-unreachable \
6
- ; RUN: | FileCheck %s --check-prefix =CHECK --check-prefix= CHECK-TRAP
8
+ ; RUN: | FileCheck %s --check-prefixes =CHECK, CHECK-TRAP
7
9
; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs -trap-unreachable \
8
- ; RUN: | FileCheck %s --check-prefix =CHECK --check-prefix= CHECK-TRAP
10
+ ; RUN: | FileCheck %s --check-prefixes =CHECK, CHECK-TRAP
9
11
; RUN: %if ptxas && !ptxas-12.0 %{ llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
10
12
; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
11
13
@@ -21,12 +23,11 @@ define void @kernel_func() {
21
23
; CHECK-TRAP: trap;
22
24
; CHECK-NOTRAP-NOT: trap;
23
25
; CHECK: exit;
26
+ ; CHECK-PTX75-NOT: exit;
24
27
unreachable
25
28
}
26
29
27
30
attributes #0 = { noreturn }
28
31
29
-
30
32
!nvvm.annotations = !{!1 }
31
-
32
33
!1 = !{ptr @kernel_func , !"kernel" , i32 1 }
0 commit comments