1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-linux-pc -mcpu=core-avx2 | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; FIXME: vpmovsxwd should be generated instead of vpmovzxwd followed by 4*9880d681SAndroid Build Coastguard Worker; SLL/SRA. 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine <8 x i32> @foo(<8 x i1> %bar) nounwind readnone { 7*9880d681SAndroid Build Coastguard Workerentry: 8*9880d681SAndroid Build Coastguard Worker %s = sext <8 x i1> %bar to <8 x i32> 9*9880d681SAndroid Build Coastguard Worker ret <8 x i32> %s 10*9880d681SAndroid Build Coastguard Worker; CHECK: foo 11*9880d681SAndroid Build Coastguard Worker; CHECK: vpmovzxwd 12*9880d681SAndroid Build Coastguard Worker; CHECK: vpslld 13*9880d681SAndroid Build Coastguard Worker; CHECK: vpsrad 14*9880d681SAndroid Build Coastguard Worker; CHECK: ret 15*9880d681SAndroid Build Coastguard Worker} 16