public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/29401]  New: [regression] missed-optimization (in unneeded code elimination)
@ 2006-10-09 12:52 Petr dot Salinger at seznam dot cz
  2006-10-09 12:57 ` [Bug target/29401] " pluto at agmk dot net
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Petr dot Salinger at seznam dot cz @ 2006-10-09 12:52 UTC (permalink / raw)
  To: gcc-bugs

Hi.

There is a regression on i386 platforms.


int f(int a, int b)
{return (((long long) a) * b) >> 15;}

The gcc 4.0/4.1 generates with "-O3 -fomit-frame-pointer"

        movl    8(%esp), %eax
        imull   4(%esp)
        shrdl   $15, %edx, %eax
        sarl    $15, %edx
        ret

While gcc-3.3/3.4 generates equal and faster

        movl    8(%esp), %eax
        imull   4(%esp)
        shrdl   $15, %edx, %eax
        ret


-- 
           Summary: [regression] missed-optimization (in unneeded code
                    elimination)
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Petr dot Salinger at seznam dot cz
  GCC host triplet: i486


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


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

end of thread, other threads:[~2009-03-30 19:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-09 12:52 [Bug target/29401] New: [regression] missed-optimization (in unneeded code elimination) Petr dot Salinger at seznam dot cz
2006-10-09 12:57 ` [Bug target/29401] " pluto at agmk dot net
2006-10-09 12:59 ` pluto at agmk dot net
2006-10-09 14:58 ` [Bug target/29401] [4.0/4.1/4.2 Regression] " rguenth at gcc dot gnu dot org
2006-10-15 21:19 ` mmitchel at gcc dot gnu dot org
2006-10-15 22:20 ` hubicka at ucw dot cz
2007-02-03 20:34 ` [Bug target/29401] [4.0/4.1/4.2/4.3 " gdr at gcc dot gnu dot org
2007-02-03 21:01 ` pinskia at gcc dot gnu dot org
2007-02-14  9:18 ` mmitchel at gcc dot gnu dot org
2007-06-18  5:31 ` [Bug target/29401] [4.0/4.1/4.2 " pinskia at gcc dot gnu dot org
2008-07-04 21:37 ` [Bug target/29401] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-30 19:39 ` jsm28 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).