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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Sep 4 19:28:01 BST 2021


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

--- Comment #2 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
it's not the register itself that's the issue, it's the immediate.
or, when XLEN=8, "[0]*(XLEN-16)" returns a *negative* length for
a list!  -8 zeros?

i've just spotted that xoris, andis and oris will also barf:

    RA <- (RS) ^ ([0]*(XLEN-32) || UI || [0]*16)
    RA <- (RS) & ([0]*(XLEN-32) || UI || [0]*16)

so these need some thought as well.

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


More information about the libre-soc-bugs mailing list