Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <rth@dot.cygnus.com>
To: Quant-X Alpha Linux Support <stefan@sime.com>, axp-list@redhat.com
Subject: Re: Function call oddity
Date: Sun, 12 Jul 1998 21:43:44 -0700	[thread overview]
Message-ID: <19980712214344.A19657@dot.cygnus.com> (raw)
In-Reply-To: <199807130106.DAA03486@stefan.sime.com>; from Quant-X Alpha Linux Support on Mon, Jul 13, 1998 at 03:06:31AM +0200

On Mon, Jul 13, 1998 at 03:06:31AM +0200, Quant-X Alpha Linux Support wrote:
> This is !!!slower!!! than
> 
> 	.align 5
> $L4:
> 	nop
> 	jsr $26,a
> 	ldgp $29,0($26)
> 	bis $9,$9,$1
> 	cmple $1,$10,$1
> 	addl $9,1,$9
> 	bne $1,$L4

Ok, so what.  That's not the real problem.  The real problem is that
extra bis.  Better would be

	ldq	$27,a($29)	e0
 	jsr	$26,($27),a	e1
	ldah	$29,0($26)	e0
 	cmple	$9,$10,$1	.. e1
	lda	$29,0($29)	e0
 	addl	$9,1,$9		.. e1
 	bne	$1,$L4		e1

Which is two cycles less than with your nop.  I missed whatever message
had the example code, so I can't figure out what the compiler might 
think it is doing.


r~
 
PS.

> I hope Richard Henderson reads this, too ;-}}

Better than hoping would be to actually send it to me.  I do little more
than scan the lists these days.


  reply	other threads:[~1998-07-13  4:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-12 18:56 Function call oddity Dave Gilbert
1998-07-13  1:06 ` Quant-X Alpha Linux Support
1998-07-13  4:43   ` Richard Henderson [this message]
1998-07-13  5:32     ` Quant-X Alpha Linux Support
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox