From: Dmitry Selyutin Date: Tue, 31 Aug 2021 20:24:13 +0000 (+0000) Subject: fixedshift: switch slwX to XLEN X-Git-Tag: xlen-bcd~39 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=905567f259002a7cf4e8210102dfca83e8fa10c6;p=openpower-isa.git fixedshift: switch slwX to XLEN --- diff --git a/openpower/isa/fixedshift.mdwn b/openpower/isa/fixedshift.mdwn index 3bf0c301..ab94e9a4 100644 --- a/openpower/isa/fixedshift.mdwn +++ b/openpower/isa/fixedshift.mdwn @@ -190,11 +190,11 @@ X-Form Pseudo-code: - n <- (RB)[59:63] - r <- ROTL32((RS)[32:63], n) - if (RB)[58] = 0 then - m <- MASK32(0, 31-n) - else m <- [0]*64 + n <- (RB)[XLEN-5:XLEN-1] + r <- ROTL32((RS)[XLEN/2:XLEN-1], n) + if (RB)[XLEN-6] = 0 then + m <- MASK32(0, ((XLEN/2)-1-n)) + else m <- [0]*XLEN RA <- r & m Special Registers Altered: