15 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=avx2 | FileCheck %s3 4define <8 x i32> @foo(<8 x i1> %bar) nounwind readnone {5; CHECK-LABEL: foo:6; CHECK: # %bb.0:7; CHECK-NEXT: vpmovzxwd {{.*#+}} ymm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero,xmm0[4],zero,xmm0[5],zero,xmm0[6],zero,xmm0[7],zero8; CHECK-NEXT: vpslld $31, %ymm0, %ymm09; CHECK-NEXT: vpsrad $31, %ymm0, %ymm010; CHECK-NEXT: retq11 %s = sext <8 x i1> %bar to <8 x i32>12 ret <8 x i32> %s13}14 15