public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/61098] New: Poor code setting count register for large loops
@ 2014-05-07 14:59 amodra at gmail dot com
  2014-05-07 15:00 ` [Bug target/61098] " amodra at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: amodra at gmail dot com @ 2014-05-07 14:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61098
           Summary: Poor code setting count register for large loops
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amodra at gmail dot com

Seen on a for (i = 0; i < 100000000; i++) loop

    100003bc:   3d 20 05 f5     lis     r9,1525
    100003c0:   7d 29 03 a6     mtctr   r9
    100003c4:   7d 3e 1a 14     add     r9,r30,r3
    100003c8:   7d 49 02 a6     mfctr   r10
    100003cc:   61 4a e1 00     ori     r10,r10,57600
    100003d0:   7d 49 03 a6     mtctr   r10

Note the horrible mtctr, mfctr, mtctr


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

end of thread, other threads:[~2014-05-29  9:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-07 14:59 [Bug target/61098] New: Poor code setting count register for large loops amodra at gmail dot com
2014-05-07 15:00 ` [Bug target/61098] " amodra at gmail dot com
2014-05-07 15:03 ` amodra at gmail dot com
2014-05-26 13:10 ` amodra at gcc dot gnu.org
2014-05-29  9:23 ` amodra at gmail dot com

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).