1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -fast-isel -mtriple=i686-unknown -mattr=+avx512cd | FileCheck %s
3 ; RUN: llc < %s -fast-isel -mtriple=x86_64-unknown -mattr=+avx512cd | FileCheck %s
5 define <8 x i64> @test_mm512_broadcastmb_epi64(<8 x i64> %a, <8 x i64> %b) {
6 ; CHECK-LABEL: test_mm512_broadcastmb_epi64:
7 ; CHECK: # %bb.0: # %entry
8 ; CHECK-NEXT: vpcmpeqq %zmm1, %zmm0, %k0
9 ; CHECK-NEXT: vpbroadcastmb2q %k0, %zmm0
10 ; CHECK-NEXT: ret{{[l|q]}}
12 %0 = icmp eq <8 x i64> %a, %b
13 %1 = bitcast <8 x i1> %0 to i8
14 %conv.i = zext i8 %1 to i64
15 %vecinit.i.i = insertelement <8 x i64> undef, i64 %conv.i, i32 0
16 %vecinit7.i.i = shufflevector <8 x i64> %vecinit.i.i, <8 x i64> undef, <8 x i32> zeroinitializer
17 ret <8 x i64> %vecinit7.i.i
20 define <8 x i64> @test_mm512_broadcastmw_epi32(<8 x i64> %a, <8 x i64> %b) {
21 ; CHECK-LABEL: test_mm512_broadcastmw_epi32:
22 ; CHECK: # %bb.0: # %entry
23 ; CHECK-NEXT: vpcmpeqd %zmm1, %zmm0, %k0
24 ; CHECK-NEXT: vpbroadcastmw2d %k0, %zmm0
25 ; CHECK-NEXT: ret{{[l|q]}}
27 %0 = bitcast <8 x i64> %a to <16 x i32>
28 %1 = bitcast <8 x i64> %b to <16 x i32>
29 %2 = icmp eq <16 x i32> %0, %1
30 %3 = bitcast <16 x i1> %2 to i16
31 %conv.i = zext i16 %3 to i32
32 %vecinit.i.i = insertelement <16 x i32> undef, i32 %conv.i, i32 0
33 %vecinit15.i.i = shufflevector <16 x i32> %vecinit.i.i, <16 x i32> undef, <16 x i32> zeroinitializer
34 %4 = bitcast <16 x i32> %vecinit15.i.i to <8 x i64>