fixedlogical: switch bpermd to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 25 Aug 2021 15:10:48 +0000 (15:10 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 25 Aug 2021 15:10:48 +0000 (15:10 +0000)
openpower/isa/fixedlogical.mdwn

index 2a0471e9bf09ae8474c105d6d8dceee872fd58b2..e08c47976ad796f785b6248c159f4eaa883dedcf 100644 (file)
@@ -468,11 +468,11 @@ Pseudo-code:
     perm <- [0] * 8
     for i = 0 to 7
        index <- (RS)[8*i:8*i+7]
-       if index <u 64 then
+       if index <u XLEN then
             perm[i] <- (RB)[index]
        else
             perm[i] <- 0
-    RA <- [0]*56 || perm[0:7]
+    RA <- [0]*(XLEN-8) || perm[0:7]
 
 Special Registers Altered: