<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 lowering produces an insertf128 + blend instead of a single insertf128"
href="http://llvm.org/bugs/show_bug.cgi?id=21138">21138</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>New vector shuffle lowering produces an insertf128 + blend instead of a single insertf128
</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>qcolombet@apple.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=13122" name="attach_13122" title="IR to reproduce the problem.">attachment 13122</a> <a href="attachment.cgi?id=13122&action=edit" title="IR to reproduce the problem.">[details]</a></span>
IR to reproduce the problem.
To reproduce:
llc -mattr=+avx -x86-experimental-vector-shuffle-lowering=true
avx_insertf_blendps.ll -o new.s
llc -mattr=+avx -x86-experimental-vector-shuffle-lowering=false
avx_insertf_blendps.ll -o old.s
diff -U 10 old.s new.s
_foo: ## @foo
.cfi_startproc
## BB#0: ## %for.body545
vextractf128 $1, %ymm1, %xmm2
vshufps $-35, %xmm2, %xmm1, %xmm1 ## xmm1 = xmm1[1,3],xmm2[1,3]
+ vinsertf128 $1, %xmm1, %ymm0, %ymm1
vextractf128 $1, %ymm0, %xmm2
vshufps $-35, %xmm2, %xmm0, %xmm0 ## xmm0 = xmm0[1,3],xmm2[1,3]
- vinsertf128 $1, %xmm1, %ymm0, %ymm0
+ vblendps $-16, %ymm1, %ymm0, %ymm0 ## ymm0 =
ymm0[0,1,2,3],ymm1[4,5,6,7]
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>