Article View: comp.arch
Article #641Re: vector length CSR?
From: Robert Finch
Date: Wed, 11 Nov 2026 07:15
Date: Wed, 11 Nov 2026 07:15
48 lines
2959 bytes
2959 bytes
On 2026-11-10 2:32 p.m., MitchAlsup wrote:
> Robert Finch <robfi680@gmail.com> posted:
>
>> On 2026-11-08 11:37 p.m., Lawrence D’Oliveiro wrote:
>>> On Sun, 8 Nov 2026 23:11:46 -0500, Robert Finch wrote:
>>>
>>>> On 2026-11-08 7:01 p.m., Lawrence D’Oliveiro wrote:
>>>>>
>>>>> The RISC-V designers quite rightly criticize this combinatorial
>>>>> explosion of instruction variants as going completely against the
>>>>> whole idea of a *reduced* instruction set computer (which is what
>>>>> “RISC” is supposed to stand for).
>>>>
>>>> It is partly a representation issue. IDK how it would be avoided,
>>>> scratched my head over this one.
>>>
>>> I think they do it by specifying the data type of the operands in
>>> another control register.
>>
>> I went with the hoards of instructions approach. But the size of the
>> operand is specified in a config register.
>
> How would you vectorize:
>
> LOOP on i
> {
> DoubleWord[i] = WORD[i] Ă— HalfWord[i] + Byte[i+2];
> }
>
> ???
>
I been busy. The operand size and number of registers are now encoded in
the instruction.
For the above, the values would need to be extended to the largest
operand size and it is really ugly to do ATM. Basically have to extract
the elements of the vector and insert them into a new temp one.
>> At least I do not have a
>> different instruction for each size. Data type is usually determined by
>> the instruction. vadd for vector integer add, vfadd for float add, etc.
>>
>>
>>
>>
>>
>>
Technical Details
Message-ID:
<11d14mv$2qqot$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> <11crh64$ug0s$1@dont-email.me> <11crili$ur2d$1@dont-email.me> <11crrs5$118ll$1@dont-email.me> <1794339152-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: Robert Finch <robfi680@gmail.com> Newsgroups: comp.arch Subject: Re: vector length CSR? Date: Wed, 11 Nov 2026 02:15:40 -0500 Organization: A noiseless patient Spider Lines: 48 Message-ID: <11d14mv$2qqot$1@dont-email.me> References: <11cpqih$acf5$1@dont-email.me> <11cr2g5$q796$2@dont-email.me> <11crh64$ug0s$1@dont-email.me> <11crili$ur2d$1@dont-email.me> <11crrs5$118ll$1@dont-email.me> <1794339152-5857@newsgrouper.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 11 Nov 2026 07:15:44 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2976541"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Fc/ztVhlNJiqn9Li1rchGDvLS5+k7Xqs="; posting-host="3cbe58922e084c0cbe70fb5cbe85ff31" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:FX/AsuDhtqttW14TdeGajs06sdo= sha256:BjGUCiWr8Pedr+r2VR75VueZRgjqQxmwmaOwqvEAYHg= sha1:Q+wxs6qbZk1v5ZeuVENkOb7N3zM= sha256:jGyKL8eBoKj4fTljAPJ2ZWfuH1MvNDlwPIwLXMHUAMs= In-Reply-To: <1794339152-5857@newsgrouper.org> Content-Language: en-US