https://bugs.llvm.org/show_bug.cgi?id=20035

Steve Walk <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME
                 CC|                            |[email protected]

--- Comment #4 from Steve Walk <[email protected]> ---
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 (https://github.com/llvm/llvm-project.git
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 (https://github.com/llvm/llvm-project.git
7c5c0c9fe59b77e628024dec48b9db1f36f41c15)"
        .section        ".note.GNU-stack","",@progbits
        .addrsig

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to