This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: stepanov on i686-pc-linux-gnu
- To: Joe Buck <jbuck at racerx dot synopsys dot com>
- Subject: Re: stepanov on i686-pc-linux-gnu
- From: Andreas Schwab <schwab at suse dot de>
- Date: 28 May 2001 09:29:06 +0200
- Cc: rth at redhat dot com (Richard Henderson),jbuck at synopsys dot COM (Joe Buck), gcc at gcc dot gnu dot org
- References: <200105280238.TAA19097@racerx.synopsys.com>
Joe Buck <jbuck@racerx.synopsys.com> writes:
|> > On Fri, May 25, 2001 at 06:24:39PM -0700, Joe Buck wrote:
|> > > .L262:
|> > > faddl (%eax)
|> > > leal 8(%eax), %edx
|> > > cmpl %ecx, %edx
|> > > movl %edx, %eax
|> > > jne .L262
|> > > movl %edx, 8(%ebp)
|> > >
|> > > Ouch! The iterator is being retrieved and stored to memory.
|> >
|> > Well, sorta. That last move is outside the loop.
|>
|> Sigh. I'm so used to looking at Sparc assembly with the delayed
|> branch.
|>
|> Nevertheless, there are two memory accesses in the loop
No, there is only one. 'leal' only calculates the effective address,
without any memory access.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5