[Libre-soc-isa] [Bug 908] indexed remap needs defined behavior for out-of-bounds indexes

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Sep 29 20:45:58 BST 2022


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

--- Comment #7 from Jacob Lifshay <programmerjake at gmail.com> ---
vsx has precedent for zeroing elements with out-of-bounds indexes: the xxpermx
instruction basically does:
v <- VA || VB
for i in 0 to 15
    if VC.byte[i].bit[0:2] != UIM then
        VT.byte[i] <- 0
    else
        VT.byte[i] <- v.byte[VC.byte[i].bit[3:7]]

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


More information about the Libre-SOC-ISA mailing list