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

index 3b66f4211c550c42fb0a8e5190c5db476ca39b53..ecef4c3a18f854c89cf8f9cd4cde850e66f7609d 100644 (file)
@@ -76,7 +76,7 @@ Pseudo-code:
     n <- sh
     r <- ROTL64((RS), n)
     b <- mb[5] || mb[0:4]
-    m <- MASK(b, 63)
+    m <- MASK(b, (XLEN-1))
     RA <- r & m
 
 Special Registers Altered: