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
  2006-09-28 16:46 ` [Bug c/29274] " eplondke at gmail dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ 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] 16+ messages in thread

end of thread, other threads:[~2010-05-22 18:18 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-28 16:43 [Bug c/29274] New: 4.1, 4.2 (possibly 4.0?) not using mulsidi3 eplondke at gmail dot com
2006-09-28 16:46 ` [Bug c/29274] " eplondke at gmail dot com
2006-09-28 16:46 ` eplondke at gmail dot com
2009-03-27 17:12 ` [Bug target/29274] " ramana at gcc dot gnu dot org
2009-03-27 17:26 ` [Bug middle-end/29274] [4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
2009-03-27 17:27 ` rguenth at gcc dot gnu dot org
2009-03-30 14:44 ` [Bug middle-end/29274] [4.2/4.3/4.4/4.5 " rguenth at gcc dot gnu dot org
2009-03-31 19:46 ` [Bug middle-end/29274] [4.3/4.4/4.5 " 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  9:31 ` [Bug middle-end/29274] [4.3/4.4/4.5/4.6 " bernds at gcc dot gnu dot org
2010-04-22 10:12 ` [Bug middle-end/29274] [4.3/4.4/4.5 " 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).