From: Luke Kenneth Casson Leighton Date: Wed, 1 Sep 2021 19:26:33 +0000 (+0100) Subject: off-by-one in sld and srd, XLEN-6:XLEN-1 not XLEN-5:XLEN-1 X-Git-Tag: xlen-bcd~34 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b59c209b7b7087b9b7d7161524aff3fbaa9d9861;p=openpower-isa.git off-by-one in sld and srd, XLEN-6:XLEN-1 not XLEN-5:XLEN-1 --- diff --git a/openpower/isa/fixedshift.mdwn b/openpower/isa/fixedshift.mdwn index 8061d8fa..96d781b1 100644 --- a/openpower/isa/fixedshift.mdwn +++ b/openpower/isa/fixedshift.mdwn @@ -278,7 +278,7 @@ X-Form Pseudo-code: - n <- (RB)[XLEN-5:XLEN-1] + n <- (RB)[XLEN-6:XLEN-1] r <- ROTL64((RS), n) if (RB)[XLEN-7] = 0 then m <- MASK(0, XLEN-1-n) @@ -298,7 +298,7 @@ X-Form Pseudo-code: - n <- (RB)[XLEN-5:XLEN-1] + n <- (RB)[XLEN-6:XLEN-1] r <- ROTL64((RS), XLEN-n) if (RB)[XLEN-7] = 0 then m <- MASK(n, (XLEN-1))