public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/55941] New: [4.8 Regression] Strange copy of double (in struct) to stack
@ 2013-01-11 13:01 glisse at gcc dot gnu.org
  2013-01-11 14:44 ` [Bug target/55941] " jakub at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: glisse at gcc dot gnu.org @ 2013-01-11 13:01 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55941
           Summary: [4.8 Regression] Strange copy of double (in struct) to
                    stack
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: glisse@gcc.gnu.org
            Target: x86_64-linux-gnu


typedef struct A { double a, b; } A;
double f(A x,double y){return x.a+y;}

generates with gcc -Ofast -S:

    addsd    %xmm0, %xmm2
    movsd    %xmm0, -8(%rsp)
    movapd    %xmm2, %xmm0
    ret

I don't understand what that movsd is doing there?

Note that gcc-4.7 generates the expected:

    addsd    %xmm2, %xmm0
    ret


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

end of thread, other threads:[~2013-02-15  8:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-11 13:01 [Bug target/55941] New: [4.8 Regression] Strange copy of double (in struct) to stack glisse at gcc dot gnu.org
2013-01-11 14:44 ` [Bug target/55941] " jakub at gcc dot gnu.org
2013-01-11 15:01 ` jakub at gcc dot gnu.org
2013-02-08 15:44 ` rguenth at gcc dot gnu.org
2013-02-14 20:41 ` rth at gcc dot gnu.org
2013-02-15  1:41 ` rth at gcc dot gnu.org
2013-02-15  6:07 ` rth at gcc dot gnu.org
2013-02-15  8:55 ` ubizjak at gmail dot com

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).