public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/29274]  New: 4.1, 4.2 (possibly 4.0?) not using mulsidi3
@ 2006-09-28 16:43 eplondke at gmail dot com
  2009-03-31 19:46 ` [Bug middle-end/29274] [4.3/4.4/4.5 Regression] " jsm28 at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: eplondke at gmail dot com @ 2006-09-28 16:43 UTC (permalink / raw)
  To: gcc-bugs

GCC 4.x tree optimization decides to put int values into long long int
temporaries.  When RTL expansion comes around, the expander sees only a DImode
multiply and so generates three SImode multiplies to deal with the problem.

GCC 3.x sees that the source values are SImode and uses mulsidi3 to generate
32x32->64 multiplies, which are much more efficient.  It also picks up the
accumulation.

(using -O3 for all compilations)

GCC 3.4 has an 84-byte stack frame, and a body of 372 instructions.
GCC 4.1 has a 1416-byte stack frame, and a body of 1668 instructions.
GCC 4.2 has a 1320-byte stack frame, and a body of 1565 instructions.


-- 
           Summary: 4.1, 4.2 (possibly 4.0?) not using mulsidi3
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eplondke at gmail dot com
  GCC host triplet: x86_64-suse-linux
GCC target triplet: arm-unkown-elf


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


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

end of thread, other threads:[~2011-06-28 11:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-29274-4@http.gcc.gnu.org/bugzilla/>
2011-06-27 12:12 ` [Bug middle-end/29274] [4.3/4.4/4.5 Regression] not using mulsidi3 rguenth at gcc dot gnu.org
2011-06-27 16:20 ` [Bug middle-end/29274] [4.4/4.5 " bernds at gcc dot gnu.org
2011-06-28 11:24 ` rguenth at gcc dot gnu.org
2006-09-28 16:43 [Bug c/29274] New: 4.1, 4.2 (possibly 4.0?) " eplondke at gmail dot com
2009-03-31 19:46 ` [Bug middle-end/29274] [4.3/4.4/4.5 Regression] " jsm28 at gcc dot gnu dot org
2009-08-04 12:41 ` rguenth at gcc dot gnu dot org
2009-08-26 15:50 ` froydnj at gcc dot gnu dot org
2009-08-26 18:35 ` rguenth at gcc dot gnu dot org
2009-12-29 23:21 ` ramana at gcc dot gnu dot org
2010-04-22 10:12 ` rguenth at gcc dot gnu dot org
2010-04-22 11:26 ` bernds at gcc dot gnu dot org
2010-05-22 18:24 ` rguenth at gcc dot gnu dot 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).