blob: e1ce776f53045c5c06ef4f89c59d42be7ba91775 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
; RUN: llc -mtriple=r600 -mcpu=cypress < %s | FileCheck -check-prefix=EG %s
declare float @llvm.r600.recipsqrt.clamped.f32(float) nounwind readnone
; EG-LABEL: {{^}}rsq_clamped_f32:
; EG: RECIPSQRT_CLAMPED
define amdgpu_kernel void @rsq_clamped_f32(ptr addrspace(1) %out, float %src) nounwind {
%rsq_clamped = call float @llvm.r600.recipsqrt.clamped.f32(float %src)
store float %rsq_clamped, ptr addrspace(1) %out, align 4
ret void
}
|