1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc < %s -mtriple=x86_64-- -mcpu=x86-64-v4 | FileCheck %s
4 define void @f(ptr %0, <32 x i1> %1, i32 %2) nounwind {
7 ; CHECK-NEXT: vpsllw $7, %ymm0, %ymm0
8 ; CHECK-NEXT: vpmovb2m %ymm0, %k0
9 ; CHECK-NEXT: kshiftrd $3, %k0, %k1
10 ; CHECK-NEXT: kmovd %k1, %eax
11 ; CHECK-NEXT: vpbroadcastb %esi, %ymm0
12 ; CHECK-NEXT: vpcmpeqb {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %ymm0, %k1
13 ; CHECK-NEXT: vpmovm2b %k0, %ymm0
14 ; CHECK-NEXT: vpbroadcastb %eax, %ymm0 {%k1}
15 ; CHECK-NEXT: vpsllw $7, %ymm0, %ymm0
16 ; CHECK-NEXT: vpmovb2m %ymm0, %k0
17 ; CHECK-NEXT: kmovd %k0, (%rdi)
18 ; CHECK-NEXT: vzeroupper
20 %E = extractelement <32 x i1> %1, i32 3
21 %I = insertelement <32 x i1> %1, i1 %E, i32 %2
22 store <32 x i1> %I, ptr %0