Article View: comp.arch
Article #633Re: vector length CSR?
From: Anton Ertl
Date: Tue, 10 Nov 2026 21:15
Date: Tue, 10 Nov 2026 21:15
39 lines
3128 bytes
3128 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> writes:
>anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:
>> Mashey (and IIRC also Patterson) also discuss the technical background
>> behind the commonalities in RISCs, so while you may consider the way
>> that the criteria were derived to be circular, they are not
>> accidental.
>
>Don't leave out Mark Horowitz
Duckduckgo does not give me any papers, or web pages about RISC
definition when I ask it for "Mark Horowitz RISC", unlike for "John
Mashey RISC". Do you have a specific paper or web page in mind?
>Given {signed, Unsigned}×{Byte, halfword, word, doubleword} one has
>8 integer ADDs,
SPARC and Power have only one add instruction. With a load-store
architecture, you need only one, the full-width one. Only with
load-and-add instructions, you need to specify the width in the
addition, and whether you want the loaded value to be sign-extended or
zero-extended (although I think most have only one variant of every
length). You also then have to ask yourself if you want to perform
the addition to the full width of the register, or just the width of
the loaded value, and sign- or zero-extend the result. I see no good
reason to add only to the width of the loaded value, but that's how
AMD64 works.
The nice thing about load/store architectures is that you can separate
these concerns.
Have all 7 variants of loads (lbu lbs lsu lss lmu lms ll), four
variants of store (sb ss sm sl), do addition at full width, and have
various zero- and sign-extending instructions in the cases where they
are needed (usually not in connection with addition).
- anton
--
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID:
<2026Nov10.221543@mips.complang.tuwien.ac.at>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11cpqih$acf5$1@dont-email.me> <11cr2g5$q796$2@dont-email.me> <2026Nov9.071302@mips.complang.tuwien.ac.at> <11cru1e$11qpi$1@dont-email.me> <2026Nov9.091404@mips.complang.tuwien.ac.at> <11cti0c$1lilf$4@dont-email.me> <2026Nov10.084131@mips.complang.tuwien.ac.at> <1794340629-5857@newsgrouper.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: anton@mips.complang.tuwien.ac.at (Anton Ertl) Newsgroups: comp.arch Subject: Re: vector length CSR? Date: Tue, 10 Nov 2026 21:15:43 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 39 Message-ID: <2026Nov10.221543@mips.complang.tuwien.ac.at> References: <11cpqih$acf5$1@dont-email.me> <11cr2g5$q796$2@dont-email.me> <2026Nov9.071302@mips.complang.tuwien.ac.at> <11cru1e$11qpi$1@dont-email.me> <2026Nov9.091404@mips.complang.tuwien.ac.at> <11cti0c$1lilf$4@dont-email.me> <2026Nov10.084131@mips.complang.tuwien.ac.at> <1794340629-5857@newsgrouper.org> Injection-Date: Tue, 10 Nov 2026 21:50:30 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2675849"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ga5+TpevFweyGE8ZGrNdC"; posting-host="751dcd0f8cccb292b049cfbd53940fe7" Cancel-Lock: sha1:cQtQCRGzwDP7Qr1K7U5/ItTYGZQ= sha256:MnDVqNzXun2hl5HkZs6OktZdaXPIMSzR7g6os+IXe8c= sha1:HP2lwUFhpK0h3j3p++FHfX9cMmM= sha256:FrJP4eq10WWKr5K7/bHiFxm+F0aYNaPBenBPA9kozQY= X-newsreader: xrn 10.11