This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/50728] Inefficient vector loads from aggregates passed by value


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50728

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-14 13:10:06 UTC ---
Other testcase:

typedef float Value;
struct A {
  Value a[16 / sizeof (Value)];
} __attribute__ ((aligned(16)));

Value get(A a)
{
  return a.a[0];
}

_Z3get1A:
.LFB0:
        .cfi_startproc
        movq    %xmm0, -24(%rsp)
        movss   -24(%rsp), %xmm0
        ret

instead of plain ret.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]