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

index 0d4fb6c8f27fba0ec7f43709c8a1c6251efd650c..8bbc8f0a2bd4289ede48bf43a46d4657c38d685c 100644 (file)
@@ -367,8 +367,8 @@ XS-Form
 Pseudo-code:
 
     n  <- sh
-    r  <- ROTL64(EXTS64(RS[32:63]), n)
-    m  <- MASK(0, 63-n)
+    r  <- ROTL64(EXTS64(RS[XLEN/2:XLEN-1]), n)
+    m  <- MASK(0, XLEN-1-n)
     RA <- r & m
 
 Special Registers Altered: