public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/19597] New: avr-gcc 4.0, multiplication by constant, very long code
@ 2005-01-23 22:55 dmixm at marine dot febras dot ru
  2005-01-23 23:02 ` [Bug middle-end/19597] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: dmixm at marine dot febras dot ru @ 2005-01-23 22:55 UTC (permalink / raw)
  To: gcc-bugs

avr-gcc 4.0 (20050116) replaces multiplication by a constant to a combination of more simple 
operations. Thus it does not pay attention to efficiency of such replacement.  
 
For example: 
	int foo (int x) { return 24011 * x; } 
produce 49 words (-mmcu=atmega8 -Os). 
Older GCC branches -- only 11 words in this case.

-- 
           Summary: avr-gcc 4.0, multiplication by constant, very long code
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dmixm at marine dot febras dot ru
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-02-09 14:49 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-23 22:55 [Bug rtl-optimization/19597] New: avr-gcc 4.0, multiplication by constant, very long code dmixm at marine dot febras dot ru
2005-01-23 23:02 ` [Bug middle-end/19597] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-23 23:56 ` giovannibajo at libero dot it
2005-01-24  0:49 ` bernie at develer dot com
2005-01-24  2:54 ` roger at eyesopen dot com
2005-01-24  8:17 ` [Bug target/19597] " pinskia at gcc dot gnu dot org
2005-01-24  8:56 ` giovannibajo at libero dot it
2005-01-24  9:24 ` marekm at amelek dot gda dot pl
2005-01-24 10:28 ` bernie at develer dot com
2005-01-24 13:16 ` bernie at develer dot com
2005-01-25 20:33 ` schlie at comcast dot net
2005-01-25 21:23 ` roger at eyesopen dot com
2005-01-25 23:20 ` schlie at comcast dot net
2005-02-09 12:44 ` pinskia at gcc dot gnu dot org
2005-02-09 13:06 ` pinskia at gcc dot gnu dot org
2005-02-09 13:09 ` pinskia at gcc dot gnu dot org
2005-02-09 20:09 ` cvs-commit at gcc dot gnu dot org
2005-02-09 20:13 ` pinskia 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).