1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-- -mattr=f16c| FileCheck %s --check-prefixes=CHECK
4 define <16 x half> @foo(<16 x half> %a, <16 x half> %b) nounwind {
7 ; CHECK-NEXT: pushq %rbp
8 ; CHECK-NEXT: movq %rsp, %rbp
9 ; CHECK-NEXT: andq $-32, %rsp
10 ; CHECK-NEXT: subq $96, %rsp
11 ; CHECK-NEXT: vmovaps %ymm1, {{[0-9]+}}(%rsp)
12 ; CHECK-NEXT: vmovaps %ymm0, (%rsp)
13 ; CHECK-NEXT: vcvtph2ps {{[0-9]+}}(%rsp), %ymm0
14 ; CHECK-NEXT: vcvtph2ps (%rsp), %ymm1
15 ; CHECK-NEXT: vaddps %ymm0, %ymm1, %ymm0
16 ; CHECK-NEXT: vcvtps2ph $4, %ymm0, %xmm0
17 ; CHECK-NEXT: vcvtph2ps {{[0-9]+}}(%rsp), %ymm1
18 ; CHECK-NEXT: vcvtph2ps {{[0-9]+}}(%rsp), %ymm2
19 ; CHECK-NEXT: vaddps %ymm1, %ymm2, %ymm1
20 ; CHECK-NEXT: vcvtps2ph $4, %ymm1, %xmm1
21 ; CHECK-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
22 ; CHECK-NEXT: movq %rbp, %rsp
23 ; CHECK-NEXT: popq %rbp
25 %1 = fadd <16 x half> %a, %b