You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
468 B
12 lines
468 B
4 months ago
|
; RUN: llc -march=r600 -mcpu=cypress -verify-machineinstrs < %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(float addrspace(1)* %out, float %src) nounwind {
|
||
|
%rsq_clamped = call float @llvm.r600.recipsqrt.clamped.f32(float %src)
|
||
|
store float %rsq_clamped, float addrspace(1)* %out, align 4
|
||
|
ret void
|
||
|
}
|