[Libre-soc-isa] [Bug 968] document shift-and-add instruction

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Nov 1 20:06:45 GMT 2022


https://bugs.libre-soc.org/show_bug.cgi?id=968

--- Comment #17 from Dmitry Selyutin <ghostmansd at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #15)
> (In reply to Dmitry Selyutin from comment #12)
> > Otherwise it'd overflow.
> 
> jacob pointed out that using a switch/case is better for
> static compilation (to c) which we will be doing shortly.

Any static compilation, if it's so complicated that it handles switch, should
likely be able to deal with constants, shouldn't it? This switch/case is so
ugly... so ugly that the only reason to keep it would be the way our integers
overflow. :-) Anyway, this works now, I'm just somewhat unsatisfied that the
code is explicit about widths, since this seems to be an implementation detail.

> i only re-add people once i know
> that no overwrite damage can occur.  please do check that you are at latest
> master commit.

I am at latest commit, but I don't already have to push anything, since Andrey
handles this task, if I got it correctly. :-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libre-SOC-ISA mailing list