finally fix bpermd pseudocode, index was being treated as signed
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 18 May 2021 12:16:45 +0000 (13:16 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 18 May 2021 12:16:45 +0000 (13:16 +0100)
(index < 64) when it is unsigned (inedx <u 64)

openpower/isa/fixedlogical.mdwn

index 99d5505665b9787c6b583153154709fa2fa5cf80..c57491178262d62b53269d13d0ac8479f40a5098 100644 (file)
@@ -468,7 +468,7 @@ Pseudo-code:
     perm <- [0] * 8
     for i = 0 to 7
        index <- (RS)[8*i:8*i+7]
-       if index < 64 then
+       if index <u 64 then
             perm[i] <- (RB)[index]
        else
             perm[i] <- 0