From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,86ddf310e61763da X-Google-Attributes: gid1164f8,public From: pmontgom@math.orst.edu (Peter Montgomery) Subject: Re: ADDL/V instruction and friends Date: 1996/10/16 Message-ID: <5426rd$ime@news.orst.edu>#1/1 X-Deja-AN: 189772198 references: organization: Oregon State University Math Department newsgroups: comp.sys.dec In article 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