[llvm] r201763 - AVX-512: added a lit test for truncate operation
Elena Demikhovsky
elena.demikhovsky at intel.com
Wed Feb 19 23:34:13 PST 2014
Author: delena
Date: Thu Feb 20 01:34:13 2014
New Revision: 201763
URL: http://llvm.org/viewvc/llvm-project?rev=201763&view=rev
Log:
AVX-512: added a lit test for truncate operation
Modified:
llvm/trunk/test/CodeGen/X86/avx512-trunc-ext.ll
Modified: llvm/trunk/test/CodeGen/X86/avx512-trunc-ext.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx512-trunc-ext.ll?rev=201763&r1=201762&r2=201763&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/avx512-trunc-ext.ll (original)
+++ llvm/trunk/test/CodeGen/X86/avx512-trunc-ext.ll Thu Feb 20 01:34:13 2014
@@ -133,3 +133,16 @@ define <16 x i16> @trunc_v16i32_to_v16i1
%1 = trunc <16 x i32> %x to <16 x i16>
ret <16 x i16> %1
}
+
+; CHECK-LABEL: trunc_i32_to_i1
+; CHECK: andl
+; CHECK: kmov
+; CHECK: kortest
+; CKECK: orl
+; CHECK: ret
+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
+ %res = bitcast <16 x i1> %maskv to i16
+ ret i16 %res
+}
More information about the llvm-commits
mailing list