fixedlogical: bpermd fixup
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Mon, 30 Aug 2021 19:49:48 +0000 (19:49 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Mon, 30 Aug 2021 19:53:29 +0000 (19:53 +0000)
openpower/isa/fixedlogical.mdwn

index 10fab1343bc4cbf4b7b6d148e9f7a13b52967e0b..bb692d7399d45bc5ea00de3e0fceab1223054d30 100644 (file)
@@ -466,7 +466,7 @@ X-Form
 Pseudo-code:
 
     perm <- [0] * 8
-    for i = 0 to 7
+    for i = 0 to ((XLEN/8)-1)
        index <- (RS)[8*i:8*i+7]
        if index <u XLEN then
             perm[i] <- (RB)[index]