llvm/llvm/test/CodeGen/X86/avx512-f16c-v16f16-fadd.ll

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-- -mattr=f16c| FileCheck %s --check-prefixes=CHECK

define <16 x half> @foo(<16 x half> %a, <16 x half> %b) nounwind {
; CHECK-LABEL: foo:
; CHECK:       # %bb.0:
; CHECK-NEXT:    vcvtph2ps %xmm1, %ymm2
; CHECK-NEXT:    vcvtph2ps %xmm0, %ymm3
; CHECK-NEXT:    vaddps %ymm2, %ymm3, %ymm2
; CHECK-NEXT:    vcvtps2ph $4, %ymm2, %xmm2
; CHECK-NEXT:    vextractf128 $1, %ymm1, %xmm1
; CHECK-NEXT:    vcvtph2ps %xmm1, %ymm1
; CHECK-NEXT:    vextractf128 $1, %ymm0, %xmm0
; CHECK-NEXT:    vcvtph2ps %xmm0, %ymm0
; CHECK-NEXT:    vaddps %ymm1, %ymm0, %ymm0
; CHECK-NEXT:    vcvtps2ph $4, %ymm0, %xmm0
; CHECK-NEXT:    vinsertf128 $1, %xmm0, %ymm2, %ymm0
; CHECK-NEXT:    retq
  %1 = fadd <16 x half> %a, %b
  ret <16 x half> %1
}