<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - New vector shuffle legality: turns movss (SSE2) or blendps (SSE4.2+) into shufps."
href="http://llvm.org/bugs/show_bug.cgi?id=22413">22413</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>New vector shuffle legality: turns movss (SSE2) or blendps (SSE4.2+) into shufps.
</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>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</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>ahmed.bougacha@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=13785" name="attach_13785" title="IR testcase">attachment 13785</a> <a href="attachment.cgi?id=13785&action=edit" title="IR testcase">[details]</a></span>
IR testcase
For the attached IR, we used to generate (for SSE2, but the AVX2 and SSE4.2
outputs are similarly interesting):
movss %xmm1, %xmm0
shufps $51, %xmm0, %xmm0 ## xmm0 = xmm0[3,0,3,0]
movaps %xmm0, (%rdi)
With the new all-shuffles-are-legal lowering, we now generate:
shufps $15, %xmm1, %xmm0 ## xmm0 = xmm0[3,3],xmm1[0,0]
shufps $216, %xmm0, %xmm0 ## xmm0 = xmm0[0,2,1,3]
movaps %xmm0, (%rdi)
The example is a bit harmless, so there's another, more interesting, one, in
the attached IR.</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>