1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-- -mattr=avx2 | FileCheck %s
4 ; The broadcast node takes a vector operand as input and changes its length.
6 define <4 x double> @PR43402(i64 %x) {
7 ; CHECK-LABEL: PR43402:
9 ; CHECK-NEXT: vmovsd {{.*#+}} xmm0 = mem[0],zero
10 ; CHECK-NEXT: vunpcklps {{.*#+}} xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
11 ; CHECK-NEXT: vsubpd {{\.LCPI.*}}, %xmm0, %xmm0
12 ; CHECK-NEXT: vhaddpd %xmm0, %xmm0, %xmm0
13 ; CHECK-NEXT: vbroadcastsd %xmm0, %ymm0
15 %conv = uitofp i64 %x to double
16 %t2 = insertelement <4 x double> undef, double %conv, i32 0
17 %t3 = shufflevector <4 x double> %t2, <4 x double> undef, <4 x i32> zeroinitializer