1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=skx | FileCheck %s
4 define <8 x i1> @ham(i64 %arg) {
7 ; CHECK-NEXT: xorl %eax, %eax
8 ; CHECK-NEXT: testb $1, %dil
9 ; CHECK-NEXT: movl $255, %ecx
10 ; CHECK-NEXT: cmovel %eax, %ecx
11 ; CHECK-NEXT: kmovd %ecx, %k0
12 ; CHECK-NEXT: vpmovm2w %k0, %xmm0
14 %tmp = trunc i64 %arg to i1
15 %tmp1 = insertelement <8 x i1> undef, i1 %tmp, i32 0
16 %tmp2 = shufflevector <8 x i1> %tmp1, <8 x i1> undef, <8 x i32> zeroinitializer