From: pmontgom@math.orst.edu (Peter Montgomery)
Subject: Re: ADDL/V instruction and friends
Date: 1996/10/16 [thread overview]
Message-ID: <5426rd$ime@news.orst.edu> (raw)
In-Reply-To: DzCC4z.AFF@world.std.com
In article <DzCC4z.AFF@world.std.com> craigp@world.std.com
(Craig Partridge) writes:
> I was reading through the 21164 hardware and discovered a set of
>instructions with a /V in the name (ADDL/V, ADDQ/V, MULQ/V, etc).
>What does the /V stand for (it isn't anywhere in my Alpha Architecture
>Reference Manual) and what does it cause the instructions to do differently
>(other than load a different op code :-)).
My Alpha Architecture Reference Manual (paperback, 1992)
lists ADDL on p. 4-23, section 4.4.1. Under Qualifiers, it lists
Integer Overflow Enable (/V)
I haven't tried ADDL/V, but I suspect it causes an integer overflow
exception if the sum of two positive values exceeds 2^31-1,
or the sum of two negative values is less than -2^31.
Some languages, such as Ada and LISP, require overflow detection.
I like unsigned arithmetic (modulo 2^32) and don't want an add to abort.
--
Peter L. Montgomery Internet: pmontgom@math.orst.edu
One party's equation:
PRESIDENTIAL PEOPLE = DIET PINEAPPLE ROLES
prev parent reply other threads:[~1996-10-16 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-15 4:00 ADDL/V instruction and friends Craig Partridge
1996-10-16 4:00 ` Peter Montgomery [this message]
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