1 ; RUN: llc < %s -mtriple=i686-- -mcpu=corei7 -mattr=+avx2 | FileCheck %s
3 declare x86_fastcallcc i64 @barrier()
5 ;CHECK-LABEL: bcast_fold:
6 ;CHECK: vmov{{[au]}}ps %xmm{{[0-9]+}}, [[SPILLED:[^\)]+\)]]
8 ;CHECK: vbroadcastss [[SPILLED]], %ymm0
10 define <8 x float> @bcast_fold( float* %A) {
12 %A0 = load float, float* %A
13 %tt3 = call x86_fastcallcc i64 @barrier()
14 br i1 undef, label %work, label %exit
17 %A1 = insertelement <8 x float> undef, float %A0, i32 0
18 %A2 = shufflevector <8 x float> %A1, <8 x float> undef, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0>