1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 -mcpu=corei7 -mattr=+avx2 | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Workerdeclare x86_fastcallcc i64 @barrier() 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker;CHECK-LABEL: bcast_fold: 6*9880d681SAndroid Build Coastguard Worker;CHECK: vmov{{[au]}}ps %xmm{{[0-9]+}}, [[SPILLED:[^\)]+\)]] 7*9880d681SAndroid Build Coastguard Worker;CHECK: barrier 8*9880d681SAndroid Build Coastguard Worker;CHECK: vbroadcastss [[SPILLED]], %ymm0 9*9880d681SAndroid Build Coastguard Worker;CHECK: ret 10*9880d681SAndroid Build Coastguard Workerdefine <8 x float> @bcast_fold( float* %A) { 11*9880d681SAndroid Build Coastguard WorkerBB: 12*9880d681SAndroid Build Coastguard Worker %A0 = load float, float* %A 13*9880d681SAndroid Build Coastguard Worker %tt3 = call x86_fastcallcc i64 @barrier() 14*9880d681SAndroid Build Coastguard Worker br i1 undef, label %work, label %exit 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Workerwork: 17*9880d681SAndroid Build Coastguard Worker %A1 = insertelement <8 x float> undef, float %A0, i32 0 18*9880d681SAndroid Build Coastguard Worker %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> 19*9880d681SAndroid Build Coastguard Worker ret <8 x float> %A2 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Workerexit: 22*9880d681SAndroid Build Coastguard Worker ret <8 x float> undef 23*9880d681SAndroid Build Coastguard Worker} 24