mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-13 07:50:41 +00:00
AVX-512: added a lit test for truncate operation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
143df776e2
commit
9ff2b33674
@ -133,3 +133,16 @@ define <16 x i16> @trunc_v16i32_to_v16i16(<16 x i32> %x) {
|
|||||||
%1 = trunc <16 x i32> %x to <16 x i16>
|
%1 = trunc <16 x i32> %x to <16 x i16>
|
||||||
ret <16 x i16> %1
|
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
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user