🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #385

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

#385
From: MitchAlsup
Date: Tue, 27 Oct 2026 17:06
52 lines
3182 bytes
anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:

> 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:

But "lack of division" is also costly !! especially if some future
implementation will have division {which it will} and then you have
no direct means to make the dusty decks fast.

Note to µArchitects, put the instruction in even if you are going to
TRAP to SW emulation. Later on when DIV is implemented it just runs
faster and you had to do nothing (but put it in).

> 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).

Let me assert that adding IDIV/UDIV is WAY LESS COSTLY than adding 1300
SIMD instructions.

>               And it's not that frequent, which means that if you
> throw lots of hardware at making it fast, the payoff will be small.

Having it perfectly defined is the critical part {bit patterns in,
bit patterns out} then each implementation can choose for itself
whether to put it in or leave it out.

> 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.

I have considered a x / (2^n) instruction--only a few gates worse than
SRA.
 
> Even relatively recent architectures like Alpha (1992) and IA-64
> (2001) do not include integer division instructions.

And look at where they are now.
 
> So I found the inclusion of division in the RISC-V M extension
> surprising.  They then separated them again by defining Zmmul.

RISC-V is like a shotgun with a short barrel and no choke--it just
needs to hit something for its backers to say they hit something.
> 
> - anton
Technical Details
Message-ID: <1793120789-5857@newsgrouper.org>
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!newsgrouper.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> <2026Oct27.171414@mips.complang.tuwien.ac.at>

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!newsgrouper.org!.POSTED!not-for-mail
From: MitchAlsup <user5857@newsgrouper.org.invalid>
Newsgroups: comp.arch
Subject: Re: interrupt handling latency and weird register use (was Re: OT: Epic RISC-V rant)
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> <2026Oct27.171414@mips.complang.tuwien.ac.at>
Date: Tue, 27 Oct 2026 17:06:29 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1793120789-5857@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857
Injection-Date: Tue, 27 Oct 2026 17:06:29 GMT
User-Agent: Newsgrouper/0.9.0