1 ; RUN: llc < %s -o - -mcpu=generic -march=x86-64 -mattr=+sse2 | FileCheck %s
2 ; RUN: llc < %s -o - -mcpu=generic -march=x86-64 -mattr=+avx | FileCheck %s
4 define <8 x i16> @foo(<8 x i16> %a, <8 x i16> %b) {
6 ; CHECK-NEXT: .short 32
7 ; CHECK-NEXT: .short 32
8 ; CHECK-NEXT: .short 32
9 ; CHECK-NEXT: .short 32
10 ; CHECK-NEXT: .short 32
11 ; CHECK-NEXT: .short 32
12 ; CHECK-NEXT: .short 32
13 ; CHECK-LABEL: {{^_?foo:}}
16 %icmp = icmp eq <8 x i16> %a, %b
17 %zext = zext <8 x i1> %icmp to <8 x i16>
18 %shl = shl nuw nsw <8 x i16> %zext, <i16 5, i16 5, i16 5, i16 5, i16 5, i16 5, i16 5, i16 5>
22 ; Don't fail with an assert due to an undef in the buildvector
23 define <8 x i16> @bar(<8 x i16> %a, <8 x i16> %b) {
26 %icmp = icmp eq <8 x i16> %a, %b
27 %zext = zext <8 x i1> %icmp to <8 x i16>
28 %shl = shl nuw nsw <8 x i16> %zext, <i16 5, i16 undef, i16 5, i16 5, i16 5, i16 5, i16 5, i16 5>