public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/47644] [avr] Optimisation regression in choosing registers
  2011-02-08 11:48 [Bug c/47644] New: [avr] Regression in choosing registers Kip.Hicit at gmail dot com
@ 2011-02-08 11:48 ` Kip.Hicit at gmail dot com
  2011-02-08 12:09 ` Kip.Hicit at gmail dot com
  2012-10-21 20:54 ` [Bug target/47644] " gjl at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: Kip.Hicit at gmail dot com @ 2011-02-08 11:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Ángel <Kip.Hicit at gmail dot com> 2011-02-08 11:47:46 UTC ---
Created attachment 23276
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23276
gcc 4.3.3 assembler


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

* [Bug c/47644] New: [avr] Regression in choosing registers
@ 2011-02-08 11:48 Kip.Hicit at gmail dot com
  2011-02-08 11:48 ` [Bug c/47644] [avr] Optimisation regression " Kip.Hicit at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kip.Hicit at gmail dot com @ 2011-02-08 11:48 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [avr] Regression in choosing registers
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Kip.Hicit@gmail.com


Created attachment 23275
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23275
Test case in C

Consider the following snippet compiled with -O3:

int lsl_short(int f) {
    return f << 1;
}

gcc 4.3.3 is copying the value from r25:r24 (first parameter) to r19:r18, then
moving back to r25:r24 (return value). Same for longs but with 4 registers.

Expected:
The lsl and rol should happen directly on r25:r24, just as they did in 4.2


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

* [Bug c/47644] [avr] Optimisation regression in choosing registers
  2011-02-08 11:48 [Bug c/47644] New: [avr] Regression in choosing registers Kip.Hicit at gmail dot com
  2011-02-08 11:48 ` [Bug c/47644] [avr] Optimisation regression " Kip.Hicit at gmail dot com
@ 2011-02-08 12:09 ` Kip.Hicit at gmail dot com
  2012-10-21 20:54 ` [Bug target/47644] " gjl at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: Kip.Hicit at gmail dot com @ 2011-02-08 12:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Ángel <Kip.Hicit at gmail dot com> 2011-02-08 11:48:37 UTC ---
Created attachment 23277
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23277
gcc 4.2 assembler


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

* [Bug target/47644] [avr] Optimisation regression in choosing registers
  2011-02-08 11:48 [Bug c/47644] New: [avr] Regression in choosing registers Kip.Hicit at gmail dot com
  2011-02-08 11:48 ` [Bug c/47644] [avr] Optimisation regression " Kip.Hicit at gmail dot com
  2011-02-08 12:09 ` Kip.Hicit at gmail dot com
@ 2012-10-21 20:54 ` gjl at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-10-21 20:54 UTC (permalink / raw)
  To: gcc-bugs


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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |gjl at gcc dot gnu.org
         Resolution|                            |DUPLICATE

--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-10-21 20:54:12 UTC ---
Duplicate of PR52278

*** This bug has been marked as a duplicate of bug 52278 ***


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

end of thread, other threads:[~2012-10-21 20:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-08 11:48 [Bug c/47644] New: [avr] Regression in choosing registers Kip.Hicit at gmail dot com
2011-02-08 11:48 ` [Bug c/47644] [avr] Optimisation regression " Kip.Hicit at gmail dot com
2011-02-08 12:09 ` Kip.Hicit at gmail dot com
2012-10-21 20:54 ` [Bug target/47644] " gjl at gcc dot gnu.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).