1; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck --check-prefix=GCN %s 2 3; GCN-LABEL: {{^}}rcp_uint: 4; GCN: v_rcp_iflag_f32_e32 5define amdgpu_kernel void @rcp_uint(i32 addrspace(1)* %in, float addrspace(1)* %out) { 6 %load = load i32, i32 addrspace(1)* %in, align 4 7 %cvt = uitofp i32 %load to float 8 %div = fdiv float 1.000000e+00, %cvt 9 store float %div, float addrspace(1)* %out, align 4 10 ret void 11} 12 13; GCN-LABEL: {{^}}rcp_sint: 14; GCN: v_rcp_iflag_f32_e32 15define amdgpu_kernel void @rcp_sint(i32 addrspace(1)* %in, float addrspace(1)* %out) { 16 %load = load i32, i32 addrspace(1)* %in, align 4 17 %cvt = sitofp i32 %load to float 18 %div = fdiv float 1.000000e+00, %cvt 19 store float %div, float addrspace(1)* %out, align 4 20 ret void 21} 22