Article View: comp.arch
Article #703Re: Large constants in RISC
From: MitchAlsup
Date: Fri, 13 Nov 2026 18:36
Date: Fri, 13 Nov 2026 18:36
28 lines
1697 bytes
1697 bytes
antispam@fricas.org (Waldek Hebisch) posted: > Normal RISC architecture with 32 bit instructions has problem > with constants: 64 or 32 bit constants are to big to put into > instructions and even smaller constants demand uncomfortable > tradoff: either consume a lot of encoding space on larger > constants or live with restricted range of constants. ------------------ +------+-----+-----+----+----+-----+ | OpC | Rd, | Rs1 | op | rt | Rs2 | +------+-----+-----+----+----+-----+ |.........lower 32-bits............| +----------------------------------+ |.........higher 32-bits...........| +----------------------------------+ OpC = 0b001 // 1 or 2-Operand OpC = 0b010 // 3-Operand Rt = 10xx // 32-bit constant Rt = 11xx // 64-bit constant xx = x0 // constant replaces Rs2 xx = x1 // constant replaces Rs1 No extra registers no extra instructions no need for fusing 64-bit VAS ready
Technical Details
Message-ID:
<1794594969-5857@newsgrouper.org>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!newsgrouper.org!.POSTED!not-for-mailReferences:
<11d76uq$11cdc$1@paganini.bofh.team>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!newsgrouper.org!.POSTED!not-for-mail From: MitchAlsup <user5857@newsgrouper.org.invalid> Newsgroups: comp.arch Subject: Re: Large constants in RISC References: <11d76uq$11cdc$1@paganini.bofh.team> Date: Fri, 13 Nov 2026 18:36:09 GMT Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: <1794594969-5857@newsgrouper.org> Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857 Injection-Date: Fri, 13 Nov 2026 18:36:09 GMT User-Agent: Newsgrouper/0.9.0