[llvm-bugs] [Bug 20035] Recognize horizontal add patterns.
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jun 21 12:33:10 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=20035
Steve Walk <swalk at marvell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME
CC| |swalk at marvell.com
--- Comment #4 from Steve Walk <swalk at marvell.com> ---
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 at 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 (https://github.com/llvm/llvm-project.git
7c5c0c9fe59b77e628024dec48b9db1f36f41c15)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/swalk/llvm-project/build/bin
swalk at sbr2s-76:~$ cat 20035.c
#include <arm_neon.h>
unsigned hadd(uint32x4_t a) {
return a[0] + a[1] + a[2] + a[3];
}
swalk at sbr2s-76:~$ which clang
/home/swalk/llvm-project/build/bin/clang
swalk at sbr2s-76:~$ clang -S -O3 20035.c
swalk at sbr2s-76:~$ cat 20035.s
.text
.file "20035.c"
.globl hadd // -- Begin function hadd
.p2align 2
.type hadd, at 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 (https://github.com/llvm/llvm-project.git
7c5c0c9fe59b77e628024dec48b9db1f36f41c15)"
.section ".note.GNU-stack","", at progbits
.addrsig
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190621/e0e401f4/attachment.html>
More information about the llvm-bugs
mailing list