This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16356] New: Failure to use count register
- From: "anton at samba dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2004 06:15:26 -0000
- Subject: [Bug c/16356] New: Failure to use count register
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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