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
4 declare float @llvm.AMDGPU.legacy.rsq(float) nounwind readnone
6 ; FUNC-LABEL: @rsq_legacy_f32
7 ; SI: V_RSQ_LEGACY_F32_e32
9 define void @rsq_legacy_f32(float addrspace(1)* %out, float %src) nounwind {
10 %rsq = call float @llvm.AMDGPU.legacy.rsq(float %src) nounwind readnone
11 store float %rsq, float addrspace(1)* %out, align 4