Article View: comp.arch
Article #755Re: Large constants in RISC
From: Anton Ertl
Date: Sun, 15 Nov 2026 16:36
Date: Sun, 15 Nov 2026 16:36
63 lines
4252 bytes
4252 bytes
quadibloc@invalid.com (John Savard) writes: >On Sat, 14 Nov 2026 19:10:17 GMT, anton@mips.complang.tuwien.ac.at >(Anton Ertl) wrote: >>antispam@fricas.org (Waldek Hebisch) writes: >>>I read what he wrote and I do not doubt that code having constants >>>in instructions is faster. >> >>AMD64 has large constants (or at least better support for large >>constants than ARM A64), yet according to reviews ARM A64 >>implementations form Apple and IIRC also Qualcomm offer better >>performance than the best AMD64 implementations. ... >However, support for large constants, while it contributes to better >performance, is just one factor out of many. AMD64 has a baroque >instruction set, so in an ARM A64 chip, a larger proportion of the >transistors are doing useful work. And included in the "baroque" instruction set are instructions with 32-bit immediate operands, and a mov instruction with a 64-bit immediate operand. In any case, there is no empirical evidence "that having [large] constants in instructions is faster." And the weak evidence that we currently have, points in the other direction. So we have every reason to doubt that claim. >When power and heat are the >limiting factors, that should matter. Power and heat have been limiting factors since about 2005, if not earlier. In 2006, Apple switched from PowerPC (a RISC) to Intel's "baroque" IA-32 and later AMD64 offerings. >"AMD64 has a huge market for powerful desktop computers and servers, >while the only big market for ARM A64 is smartphones, and yet >according to reviews..." > >...because, at least up until very recently, Intel has had so much >money to spend that it could afford to engineer its chips so cleverly >as to make up for the CISC versus RISC disadvantage. In the late 1990s, AMD was a much smaller company than Intel, and also smaller than the larger members of the AIM (Apple, IBM, Motorola) consortium, and the "baroqueness" of IA-32 played a bigger role in the CPUs of the day, yet AMD managed to beat Intel in the GHz race and was very competetive in the following years, while the offerings of the AIM consortium were slow and only kept afloat by the faith in the church of Apple. And eventually Apple switched to Intel. It's not clear why the ARM A64 microarchtitects manage to outcompete AMD64 these days, while the AIM microarchitects could not do that in the early 2000s. Maybe there is something in the instruction sets that plays a role when you do 10-wide microarchitecture that was not an issue for 3-wide microarchitectures in the early 2000s. Maybe Intel's APX (32 GPRs, 3-address encoding) is a reaction to Apple M1 having better IPC, and maybe we will see better IPC on Intel machines with APX. I would not bet on it, though. - 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.173606@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> <11d7ct8$17akn$1@dont-email.me> <11d7ih2$11orr$1@paganini.bofh.team> <11d9d0d$1rsce$1@dont-email.me> <11d9tq8$1b9c1$2@paganini.bofh.team> <2026Nov14.201017@mips.complang.tuwien.ac.at> <6af911ea.18530156@news.eternal-september.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: anton@mips.complang.tuwien.ac.at (Anton Ertl) Newsgroups: comp.arch Subject: Re: Large constants in RISC Date: Sun, 15 Nov 2026 16:36:06 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 63 Message-ID: <2026Nov15.173606@mips.complang.tuwien.ac.at> References: <11d76uq$11cdc$1@paganini.bofh.team> <11d7ct8$17akn$1@dont-email.me> <11d7ih2$11orr$1@paganini.bofh.team> <11d9d0d$1rsce$1@dont-email.me> <11d9tq8$1b9c1$2@paganini.bofh.team> <2026Nov14.201017@mips.complang.tuwien.ac.at> <6af911ea.18530156@news.eternal-september.org> Injection-Date: Sun, 15 Nov 2026 17:03:16 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3018563"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MBj5E2fK2RNhres+eQ0BN"; posting-host="c546d9c3efc054d217948ebb9c0ff5c8" Cancel-Lock: sha1:nz21iJRD7mKJbnS+D8/antxHwuc= sha256:ljs9kfa3sng2nDB7+9W8XxnRLz0r75kTtZnV1o7Ow74= sha1:ufsNjOJxtJpdTTR6NnDO5ty/OfY= sha256:fzQbiMFY+qr55tJJfMjaKtJ7EqsRJF8osYhnMDj43nA= X-newsreader: xrn 10.11