Skip to content

Commit

Permalink
[AArch64][NFC] One more intrinsic test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilinpv committed Apr 21, 2020
1 parent c74acd8 commit c2dd38f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions llvm/test/CodeGen/AArch64/fp16_intrinsic_lane.ll
Expand Up @@ -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
}

0 comments on commit c2dd38f

Please sign in to comment.