🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #635

Re: vector length CSR?

#635
From: MitchAlsup
Date: Wed, 11 Nov 2026 00:34
57 lines
3624 bytes
anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:

> /ERROR "unexpected byte sequence starting at index 590: '\xC3'" while decoding/:
> 
> 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?

"Architectural Tradeoffs in the Design of MIPS-X" Horowitz and Chow
 
> >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.

If you like LLVM compilers having to constrain ADD results with
SEXT/ZEXT, sure, and you also don't get integer overflow performed
properly (assuming you want it done at all).

LLVM takes the (somewhat convoluted) vision that a result in a
register is range limited to the exact value-set as one stored
in memory.

>                                                       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.

Any language that requires the register-allocated variable to be range
constrained exactly like those residing in memory has that property.
 
> The nice thing about load/store architectures is that you can separate
> these concerns.

There are side effects wrt HLLs that are not addresses with that view point.
 
> 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
Technical Details
Message-ID: <1794357251-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> <1794340629-5857@newsgrouper.org> <2026Nov10.221543@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> <1794340629-5857@newsgrouper.org> <2026Nov10.221543@mips.complang.tuwien.ac.at>
Date: Wed, 11 Nov 2026 00:34:11 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1794357251-5857@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857
Injection-Date: Wed, 11 Nov 2026 00:34:11 GMT
User-Agent: Newsgrouper/0.9.0