[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 20:22:50 BST 2021
https://bugs.libre-soc.org/show_bug.cgi?id=684
--- Comment #11 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #10)
> this one needs careful thought. i cannot say i am happy with any
> options (including the XLTRUNC one), whatever is done
> though, we have to have good justification for it.
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list