fix svindex pseudocode, set large 2nd dim on nonskip
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 10 Jul 2022 16:17:09 +0000 (17:17 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 10 Jul 2022 16:17:09 +0000 (17:17 +0100)
openpower/isa/simplev.mdwn

index 8e31fc0ffcfec97db73c772eca54b59ee4ae6ad2..e2c742948e57c59a65ad306b7ea2932e1e39c0fa 100644 (file)
@@ -280,11 +280,11 @@ Pseudo-code:
     if yx = 0 then
         shape[18:20] <- 0b110       # indexed xd/yd
         shape[0:5] <- (0b0 || SVd)  # xdim
-        if sk = 1 then shape[6:11] <- 0 # ydim
+        if sk = 0 then shape[6:11] <- 0 # ydim
         else           shape[6:11] <- 0b111111 # ydim max
     else
         shape[18:20] <- 0b111       # indexed yd/xd
-        if sk = 1 then shape[0:5] <- 0 # xdim
+        if sk = 0 then shape[0:5] <- 0 # xdim
         else           shape[0:5] <- 0b111111 # xdim max
         shape[6:11] <- (0b0 || SVd) # ydim
     shape[12:17] <- (0b0 || SVG)        # SVGPR