<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - AVX512: 'shuffle <32 x i16> v0, v1, <8 x i32> Mask' is scalarized"
href="https://bugs.llvm.org/show_bug.cgi?id=32967">32967</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>AVX512: 'shuffle <32 x i16> v0, v1, <8 x i32> Mask' is scalarized
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zvi.rackover@intel.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>For the following function
define <8 x i16> @shuffle_odd_stride4(<32 x i16> %v) {
%shuffle = shufflevector <32 x i16> %v, <32 x i16> undef, <8 x i32> <i32
1,i32 5,i32 9,i32 13,i32 17,i32 21,i32 25,i32 29>
ret <8 x i16> %shuffle
}
llc -mcpu=skx gives:
vpextrw $5, %xmm0, %eax
vpextrw $1, %xmm0, %ecx
vmovd %ecx, %xmm1
vpinsrw $1, %eax, %xmm1, %xmm1
vextracti32x4 $1, %zmm0, %xmm2
vpextrw $1, %xmm2, %eax
vpinsrw $2, %eax, %xmm1, %xmm1
vpextrw $5, %xmm2, %eax
vpinsrw $3, %eax, %xmm1, %xmm1
vextracti32x4 $2, %zmm0, %xmm2
vpextrw $1, %xmm2, %eax
vpinsrw $4, %eax, %xmm1, %xmm1
vpblendw {{.*#+}} xmm1 = xmm1[0,1,2,3,4],xmm2[5],xmm1[6,7]
vextracti32x4 $3, %zmm0, %xmm0
vpextrw $1, %xmm0, %eax
vpinsrw $6, %eax, %xmm1, %xmm1
vpextrw $5, %xmm0, %eax
vpinsrw $7, %eax, %xmm1, %xmm0
The problem here seems to be more related to the ratio of
in_vec_len/out_vec_len=4 than the shuffle mask indices.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>