]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - test/CodeGen/NVPTX/simple-call.ll
IR: Make metadata typeless in assembly
[opencl/llvm.git] / test / CodeGen / NVPTX / simple-call.ll
1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
2 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s
6 ; CHECK: .func ({{.*}}) device_func
7 define float @device_func(float %a) noinline {
8   %ret = fmul float %a, %a
9   ret float %ret
10 }
12 ; CHECK: .entry kernel_func
13 define void @kernel_func(float* %a) {
14   %val = load 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 }
24 !nvvm.annotations = !{!1}
26 !1 = !{void (float*)* @kernel_func, !"kernel", i32 1}