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 4 5 6; CHECK: .func ({{.*}}) device_func 7define float @device_func(float %a) noinline { 8 %ret = fmul float %a, %a 9 ret float %ret 10} 11 12; CHECK: .entry kernel_func 13define void @kernel_func(float* %a) { 14 %val = load float, float* %a 15; CHECK: call.uni (retval0), 16; CHECK: device_func, 17 %mul = call float @device_func(float %val) 18 store float %mul, float* %a 19 ret void 20} 21 22 23 24!nvvm.annotations = !{!1} 25 26!1 = !{void (float*)* @kernel_func, !"kernel", i32 1} 27