🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #378

Re: interrupt handling latency and weird register use (was Re: OT: Epic RISC-V rant)

#378
From: Anton Ertl
Date: Tue, 27 Oct 2026 16:14
26 lines
2554 bytes
makendo <makendo@makendo.invalid> writes:
>The case where division is implemented but
>multiplication is not does not have a name assigned -- it is pretty
>well known that hardware designers, compiler writers and low-level
>programmers hate division far more than multiplication, so I doubt
>if divison-only hardware is even out in the wild for any ISA...

I don't think that "hate" is the right concept.  Division is costly:
Costly to implement and it tends to run slowly (although ARM tries
hard to disprove that part, even on low-end cores like the
Cortex-A53).  And it's not that frequent, which means that if you
throw lots of hardware at making it fast, the payoff will be small.
And because it is slow, various potential use cases avoid it and
prefer to use shifts or multiplication by the inverse, making it even
less frequent.

Even relatively recent architectures like Alpha (1992) and IA-64
(2001) do not include integer division instructions.

So I found the inclusion of division in the RISC-V M extension
surprising.  They then separated them again by defining Zmmul.

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID: <2026Oct27.171414@mips.complang.tuwien.ac.at>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <87qzk0nejz.fsf@nightsong.com> <116d89d$27baf$1@paganini.bofh.team> <87ecfcagiw.fsf_-_@debian> <2026Sep1.225146@mips.complang.tuwien.ac.at> <11bpfm8$190ap$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!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: interrupt handling latency and weird register use (was Re: OT: Epic RISC-V rant)
Date: Tue, 27 Oct 2026 16:14:14 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 26
Message-ID: <2026Oct27.171414@mips.complang.tuwien.ac.at>
References: <87qzk0nejz.fsf@nightsong.com> <116d89d$27baf$1@paganini.bofh.team> <87ecfcagiw.fsf_-_@debian> <2026Sep1.225146@mips.complang.tuwien.ac.at> <11bpfm8$190ap$1@dont-email.me>
Injection-Date: Tue, 27 Oct 2026 16:26:02 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1763470"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/HOPHuweh0+RnAkN2TvndC"; posting-host="80d7b5720228965a9bae01a698c20d91"
Cancel-Lock: sha1:bd47DsEQ4As3HBC2iZnc9jVRPjs= sha256:FTezRv6SIgNfdrOB0HLVYy8XtmvcV/9J7ef/SCLbc4w=
	sha1:qzsZSF1rWBi369sJIY+d0hcHGV8= sha256:+vyUni6EKLz//SABvePJvMVbjhz+1SN1iwZOlKMMqiU=
X-newsreader: xrn 10.11