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 declare float @llvm.AMDGPU.rsq.f32(float) nounwind readnone 5 6 ; FUNC-LABEL: @rsq_f32 7 ; SI: V_RSQ_F32_e32 8 ; EG: RECIPSQRT_IEEE 9 define void @rsq_f32(float addrspace(1)* %out, float %src) nounwind { 10 %rsq = call float @llvm.AMDGPU.rsq.f32(float %src) nounwind readnone 11 store float %rsq, float addrspace(1)* %out, align 4 12 ret void 13 } 14