From: Dmitry Selyutin Date: Tue, 31 Aug 2021 20:00:52 +0000 (+0000) Subject: fixedshift: switch sradiX to XLEN X-Git-Tag: xlen-bcd~44 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5ee30e42beee01670bc2c0e136c9188a2910107;p=openpower-isa.git fixedshift: switch sradiX to XLEN --- diff --git a/openpower/isa/fixedshift.mdwn b/openpower/isa/fixedshift.mdwn index 6e73a683..0d4fb6c8 100644 --- a/openpower/isa/fixedshift.mdwn +++ b/openpower/isa/fixedshift.mdwn @@ -319,10 +319,10 @@ XS-Form Pseudo-code: n <- sh - r <- ROTL64((RS), 64-n) - m <- MASK(n, 63) + r <- ROTL64((RS), XLEN-n) + m <- MASK(n, (XLEN-1)) s <- (RS)[0] - RA <- r&m | ([s]*64)& ¬m + RA <- r&m | ([s]*XLEN)& ¬m carry <- s & ((r& ¬m) != 0) CA <- carry CA32 <- carry