public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/65375] New: poor codegen for ld[234]/st[234]
@ 2015-03-10  8:15 kugan at gcc dot gnu.org
  2015-03-10  8:16 ` [Bug target/65375] " kugan at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: kugan at gcc dot gnu.org @ 2015-03-10  8:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65375

            Bug ID: 65375
           Summary: poor codegen for ld[234]/st[234]
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kugan at gcc dot gnu.org

#include <arm_neon.h>
void hello_vst2(float* fout, float *fin)
{
float32x4x2_t a;
a = vld2q_f32 (fin);
vst2q_f32 (fout, a);
}


with aarch64-none-linux-gnu-gcc  -O2 -ffast-math -unsafe-math-optimisations
produces:

    .cpu generic+fp+simd
    .file    "neon.c"
    .text
    .align    2
    .p2align 3,,7
    .global    hello_vst2
    .type    hello_vst2, %function
hello_vst2:
    ld2    {v0.4s - v1.4s}, [x1]
    sub    sp, sp, #32
    umov    x1, v0.d[0]
    umov    x2, v0.d[1]
    str    q1, [sp, 16]
    mov    x5, x1
    stp    x5, x2, [sp]
    ld1    {v0.16b - v1.16b}, [sp]
    st2    {v0.4s - v1.4s}, [x0]
    add    sp, sp, 32
    ret
    .size    hello_vst2, .-hello_vst2
    .ident    "GCC: (GNU) 5.0.0 20150305 (experimental)"
    .section    .note.GNU-stack,"",%progbits


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-06-25 20:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-10  8:15 [Bug target/65375] New: poor codegen for ld[234]/st[234] kugan at gcc dot gnu.org
2015-03-10  8:16 ` [Bug target/65375] " kugan at gcc dot gnu.org
2015-03-10  8:18 ` kugan at gcc dot gnu.org
2015-03-10  8:19 ` kugan at gcc dot gnu.org
2015-03-10  8:32 ` pinskia at gcc dot gnu.org
2015-04-13 16:36 ` [Bug target/65375] aarch64: poor codegen for vld2q_f32 and vst2q_f32 mkuvyrkov at gcc dot gnu.org
2015-04-14  8:05 ` jgreenhalgh at gcc dot gnu.org
2015-04-14  8:06 ` mkuvyrkov at gcc dot gnu.org
2015-04-14  9:11 ` kugan at gcc dot gnu.org
2015-06-23 15:40 ` wilson at gcc dot gnu.org
2015-06-24  9:06 ` ramana at gcc dot gnu.org
2015-06-24  9:13 ` kugan at gcc dot gnu.org
2015-06-25 20:49 ` ramana at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).