1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2 ; RUN: llc < %s -mtriple=x86_64-- -mcpu=skylake-avx512 | FileCheck %s
4 define void @PR95278(ptr %p0, ptr %p1) {
5 ; CHECK-LABEL: PR95278:
7 ; CHECK-NEXT: vcvtph2ps 2016(%rdi), %zmm0
8 ; CHECK-NEXT: vextractf32x4 $3, %zmm0, %xmm0
9 ; CHECK-NEXT: vshufpd {{.*#+}} xmm0 = xmm0[1,0]
10 ; CHECK-NEXT: vcvtps2ph $4, %xmm0, %xmm0
11 ; CHECK-NEXT: vmovd %xmm0, %eax
12 ; CHECK-NEXT: movw %ax, (%rsi)
13 ; CHECK-NEXT: vzeroupper
15 %load = load <1024 x half>, ptr %p0, align 2
16 %ext = fpext <1024 x half> %load to <1024 x float>
17 %shuffle = shufflevector <1024 x float> %ext, <1024 x float> poison, <1 x i32> <i32 1022>
18 %elt = extractelement <1 x float> %shuffle, i64 0
19 %trunc = fptrunc float %elt to half
20 store half %trunc, ptr %p1, align 2