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

index 1e2ce0f7ebf71fd50cc4397411c9aef4297bb735..33074dc0541e8524eb5ea05e7cfe0ef7dfb7e910 100644 (file)
@@ -154,7 +154,9 @@ Swizzle Pseudocode:
     # determine implied subvector length from Swizzle
     dst_subvl = 4
     for i in range(4):
-        if swiz[i] == 0b001: dst_subvl = i+1
+        if swiz[i] == 0b001:
+            dst_subvl = i+1
+            break
     # source subvector length is maximum of both RM fields
     src_subvl = MAX(SRC_SUBVL, SUBVL)
 ```