mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
dd9ab77318
Currently the default C calling convention functions are treated the same as compute kernels. Make this explicit so the default calling convention can be changed to a non-kernel. Converted with perl -pi -e 's/define void/define amdgpu_kernel void/' on the relevant test directories (and undoing in one place that actually wanted a non-kernel). llvm-svn: 298444
19 lines
597 B
LLVM
19 lines
597 B
LLVM
; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck %s
|
|
|
|
declare float @llvm.amdgcn.fdiv.fast(float, float) #0
|
|
|
|
; CHECK-LABEL: {{^}}test_fdiv_fast:
|
|
; CHECK: v_cndmask_b32_e32 v{{[0-9]+}}, 1.0, v{{[0-9]+}}, vcc
|
|
; CHECK: v_mul_f32_e32
|
|
; CHECK: v_rcp_f32_e32
|
|
; CHECK: v_mul_f32_e32
|
|
; CHECK: v_mul_f32_e32
|
|
define amdgpu_kernel void @test_fdiv_fast(float addrspace(1)* %out, float %a, float %b) #1 {
|
|
%fdiv = call float @llvm.amdgcn.fdiv.fast(float %a, float %b)
|
|
store float %fdiv, float addrspace(1)* %out
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind readnone }
|
|
attributes #1 = { nounwind }
|