brintos

brintos / llvm-project-archived public Read only

0
0
Text · 733 B · ddc430e Raw
21 lines · plain
1; RUN: llc < %s -mtriple=nvptx -mcpu=sm_20 -verify-machineinstrs | FileCheck %s2; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_20 -verify-machineinstrs | FileCheck %s3; RUN: %if ptxas-ptr32 %{ llc < %s -mtriple=nvptx -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}4; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 -verify-machineinstrs | %ptxas-verify %}5 6; CHECK: .func ({{.*}}) device_func7define float @device_func(float %a) noinline {8  %ret = fmul float %a, %a9  ret float %ret10}11 12; CHECK: .entry kernel_func13define ptx_kernel void @kernel_func(ptr %a) {14  %val = load float, ptr %a15; CHECK: call.uni (retval0),16; CHECK: device_func,17  %mul = call float @device_func(float %val)18  store float %mul, ptr %a19  ret void20}21