1
1
; RUN: llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs -trap-unreachable=false \
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 -trap-unreachable=false \
4
- ; RUN: | FileCheck %s --check-prefix =CHECK --check-prefix= CHECK-NOTRAP
4
+ ; RUN: | FileCheck %s --check-prefixes =CHECK, CHECK-NOTRAP
5
5
; RUN: llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs -trap-unreachable -no-trap-after-noreturn \
6
- ; RUN: | FileCheck %s --check-prefix =CHECK --check-prefix= CHECK-NOTRAP
6
+ ; RUN: | FileCheck %s --check-prefixes =CHECK, CHECK-NOTRAP
7
7
; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs -trap-unreachable -no-trap-after-noreturn \
8
- ; RUN: | FileCheck %s --check-prefix =CHECK --check-prefix= CHECK-NOTRAP
8
+ ; RUN: | FileCheck %s --check-prefixes =CHECK, CHECK-NOTRAP
9
9
; RUN: llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs -trap-unreachable -no-trap-after-noreturn=false \
10
- ; RUN: | FileCheck %s --check-prefix =CHECK --check-prefix= CHECK-TRAP
10
+ ; RUN: | FileCheck %s --check-prefixes =CHECK, CHECK-TRAP
11
11
; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs -trap-unreachable -no-trap-after-noreturn=false \
12
- ; RUN: | FileCheck %s --check-prefix =CHECK --check-prefix= CHECK-TRAP
13
- ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs -mattr=+ptx75 \
14
- ; RUN: | FileCheck %s --check-prefixes =CHECK-BUG-FIXED
12
+ ; RUN: | FileCheck %s --check-prefixes =CHECK, CHECK-TRAP
13
+ ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs -trap-unreachable - mattr=+ptx83 \
14
+ ; RUN: | FileCheck %s --check-prefix =CHECK-BUG-FIXED
15
15
; RUN: %if ptxas && !ptxas-12.0 %{ llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
16
16
; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
17
17
@@ -26,21 +26,26 @@ define void @kernel_func() {
26
26
call void @throw ()
27
27
; CHECK-TRAP-NOT: exit;
28
28
; CHECK-TRAP: trap;
29
+
29
30
; CHECK-NOTRAP-NOT: trap;
30
31
; CHECK: exit;
32
+
31
33
; CHECK-BUG-FIXED-NOT: exit;
34
+ ; CHECK-BUG-FIXED: trap;
32
35
unreachable
33
36
}
34
37
35
38
; CHECK-LABEL: kernel_func_2
36
39
define void @kernel_func_2 () {
37
40
; CHECK: trap; exit;
38
- ; CHECK-BUG-FIXED-NOT: exit;
41
+ ; CHECK-BUG-FIXED: trap;
42
+ ; CHECK-BUG-FIXED-NOT: trap; exit;
39
43
call void @llvm.trap ()
40
44
41
45
;; Make sure we avoid emitting two trap instructions.
42
46
; CHECK-NOT: trap;
43
47
; CHECK-NOT: exit;
48
+ ; CHECK-BUG-FIXED-NOT: trap;
44
49
unreachable
45
50
}
46
51
0 commit comments