Article View: comp.arch
Article #699Re: vector length CSR?
From: Paul Clayton
Date: Thu, 12 Nov 2026 01:50
Date: Thu, 12 Nov 2026 01:50
25 lines
2801 bytes
2801 bytes
On 11/10/26 4:15 PM, Anton Ertl wrote: [snip] > 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). Side comment: With seven variants of store, one could check for information loss in truncating. Doing such in software might require more than one extra instruction (though one could provide a trap on "outside container" instruction and perhaps generalize the operation to fit other useful tests that rarely fail). (Using a branch instruction would waste instruction space to provide the offset, so trapping [for what is probably a fatal error] seems better, to me.) Of course, one might then argue that non-trapping variants might be desired (if disabling those traps with a mode was too coarse- grained) to avoid having to explicitly truncate the value before storing. I do not think such information loss (sub-word overflow detection) is considered important enough to use three more major opcodes. Even My 66000, which has some emphasis on security, does not (as I recall) check for improper truncation.
Technical Details
Message-ID:
<11d7kh8$1a1es$1@dont-email.me>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> <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!.POSTED!not-for-mail From: Paul Clayton <paaronclayton@gmail.com> Newsgroups: comp.arch Subject: Re: vector length CSR? Date: Wed, 11 Nov 2026 20:50:27 -0500 Organization: A noiseless patient Spider Lines: 25 Message-ID: <11d7kh8$1a1es$1@dont-email.me> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 13 Nov 2026 18:22:32 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1377756"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AW+3Wzp2pigXx1OmFaUFArEPtYDi5Fig="; posting-host="d662f6591078f43538473732474ebcb1" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Thunderbird/140.0 Cancel-Lock: sha1:j69vm8pHIc2DaDCLDGODZsS+HSI= sha256:5xv/420YhHu/IuNugyx1NjSv4aTxkuPFyLkEvR9Hleo= sha1:iyghVZSQc5oGKSHicp9IyHewrxs= sha256:9rk4BhvFwDY87+2/+sbvP42PekqEeqc2JPczOL8Yv/k= In-Reply-To: <2026Nov10.221543@mips.complang.tuwien.ac.at>