[Libre-soc-isa] [Bug 1055] update ls004 OPF RFC to include LD-ST-Shifted instructions

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Nov 18 20:43:42 GMT 2023


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

--- Comment #21 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
i have this:

Z23-Form

stbupsx RS,RA,RB,SH
Pseudo-code:

EA <- (RA) + (RB)<<(SH+1)
ea <- (RA)
MEM(ea, 1) <- (RS)[XLEN-8:XLEN-1]
RA <- EA


you had this:


EA <- (RA)<<(SH+1) + (RB)



X-Form

lbzupsx RT,RA,RB,SH
Pseudo-code:

EA <- (RA)<<(SH+1)
RT <- ([0] * (XLEN-8)) || MEM(EA, 1)
RA <- (RA) + (RB)

shoud be:

X-Form

lbzupsx RT,RA,RB,SH
Pseudo-code:

EA <- (RA)
RT <- ([0] * (XLEN-8)) || MEM(EA, 1)
RA <- (RA) + (RB)<<(SH+1)

etc etc

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


More information about the Libre-SOC-ISA mailing list