From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 511 invoked from network); 25 Jun 1998 16:03:00 -0000 Received: from dot.cygnus.com (205.180.230.224) by mail2.redhat.com with SMTP; 25 Jun 1998 16:03:00 -0000 Received: (from rth@localhost) by dot.cygnus.com (8.8.5/8.8.5) id JAA03392; Thu, 25 Jun 1998 09:04:59 -0700 Message-ID: <19980625090444.B3320@dot.cygnus.com> Date: Thu, 25 Jun 1998 09:04:44 -0700 From: Richard Henderson To: Kazushige Goto , axp-list@redhat.com Subject: Re: On Alpha, SQRT slows down after RH5.1 upgrade Reply-To: Richard Henderson References: <19980623150341.B16133@dot.cygnus.com> <19980625224056Z.goto@statabo.rim.or.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i 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~