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

index 514c3b4e7bf7815f8986c1ef7249bb5143c13ba2..52c2a890bf47a77153fb920c8adcf1ae211c786e 100644 (file)
@@ -20,7 +20,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