🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #759

Re: Large constants in RISC

#759
From: Robert Finch
Date: Sun, 15 Nov 2026 17:48
29 lines
2599 bytes
On 2026-11-15 11:28 a.m., Anton Ertl wrote:
> Robert Finch <robfi680@gmail.com> writes:
>> One ends up with constants in the data cache. May be slower than having
>> constants inline from the I$. One thought it to have instructions that
>> can load constants using the I$.
> 
> There is no data path from the I-cache to the load unit in existing
> CPUs.  I also expect that if you add such a data path, it will be
> slower, because the I-cache is not close to the LSU, but close to the
> decoder and the branch predictor.  So that idea is not going to fly.
> 
I was thinking of a dedicated port on the I$ not using the LS unit, like 
used for JTT instruction in My66000 IIRC.

> The better approach is to have the data in the instructions, and
> extract it during instruction decoding, like all the immediate
> operands in all instruction sets around do.  Or to have the data in
> data memory and access it with a load that works with the D-cache,
> like Alpha and others do.
> 
I agree with that.

>> ARM has shifted constant instruction too.
> 
> Not in ARM A64.  But ARM A64 has an interesting encoding for certain
> bit patterns.
> 
> - anton
Technical Details
Message-ID: <11dcr91$2uqi0$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-mail
References: <11d76uq$11cdc$1@paganini.bofh.team> <11d9d0d$1rsce$1@dont-email.me> <11d9tq8$1b9c1$2@paganini.bofh.team> <11dabct$26fdl$1@dont-email.me> <11dahac$2t74$1@gal.iecc.com> <11dauv4$2csdn$1@dont-email.me> <2026Nov15.172809@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: Robert Finch <robfi680@gmail.com>
Newsgroups: comp.arch
Subject: Re: Large constants in RISC
Date: Sun, 15 Nov 2026 12:48:16 -0500
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <11dcr91$2uqi0$1@dont-email.me>
References: <11d76uq$11cdc$1@paganini.bofh.team>
 <11d9d0d$1rsce$1@dont-email.me> <11d9tq8$1b9c1$2@paganini.bofh.team>
 <11dabct$26fdl$1@dont-email.me> <11dahac$2t74$1@gal.iecc.com>
 <11dauv4$2csdn$1@dont-email.me> <2026Nov15.172809@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 15 Nov 2026 17:48:17 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3107392"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+azrqC9ZwBzfNnE70uXIcbVIEqhu+rlkQ="; posting-host="fcdcb60fffb2e96a842ea5c47ffcd60b"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:deIbRj1YKkU9sTziZ9ikEd/c8F4= sha256:nBuFRejwpy/7cQbMuiGlcVy1LYTT+9wz13twqYN512Q=
	sha1:kVuu5xQeocPyShsFMoaUAB4/BpQ= sha256:nMrVIIsbH1ZdxgXUVJJaFPwMcQgm5eG2HIvmVkQaI3c=
In-Reply-To: <2026Nov15.172809@mips.complang.tuwien.ac.at>
Content-Language: en-US