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

index 548f41fb0e843f17cb241247bdcd2294a53afc97..1be73d68ff81b813a85fd2c5e32218a9c574c2b6 100644 (file)
@@ -130,10 +130,10 @@ MDS-Form
 
 Pseudo-code:
 
-    n <- (RB)[58:63]
+    n <- (RB)[XLEN-5:XLEN-1]
     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: