19 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=fiji -mattr=-flat-for-global < %s | FileCheck -check-prefix=GCN -check-prefix=VI %s2 3declare half @llvm.amdgcn.frexp.mant.f16(half %a)4 5; GCN-LABEL: {{^}}frexp_mant_f166; GCN: buffer_load_ushort v[[A_F16:[0-9]+]]7; VI: v_frexp_mant_f16_e32 v[[R_F16:[0-9]+]], v[[A_F16]]8; GCN: buffer_store_short v[[R_F16]]9; GCN: s_endpgm10define amdgpu_kernel void @frexp_mant_f16(11 ptr addrspace(1) %r,12 ptr addrspace(1) %a) {13entry:14 %a.val = load half, ptr addrspace(1) %a15 %r.val = call half @llvm.amdgcn.frexp.mant.f16(half %a.val)16 store half %r.val, ptr addrspace(1) %r17 ret void18}19