[llvm] c2dd38f - [AArch64][NFC] One more intrinsic test.
Pavel Iliin via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 21 07:20:57 PDT 2020
Author: Pavel Iliin
Date: 2020-04-21T15:20:07+01:00
New Revision: c2dd38f1cb7ead1e1b87f5582962fed9a826c02c
URL: https://github.com/llvm/llvm-project/commit/c2dd38f1cb7ead1e1b87f5582962fed9a826c02c
DIFF: https://github.com/llvm/llvm-project/commit/c2dd38f1cb7ead1e1b87f5582962fed9a826c02c.diff
LOG: [AArch64][NFC] One more intrinsic test.
Added:
Modified:
llvm/test/CodeGen/AArch64/fp16_intrinsic_lane.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AArch64/fp16_intrinsic_lane.ll b/llvm/test/CodeGen/AArch64/fp16_intrinsic_lane.ll
index b6860b374b58..847a51f2aed4 100644
--- a/llvm/test/CodeGen/AArch64/fp16_intrinsic_lane.ll
+++ b/llvm/test/CodeGen/AArch64/fp16_intrinsic_lane.ll
@@ -491,3 +491,19 @@ entry:
%1 = tail call half @llvm.fma.f16(half %0, half %extract, half %a)
ret half %1
}
+
+define dso_local half @t_fadd_vfmah_f16(half %a, half %b, <4 x half> %c, <4 x half> %d) {
+; CHECK-LABEL: t_fadd_vfmah_f16:
+; CHECK: .Lt_fadd_vfmah_f16$local:
+; CHECK-NEXT: .cfi_startproc
+; CHECK-NEXT: // %bb.0: // %entry
+; CHECK-NEXT: fadd v2.4h, v2.4h, v3.4h
+; CHECK-NEXT: mov h2, v2.h[3]
+; CHECK-NEXT: fmadd h0, h1, h2, h0
+; CHECK-NEXT: ret
+entry:
+ %0 = fadd <4 x half> %c, %d
+ %extract = extractelement <4 x half> %0, i32 3
+ %1 = tail call half @llvm.fma.f16(half %b, half %extract, half %a)
+ ret half %1
+}
More information about the llvm-commits
mailing list