1 ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s 2 ; RUN: llc -march=r600 -mcpu=cypress -verify-machineinstrs < %s | FileCheck -check-prefix=EG -check-prefix=FUNC %s 3 4 5 declare float @llvm.AMDGPU.rsq.clamped.f32(float) nounwind readnone 6 7 ; FUNC-LABEL: @rsq_clamped_f32 8 ; SI: V_RSQ_CLAMP_F32_e32 9 ; EG: RECIPSQRT_CLAMPED 10 define void @rsq_clamped_f32(float addrspace(1)* %out, float %src) nounwind { 11 %rsq_clamped = call float @llvm.AMDGPU.rsq.clamped.f32(float %src) nounwind readnone 12 store float %rsq_clamped, float addrspace(1)* %out, align 4 13 ret void 14 } 15