blob: 27cf6b28fd6699051643c0c2890cbb43d3192cf3 [file] [log] [blame]
Stephen Hinesc6a4f5e2014-07-21 00:45:20 -07001; 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
4declare float @llvm.AMDGPU.rsq.f32(float) nounwind readnone
5
6; FUNC-LABEL: @rsq_f32
7; SI: V_RSQ_F32_e32
8; EG: RECIPSQRT_IEEE
9define 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}