llvm-mirror/test/CodeGen/AArch64/fp16_intrinsic_scalar_3op.ll
Sjoerd Meijer 942d7df325 [AArch64] Codegen tests for the Armv8.2-A FP16 intrinsics
This is a follow up of the AArch64 FP16 intrinsics work;
the codegen tests had not been added yet.

Differential Revision: https://reviews.llvm.org/D44510

llvm-svn: 327624
2018-03-15 13:42:28 +00:00

14 lines
363 B
LLVM

; 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
}