🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #618

Re: vector length CSR?

#618
From: Anton Ertl
Date: Tue, 10 Nov 2026 07:41
76 lines
4768 bytes
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.
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.

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.

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?

Mashey used (wrongly IMO) the number of addressing modes as a
criterion, and had difficulty counting them.  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
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID: <2026Nov10.084131@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-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>

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 07:41:31 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 76
Message-ID: <2026Nov10.084131@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>
Injection-Date: Tue, 10 Nov 2026 09:02:46 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2112944"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1837nrx6kM7uJYFGkDljaTM"; posting-host="751dcd0f8cccb292b049cfbd53940fe7"
Cancel-Lock: sha1:4KF3VCIV87djIO+QUD30ZIqCNy8= sha256:KQcT+D5hXF5Von9OCmCuXS9p+0/hqastlRBGiJTk3sc=
	sha1:p6hGI7O2E5L6eOCBOsKXPBK8cRo= sha256:V4hY9ou2g5r1XsrFgWjUdijfLCSk4QSCymAvWh8Py3Y=
X-newsreader: xrn 10.11