(no commit message)
authorlkcl <lkcl@web>
Sun, 12 Jun 2022 13:37:56 +0000 (14:37 +0100)
committerIkiWiki <ikiwiki.info>
Sun, 12 Jun 2022 13:37:56 +0000 (14:37 +0100)
openpower/sv/mv.swizzle.mdwn

index d4c14125129ead573d40a697e60f237ab65ce075..f49e567a06da1f04bb4c0186ebd2ef11c1156124 100644 (file)
@@ -162,13 +162,13 @@ For a separate source/dest SUBVL (again, no elwidth overrides):
     def index_src():
         for j in range(SRC_SUBVL):
             for i in range(VL):
-                yield i*SRC_SUBVL+j
+                yield i+VL*j
 
     # yield an outer-SUBVL, inner VL loop with DEST SUBVL
     def index_dest():
         for j in range(SUBVL):
             for i in range(VL):
-                yield i*SUBVL+j
+                yield i+VL*j
 
     # walk through both source and dest indices simultaneously
     for src_idx, dst_idx in zip(index_src(), index_dst()):