mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
6d8c39b760
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268094 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
582 B
LLVM
15 lines
582 B
LLVM
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -mattr=+avx2 < %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: {{^}}trunc_shl_7_v4i32_v4i64:
|
|
; CHECK: vpshufd $136, (%rsi), %ymm0
|
|
; CHECK: vpermq $236, %ymm0, %ymm0
|
|
; CHECK: vpslld $7, %xmm0, %xmm0
|
|
; CHECK: vmovdqa %xmm0, (%rdi)
|
|
define void @trunc_shl_7_v4i32_v4i64(<4 x i32> addrspace(1)* %out, <4 x i64> addrspace(1)* %in) {
|
|
%val = load <4 x i64>, <4 x i64> addrspace(1)* %in
|
|
%shl = shl <4 x i64> %val, <i64 7, i64 7, i64 7, i64 7>
|
|
%trunc = trunc <4 x i64> %shl to <4 x i32>
|
|
store <4 x i32> %trunc, <4 x i32> addrspace(1)* %out
|
|
ret void
|
|
}
|