use XLEN/2 for ROTL32 in fixedshift.mdwn
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 21 Oct 2022 11:28:43 +0000 (12:28 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:15 +0000 (19:51 +0100)
openpower/isa/fixedshift.mdwn

index 9d90da3cc983fd0ab7c3309ad351a20ac1b1f841..db59a6fa85bb2fea7f1892ab5af44678db6ca031 100644 (file)
@@ -38,7 +38,7 @@ M-Form
 Pseudo-code:
 
     n <- (RB)[XLEN-5:XLEN-1]
-    r <- ROTL32((RS)[XLEN-32:XLEN-1], n)
+    r <- ROTL32((RS)[XLEN/2:XLEN-1], n)
     m <- MASK32(MB, ME)
     RA <- r & m