Article View: comp.arch
Article #754Re: Large constants in RISC
From: Anton Ertl
Date: Sun, 15 Nov 2026 16:28
Date: Sun, 15 Nov 2026 16:28
25 lines
2318 bytes
2318 bytes
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. 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. >ARM has shifted constant instruction too. Not in ARM A64. But ARM A64 has an interesting encoding for certain bit patterns. - anton -- 'Anyone trying for "industrial quality" ISA should avoid undefined behavior.' Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID:
<2026Nov15.172809@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-mailReferences:
<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>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: Large constants in RISC Date: Sun, 15 Nov 2026 16:28:09 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 25 Message-ID: <2026Nov15.172809@mips.complang.tuwien.ac.at> 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> Injection-Date: Sun, 15 Nov 2026 16:35:55 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3018563"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IZMYfF+9vgDcCTDtkmX8J"; posting-host="c546d9c3efc054d217948ebb9c0ff5c8" Cancel-Lock: sha1:duqOQOK5J6Umr1060i/7eZLkZSs= sha256:O361XS6zk7IxfhrOEiQdUaHoAvoSfrh2fb1ZBUCnwo4= sha1:RlpRYnrqRwGBI+lpIeS0m5bfV1Y= sha256:6hB4uho4ET+ECVEhq6Vu89g+Qtk5Poa1CVizP2fCveI= X-newsreader: xrn 10.11