Article View: comp.arch
Article #737Re: Large constants in RISC
From: Waldek Hebisch
Date: Sat, 14 Nov 2026 22:53
Date: Sat, 14 Nov 2026 22:53
29 lines
2268 bytes
2268 bytes
Anton Ertl <anton@mips.complang.tuwien.ac.at> 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.
All I have seen are general claims. It is not clear to me
how various factors lead to observed results. It is clear
that advantage for x86_64 in handling constants is way too
small change result of comparison.
>>What is not clear how frequently
>>code with explicit constants appears in real life.
>
> That can be and has been measured, and IIRC results have been posted here.
I remember various statistics. What I wrote was specifically
in context of floating point constants. If published statistics
are relevant for them, then such constants are quite rare.
But there are reasons that could easily bias the current
results, so before more definitive information is available
I do not want to prematuraly declare this as known.
--
Waldek Hebisch
Technical Details
Message-ID:
<11daoou$1cibq$1@paganini.bofh.team>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!paganini.bofh.team!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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: antispam@fricas.org (Waldek Hebisch)
Newsgroups: comp.arch
Subject: Re: Large constants in RISC
Date: Sat, 14 Nov 2026 22:53:20 -0000 (UTC)
Organization: bofh.team Usenet service
Message-ID: <11daoou$1cibq$1@paganini.bofh.team>
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>
Injection-Date: Sat, 14 Nov 2026 22:53:20 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1460602"; mail-complaints-to="usenet@bofh.team"; posting-host="d028f9ad2fa2c51f22dbfed0d81d7daf"; posting-account="69e66f1681224ab92235b464ce7a90b6"
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64))
X-Postfilter: Postfilter-NG 2026.10.2