This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/50135] New: Loop optimization.


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

             Bug #: 50135
           Summary: Loop optimization.
    Classification: Unclassified
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: bratsinot@gmail.com


May be single-cycle should translate that:
C code:
for(unsigned int i=0; i<123456; i++)
or
for(unsigned int i=123456; i>0; i--)

Assembler code:
movq 123456, %rcx
L0:
   <some code there>
   loop LO


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]