<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:llvm-dev@redking.me.uk" title="Simon Pilgrim <llvm-dev@redking.me.uk>"> <span class="fn">Simon Pilgrim</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Improve lshr on <16 x i8> with variable shift amounts on X86"
href="https://bugs.llvm.org/show_bug.cgi?id=34694">bug 34694</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Fixed By Commit(s)</td>
<td>
</td>
<td>340810, 340813
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Improve lshr on <16 x i8> with variable shift amounts on X86"
href="https://bugs.llvm.org/show_bug.cgi?id=34694#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Improve lshr on <16 x i8> with variable shift amounts on X86"
href="https://bugs.llvm.org/show_bug.cgi?id=34694">bug 34694</a>
from <span class="vcard"><a class="email" href="mailto:llvm-dev@redking.me.uk" title="Simon Pilgrim <llvm-dev@redking.me.uk>"> <span class="fn">Simon Pilgrim</span></a>
</span></b>
<pre>Fixed in trunk rL340810 (preliminary), rL340813.
shift_vector_uniform:
movzbl %dil, %eax
movd %eax, %xmm1
psrlw %xmm1, %xmm0
pcmpeqd %xmm2, %xmm2
psrlw %xmm1, %xmm2
psrlw $8, %xmm2
punpcklbw %xmm2, %xmm2 # xmm2 =
xmm2[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
pshuflw $224, %xmm2, %xmm1 # xmm1 = xmm2[0,0,2,3,4,5,6,7]
pshufd $0, %xmm1, %xmm1 # xmm1 = xmm1[0,0,0,0]
pand %xmm1, %xmm0
retq</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>