1 ; RUN: llc -mtriple=r600 -mcpu=cypress -verify-machineinstrs < %s | FileCheck -check-prefix=EG %s
3 declare float @llvm.r600.recipsqrt.ieee.f32(float) nounwind readnone
5 ; EG-LABEL: {{^}}recipsqrt.ieee_f32:
7 define amdgpu_kernel void @recipsqrt.ieee_f32(ptr addrspace(1) %out, float %src) nounwind {
8 %recipsqrt.ieee = call float @llvm.r600.recipsqrt.ieee.f32(float %src) nounwind readnone
9 store float %recipsqrt.ieee, ptr addrspace(1) %out, align 4
13 ; TODO: Really these should be constant folded
14 ; EG-LABEL: {{^}}recipsqrt.ieee_f32_constant_4.0
16 define amdgpu_kernel void @recipsqrt.ieee_f32_constant_4.0(ptr addrspace(1) %out) nounwind {
17 %recipsqrt.ieee = call float @llvm.r600.recipsqrt.ieee.f32(float 4.0) nounwind readnone
18 store float %recipsqrt.ieee, ptr addrspace(1) %out, align 4
22 ; EG-LABEL: {{^}}recipsqrt.ieee_f32_constant_100.0
24 define amdgpu_kernel void @recipsqrt.ieee_f32_constant_100.0(ptr addrspace(1) %out) nounwind {
25 %recipsqrt.ieee = call float @llvm.r600.recipsqrt.ieee.f32(float 100.0) nounwind readnone
26 store float %recipsqrt.ieee, ptr addrspace(1) %out, align 4