1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs \
2 ; RUN: | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-NOTRAP
3 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs \
4 ; RUN: | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-NOTRAP
5 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs -trap-unreachable \
6 ; RUN: | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-TRAP
7 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs -trap-unreachable \
8 ; RUN: | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-TRAP
9 ; RUN: %if ptxas && !ptxas-12.0 %{ llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
10 ; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
12 ; CHECK: .extern .func throw
13 declare void @throw() #0
15 ; CHECK: .entry kernel_func
16 define void @kernel_func() {
20 ; CHECK-TRAP-NOT: exit;
22 ; CHECK-NOTRAP-NOT: trap;
27 attributes #0 = { noreturn }
30 !nvvm.annotations = !{!1}
32 !1 = !{ptr @kernel_func, !"kernel", i32 1}