off-by-one in srad, same as sld and srd: XLEN-6:XLEN-1 not XLEN-5:XLEN-1
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 1 Sep 2021 19:29:24 +0000 (20:29 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 1 Sep 2021 19:29:24 +0000 (20:29 +0100)
openpower/isa/fixedshift.mdwn

index 91fabd5cce8afb8712a31015cdd1236c73dc7b43..02f1a71a85f2e747e55325fcc78838d1cdf2777a 100644 (file)
@@ -341,7 +341,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))