1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
2 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s
3 ; RUN: %if ptxas && !ptxas-12.0 %{ llc < %s -march=nvptx -mcpu=sm_20 | %ptxas-verify %}
4 ; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 | %ptxas-verify %}
7 ;; Kernel function using ptx_kernel calling conv
9 ; CHECK: .entry kernel_func
10 define ptx_kernel void @kernel_func(ptr %a) {
16 ; CHECK: .func device_func
17 define void @device_func(ptr %a) {
22 ;; Kernel function using NVVM metadata
23 ; CHECK: .entry metadata_kernel
24 define void @metadata_kernel(ptr %a) {
30 !nvvm.annotations = !{!1}
32 !1 = !{ptr @metadata_kernel, !"kernel", i32 1}