Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <rth@dot.cygnus.com>
To: Kazushige Goto <goto@statabo.rim.or.jp>, axp-list@redhat.com
Subject: Re: On Alpha, SQRT slows down after RH5.1 upgrade
Date: Thu, 25 Jun 1998 09:04:44 -0700	[thread overview]
Message-ID: <19980625090444.B3320@dot.cygnus.com> (raw)
In-Reply-To: <19980625224056Z.goto@statabo.rim.or.jp>; from Kazushige Goto on Thu, Jun 25, 1998 at 10:40:56PM +0900

On Thu, Jun 25, 1998 at 10:40:56PM +0900, Kazushige Goto wrote:
> 	mult/su	$f16, $f12, $f11		# .. fm : $f11 = x * 0.5
> 	trapb					# avoid under flow SIG_FPE

Surely registers can be reordered to not stall 3 clocks
waiting for the multiply...

> 	mult/su	$f11, $f13, $f10	# fm    : $f10 = (x * 0.5) * y
> 	mult	$f10, $f13, $f10	# fm    : $f10 = ((x * 0.5) * y) * y
> 	subt	$f15, $f10, $f1		# fa    : $f1 = (1.5 - 0.5*x*y*y)
> 	mult	$f13, $f1, $f13         # fm    : yp = y*(1.5 - 0.5*x*y*y)
>  	mult/su	$f11, $f13, $f1		# fm    : $f11 = x * 0.5 * yp
> 	mult	$f1,  $f13, $f11	# fm    : $f11 = (x * 0.5 * yp) * yp

You need to care for the trap shadow, don't you?  Or do we
get away with this because the result is used the next insn?


r~


  reply	other threads:[~1998-06-25 16:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-20 21:16 On Alpha, SQRT slows down after RH5.1 upgrade edhall
1998-06-22  7:55 ` Ian Grant
1998-06-23  6:33   ` edhall
1998-06-23 22:03     ` Richard Henderson
1998-06-25 13:40       ` Kazushige Goto
1998-06-25 16:04         ` Richard Henderson [this message]
1998-06-26 12:47           ` Kazushige Goto
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