From: Dmitry Selyutin Date: Tue, 31 Aug 2021 20:26:51 +0000 (+0000) Subject: fixedshift: switch sldX to XLEN X-Git-Tag: xlen-bcd~36 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb86b607d96baccf53cba000b561358177659fbf;p=openpower-isa.git fixedshift: switch sldX to XLEN --- diff --git a/openpower/isa/fixedshift.mdwn b/openpower/isa/fixedshift.mdwn index bcf9296a..f5acd09e 100644 --- a/openpower/isa/fixedshift.mdwn +++ b/openpower/isa/fixedshift.mdwn @@ -278,11 +278,11 @@ X-Form Pseudo-code: - n <- (RB)[58:63] + n <- (RB)[XLEN-5:XLEN-1] r <- ROTL64((RS), n) - if (RB)[57] = 0 then - m <- MASK(0, 63-n) - else m <- [0]*64 + if (RB)[XLEN-7] = 0 then + m <- MASK(0, XLEN-1-n) + else m <- [0]*XLEN RA <- r & m Special Registers Altered: