Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
Subject: Re: Multiply Overflow - when to use UMULH
Date: Sun, 24 Nov 1996 07:51:07 -0500	[thread overview]
Message-ID: <3a42a0b405f20755c92b7b65535b6363.axp-list@archive.invalid> (raw)

Uncle George wrote:
 
 I try to mult two (possibly) 48 bit integers. Sometimes these nums will
 overflow the 64 bit reg. I'd like to know if there is an easy way
 to get at the overflow bit.
 >From reading the asm manual, you have to wait for the pipeline to
 clear, cause an exception, then get the status/overflow bit.
 
 1) whis is faster ?
         umul, then umulh ( forget the exception fault )
 2) a) umul ( no exception to process )
    b) umul -> exception -> do umulh ( only when truely needed )
 
 I have no timeings for instruction sets. I have no timeings for
 exception
 faults.
 
 I'd really like to test an overflow bit that did not involve an
 exception, but that does not seem to be the case with alpha's ( maybe
 all risc's )
 gat

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1996-11-24 12:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-24 12:51 Uncle George [this message]
     [not found] <329844BB.670E@voicenet.com>
1996-11-24 17:07 ` Multiply Overflow - when to use UMULH Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1996-11-25  1:24 Uncle George
     [not found] <3298F541.3304@voicenet.com>
1996-11-26 20:05 ` Richard Henderson
1996-11-26 20:55 David Mosberger
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