🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #628

Re: vector length CSR?

#628
From: MitchAlsup
Date: Tue, 10 Nov 2026 19:57
93 lines
5114 bytes
anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:

> Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> writes:
> >On Mon, 09 Nov 2026 08:14:04 GMT, Anton Ertl wrote:
> >> Read it as "reduced-instruction set computer", not as "reduced
> >> instruction-set computer".
> >
> >So what exactly is a "set computer"?
> 
> You obviously need even more help in how the words belong together.
> It's
> 
> {{reduced instruction} set} computer
> 
> >> The relevance is that the instruction complexity is reduced, even at
> >> the cost of increasing the number of instructions.
> >>
> >> E.g., MIPS and RISC-V have an instruction called LUI, which would be
> >> unnecessary if ADDIU just supported full-width immediate operands,
> >> like VAX.
> >
> >So you see a shift-and-load instruction is being somehow *less*
> >complex than a straight load?
> 
> There is no shift-and-load involved anywhere.  See
> <https://instructionsets.com/risc-v/lui/> about what LUI does on
> RISC-V.  If you look at the binary layout, you see that the imm20 is
> in the same bit positions in the instruction as in the destination
> register.
> 
> What is less complex is that MIPS amd RISC-V implementations do not
> need to deal with instructions that have more than 32 bits in length.

RISC-V:C has 16-bit instructions, too, so the shifter is there anyway.

> Without their compressed extensions, they only need to deal with one
> instruction length: 32 bits.  Which means that you can fetch the
> instruction directly into the decoder, without needing an instruction
> buffer nor a shifter for shifting the bytes around in that buffer.

One can put the IB in a place where set-hit overlaps its flip-flops.
{meaning the IB is just part of ICache FETCH}
 
> Concerning circularity: John Mashey's arguments are based on observing
> architectures that have been generally considered RISC (such as Power,
> ARM A32, and RISC-V) vs. architectures that have not (e.g., PDP-11,
> VAX, and i386).
> 
> You may consider that circular: Derive criteria from a pre-existing
> classification, and then use the criteria to classify new
> architectures.  That's what you get if you don't have a definition to
> start with.  BTW, while Patterson himself did not give a definition in
> the paper where he coined the term RISC, but in 1985 observed
> commonalities between IBM 801, Berkeley RISC-II and Stanford MIPS and
> listed them, preceeding John Mashey's more detailed analysis.
> 
> 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
 
> Instruction count is not among these criteria that Patterson observed, and not among the criteria that Mashey uses, either.
> 
> Instruction count would also be hard to measure; e.g.,
> <https://instructionsets.com/x86/add/> lists 19 forms of instruction
> with the mnemonic ADD.  Are they 19 different instructions with the
> same name, or just one?  What about variants with the same encoding,
> like the one with the opcode 05H (listed separately), where the
> meaning depends on the value of a flag?  What about other differences
> in behaviour influenced by a flag?

Given {signed, Unsigned}×{Byte, halfword, word, doubleword} one has
8 integer ADDs, and generally an AGEN ADD on the more CISCy machines.

One can argue whether that is enough or insufficient--independently.
 
> Mashey used (wrongly IMO) the number of addressing modes as a
> criterion, and had difficulty counting them.

{Gomer Pyle}
Surprise, surprise, surprise...

>                                               And, e.g., Power lists
> auto-incrementing loads as separate instructions where auto-increment
> is considered to be an addressing mode by ARM.
> 
> If you consider an instruction set RISC if it has, say, 64
> instructions or less, does it become CISC when FP instructions are
> added?  What about adding 64-bit instructions?
> 
> - anton
Technical Details
Message-ID: <1794340629-5857@newsgrouper.org>
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!newsgrouper.org!.POSTED!not-for-mail
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>

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!newsgrouper.org!.POSTED!not-for-mail
From: MitchAlsup <user5857@newsgrouper.org.invalid>
Newsgroups: comp.arch
Subject: Re: vector length CSR?
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>
Date: Tue, 10 Nov 2026 19:57:09 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1794340629-5857@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857
Injection-Date: Tue, 10 Nov 2026 19:57:09 GMT
User-Agent: Newsgrouper/0.9.0