[llvm-bugs] [Bug 31534] New: AVX-512 No optimal lowering for mask_blend intrinsics.
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 4 06:04:51 PST 2017
https://llvm.org/bugs/show_bug.cgi?id=31534
Bug ID: 31534
Summary: AVX-512 No optimal lowering for mask_blend
intrinsics.
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: igor.breger at intel.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
In case mask is constant mask_blend intrinsic generate not optimal sequence.
It should generate vpblendm instruction.
__m512i test_mm512_mask_blend_epi32(__m512i __A, __m512i __W) {
return _mm512_mask_blend_epi32(0xaaaa,__A,__W);
}
define <8 x i64> @test_mm512_mask_blend_epi32(<8 x i64> %__A, <8 x i64> %__W)
local_unnamed_addr #0 {
entry:
%0 = bitcast <8 x i64> %__W to <16 x i32>
%1 = bitcast <8 x i64> %__A to <16 x i32>
%2 = shufflevector <16 x i32> %0, <16 x i32> %1, <16 x i32> <i32 16, i32 1,
i32 18, i32 3, i32 20, i32 5, i32 22, i32 7, i32 24, i32 9, i32 26, i32 11, i32
28, i32 13, i32 30, i32 15>
%3 = bitcast <16 x i32> %2 to <8 x i64>
ret <8 x i64> %3
}
# BB#0: # %entry
vmovdqa32 .LCPI2_0(%rip), %zmm2 # zmm2 =
[0,17,2,19,4,21,6,23,8,25,10,27,12,29,14,31]
vpermt2d %zmm1, %zmm2, %zmm0
retq
.Lfunc_end2:
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170104/cc8dae33/attachment-0001.html>
More information about the llvm-bugs
mailing list