[Libre-soc-bugs] [Bug 684] XLEN-16 fails when XLEN=8

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Sep 14 21:22:47 BST 2021


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

--- Comment #13 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #11)
> (In reply to Luke Kenneth Casson Leighton from comment #10)

> if we do add a XLTRUNC function, I think it should truncate/zero-extend to
> XLEN, so XLTRUNC(UI) is valid for XLEN <, =, or > 16. perhaps we should
> instead call it XLCASTU, and have a corresponding sign-extending/truncating
> XLCASTS function.

that makes sense

(In reply to Jacob Lifshay from comment #12)
> we will also probably want functions for the much-more-complex
> floating-point XLEN handling

ah these i was planning to just totally cheat, and override the
function names.  e.g. DOUBLE2SINGLE gets redirected to SINGLE2HALF

have to see when we get to it.

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


More information about the libre-soc-bugs mailing list