This is the mail archive of the gcc@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]

Re: stepanov on i686-pc-linux-gnu


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


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