fixedshift: switch rlwimiX to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Tue, 31 Aug 2021 19:48:12 +0000 (19:48 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 31 Aug 2021 20:20:55 +0000 (21:20 +0100)
openpower/isa/fixedshift.mdwn

index 52c2a890bf47a77153fb920c8adcf1ae211c786e..3b66f4211c550c42fb0a8e5190c5db476ca39b53 100644 (file)
@@ -56,7 +56,7 @@ M-Form
 Pseudo-code:
 
     n <- SH
-    r <- ROTL32((RS)[32:63], n)
+    r <- ROTL32((RS)[XLEN/2:XLEN-1], n)
     m <- MASK32(MB, ME)
     RA <- r&m | (RA) & ¬m