AVX-512: fixed algorithm of building vectors of i1 elements
[oota-llvm.git] / test / CodeGen / X86 / avx512-trunc-ext.ll
index 560d9680fc1900d9445344043d3f6dd2da70273a..bb36a1396df52009e995541c9756d822c5079bf9 100644 (file)
@@ -156,10 +156,9 @@ define <16 x i16> @trunc_v16i32_to_v16i16(<16 x i32> %x) {
 }
 
 ; CHECK-LABEL: trunc_i32_to_i1
-; CHECK: testb
-; CHECK: setne
-; CKECK: orl
-; CHECK: ret
+; CHECK: movw    $-4, %ax
+; CHECK: kmovw   %eax, %k1
+; CKECK: korw
 define i16 @trunc_i32_to_i1(i32 %a) {
   %a_i = trunc i32 %a to i1
   %maskv = insertelement <16 x i1> <i1 true, i1 false, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true>, i1 %a_i, i32 0