Home | History | Annotate | Download | only in X86
      1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
      2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=avx2 | FileCheck %s
      3 
      4 define <16 x i16> @foo(<16 x i1> %mask, <16 x i16> %x, <16 x i16> %y) {
      5 ; CHECK-LABEL: foo:
      6 ; CHECK:       # BB#0:
      7 ; CHECK-NEXT:    vpmovzxbw {{.*#+}} ymm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero,xmm0[4],zero,xmm0[5],zero,xmm0[6],zero,xmm0[7],zero,xmm0[8],zero,xmm0[9],zero,xmm0[10],zero,xmm0[11],zero,xmm0[12],zero,xmm0[13],zero,xmm0[14],zero,xmm0[15],zero
      8 ; CHECK-NEXT:    vpsllw $15, %ymm0, %ymm0
      9 ; CHECK-NEXT:    vpsraw $15, %ymm0, %ymm0
     10 ; CHECK-NEXT:    vpblendvb %ymm0, %ymm1, %ymm2, %ymm0
     11 ; CHECK-NEXT:    retq
     12 ;
     13   %ret = select <16 x i1> %mask, <16 x i16> %x, <16 x i16> %y
     14   ret <16 x i16> %ret
     15 }
     16 
     17