<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:swalk@marvell.com" title="Steve Walk <swalk@marvell.com>"> <span class="fn">Steve Walk</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Recognize horizontal add patterns."
href="https://bugs.llvm.org/show_bug.cgi?id=20035">bug 20035</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;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WORKSFORME
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>swalk@marvell.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Recognize horizontal add patterns."
href="https://bugs.llvm.org/show_bug.cgi?id=20035#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Recognize horizontal add patterns."
href="https://bugs.llvm.org/show_bug.cgi?id=20035">bug 20035</a>
from <span class="vcard"><a class="email" href="mailto:swalk@marvell.com" title="Steve Walk <swalk@marvell.com>"> <span class="fn">Steve Walk</span></a>
</span></b>
<pre>This appears to have been fixed since the last time
this issue has been investigated. Here are the results
with a relatively recent build of clang.
swalk@sbr2s-76:~$ uname -a
Linux sbr2s-76 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:36:04 UTC 2019
aarch64 aarch64 aarch64 GNU/Linux
clang --version
clang version 9.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
7c5c0c9fe59b77e628024dec48b9db1f36f41c15)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/swalk/llvm-project/build/bin
swalk@sbr2s-76:~$ cat 20035.c
#include <arm_neon.h>
unsigned hadd(uint32x4_t a) {
return a[0] + a[1] + a[2] + a[3];
}
swalk@sbr2s-76:~$ which clang
/home/swalk/llvm-project/build/bin/clang
swalk@sbr2s-76:~$ clang -S -O3 20035.c
swalk@sbr2s-76:~$ cat 20035.s
.text
.file "20035.c"
.globl hadd // -- Begin function hadd
.p2align 2
.type hadd,@function
hadd: // @hadd
// %bb.0: // %entry
addv s0, v0.4s
fmov w0, s0
ret
.Lfunc_end0:
.size hadd, .Lfunc_end0-hadd
// -- End function
.ident "clang version 9.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
7c5c0c9fe59b77e628024dec48b9db1f36f41c15)"
.section ".note.GNU-stack","",@progbits
.addrsig</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>