[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:34:16 GMT 2022


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

--- Comment #19 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Dmitry Selyutin from comment #17)

> Any static compilation, if it's so complicated that it handles switch,
> should likely be able to deal with constants, shouldn't it?

a pattern-match would be needed "if variable used then output a shift
mask using a variable else use a constant", which would likely need a
2-pass compiler.

> This switch/case
> is so ugly... 

i know, but it is braindead simple to compile to c, just output the
equivalent c switch/case

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


More information about the Libre-SOC-ISA mailing list