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

index 8061d8facf69b965c92bf5f18683b1625d776781..96d781b1192504ba180af13efed6e388edb971f3 100644 (file)
@@ -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))