1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs | FileCheck %s
2 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs | FileCheck %s
3 ; RUN: %if ptxas && !ptxas-12.0 %{ llc < %s -march=nvptx -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
4 ; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}
6 ; CHECK: .extern .func throw
7 declare void @throw() #0
9 ; CHECK: .entry kernel_func
10 define void @kernel_func() {
18 attributes #0 = { noreturn }
21 !nvvm.annotations = !{!1}
23 !1 = !{ptr @kernel_func, !"kernel", i32 1}