fixedlogical: switch bpermd to XLEN
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 25 Aug 2021 15:10:48 +0000 (15:10 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Aug 2021 13:26:10 +0000 (14:26 +0100)
openpower/isa/fixedlogical.mdwn

index 58d30d9a81b0cae2f4a809d24c4c210cca186f0c..039f5cb95c2ae7ace7dbc5264b6cdd02063ab769 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: