<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 - Poor code generation from LLVM."
href="https://bugs.llvm.org/show_bug.cgi?id=27631">bug 27631</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></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Poor code generation from LLVM."
href="https://bugs.llvm.org/show_bug.cgi?id=27631#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Poor code generation from LLVM."
href="https://bugs.llvm.org/show_bug.cgi?id=27631">bug 27631</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.
By clang 4.0.0:
xorps %xmm0, %xmm0
.LBB0_1: # =>This Inner Loop Header: Depth=1
movaps %xmm0, 48(%rax)
movaps %xmm0, 32(%rax)
movaps %xmm0, 16(%rax)
movaps %xmm0, (%rax)
movd %ecx, %xmm1
pshufd $0, %xmm1, %xmm1 # xmm1 = xmm1[0,0,0,0]
movdqa %xmm1, 16(%rax)
movdqa %xmm1, (%rax)
incq %rcx
addq $64, %rax
cmpq $10000, %rcx # imm = 0x2710
jne .LBB0_1
retq
And clang 5.0.0/trunk:
xorps %xmm0, %xmm0
.LBB0_1: # =>This Inner Loop Header: Depth=1
movaps %xmm0, 48(%rax)
movaps %xmm0, 32(%rax)
movd %ecx, %xmm1
pshufd $0, %xmm1, %xmm1 # xmm1 = xmm1[0,0,0,0]
movdqa %xmm1, 16(%rax)
movdqa %xmm1, (%rax)
incq %rcx
addq $64, %rax
cmpq $10000, %rcx # imm = 0x2710
jne .LBB0_1
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>