1; RUN: llc < %s -mtriple=aarch64-eabi -mattr=+v8.2a,+fullfp16 | FileCheck %s 2 3declare <4 x half> @llvm.nearbyint.v4f16(<4 x half>) 4declare <8 x half> @llvm.nearbyint.v8f16(<8 x half>) 5declare <4 x half> @llvm.sqrt.v4f16(<4 x half>) 6declare <8 x half> @llvm.sqrt.v8f16(<8 x half>) 7 8define dso_local <4 x half> @t_vrndi_f16(<4 x half> %a) { 9; CHECK-LABEL: t_vrndi_f16: 10; CHECK: frinti v0.4h, v0.4h 11; CHECK-NEXT: ret 12entry: 13 %vrndi1.i = tail call <4 x half> @llvm.nearbyint.v4f16(<4 x half> %a) 14 ret <4 x half> %vrndi1.i 15} 16 17define dso_local <8 x half> @t_vrndiq_f16(<8 x half> %a) { 18; CHECK-LABEL: t_vrndiq_f16: 19; CHECK: frinti v0.8h, v0.8h 20; CHECK-NEXT: ret 21entry: 22 %vrndi1.i = tail call <8 x half> @llvm.nearbyint.v8f16(<8 x half> %a) 23 ret <8 x half> %vrndi1.i 24} 25 26define dso_local <4 x half> @t_vsqrt_f16(<4 x half> %a) { 27; CHECK-LABEL: t_vsqrt_f16: 28; CHECK: fsqrt v0.4h, v0.4h 29; CHECK-NEXT: ret 30entry: 31 %vsqrt.i = tail call <4 x half> @llvm.sqrt.v4f16(<4 x half> %a) 32 ret <4 x half> %vsqrt.i 33} 34 35define dso_local <8 x half> @t_vsqrtq_f16(<8 x half> %a) { 36; CHECK-LABEL: t_vsqrtq_f16: 37; CHECK: fsqrt v0.8h, v0.8h 38; CHECK-NEXT: ret 39entry: 40 %vsqrt.i = tail call <8 x half> @llvm.sqrt.v8f16(<8 x half> %a) 41 ret <8 x half> %vsqrt.i 42} 43