fixedshift: switch rlwnmX to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Tue, 31 Aug 2021 20:21:26 +0000 (20:21 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 1 Sep 2021 19:14:07 +0000 (20:14 +0100)
openpower/isa/fixedshift.mdwn

index 8bbc8f0a2bd4289ede48bf43a46d4657c38d685c..548f41fb0e843f17cb241247bdcd2294a53afc97 100644 (file)
@@ -37,7 +37,7 @@ M-Form
 
 Pseudo-code:
 
-    n <- (RB)[59:63]
+    n <- (RB)[XLEN-5:XLEN-1]
     r <- ROTL32((RS)[32:63], n)
     m <- MASK32(MB, ME)
     RA <- r & m