summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/fp16_intrinsic_scalar_3op.ll
blob: d43834d05de3c44501b2b464469d5dd7e50a5c90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llc < %s -mtriple=aarch64-eabi -mattr=+v8.2a,+fullfp16  | FileCheck %s

declare half @llvm.fma.f16(half, half, half)

define dso_local half @t_vfmah_f16(half %a, half %b, half %c) {
; CHECK-LABEL: t_vfmah_f16:
; CHECK:         fmadd h0, h1, h2, h0
; CHECK-NEXT:    ret
entry:
  %0 = tail call half @llvm.fma.f16(half %b, half %c, half %a)
  ret half %0
}

OpenPOWER on IntegriCloud