public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16356] New: Failure to use count register
@ 2004-07-04  6:15 anton at samba dot org
  2004-07-04  7:07 ` [Bug rtl-optimization/16356] Failure to use count register (branch on count register) pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: anton at samba dot org @ 2004-07-04  6:15 UTC (permalink / raw)
  To: gcc-bugs

I was retesting bug 14886 on 3.5 cvs (20040703) and noticed the count register
is not being used in 64bit:

float bar;

void f1 (void)
{
  int i;
  for (i = 0; i < 500; i++)
    __asm__ __volatile__ ("# %0" : : "f" (i * bar));
}

gives:

.L2:
        rldicl. 0,11,0,53
        sradi 9,11,53
        addi 9,9,1
        cmpldi 7,9,2
        beq- 0,.L3
        xor 0,11,0
        blt- 7,.L3
        ori 11,0,2048
.L3:
        lfs 13,0(10)
        std 11,-16(1)
        lfd 12,-16(1)
        fcfid 12,12
        frsp 0,12
        fmuls 0,0,13
#APP
        # 0
#NO_APP
        addi 0,11,1
        extsw 11,0
        cmpwi 7,11,499
        ble+ 7,.L2

-- 
           Summary: Failure to use count register
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anton at samba dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc64-unknown-linux-gnu


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


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

end of thread, other threads:[~2004-11-26  4:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-04  6:15 [Bug c/16356] New: Failure to use count register anton at samba dot org
2004-07-04  7:07 ` [Bug rtl-optimization/16356] Failure to use count register (branch on count register) pinskia at gcc dot gnu dot org
2004-07-04 19:42 ` pinskia at gcc dot gnu dot org
2004-07-06  1:23 ` rakdver at gcc dot gnu dot org
2004-11-25 14:08 ` amodra at bigpond dot net dot au
2004-11-26  4:38 ` cvs-commit at gcc dot gnu dot org
2004-11-26  4:39 ` cvs-commit at gcc dot gnu dot org
2004-11-26  4:46 ` amodra at bigpond dot net dot au
2004-11-26  4:48 ` 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).