From: lkcl Date: Sun, 12 Jun 2022 17:02:42 +0000 (+0100) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~1822 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8f0187bc9c3e00e0d3618310f610fc28a7e0ef7;p=libreriscv.git --- diff --git a/openpower/sv/mv.swizzle.mdwn b/openpower/sv/mv.swizzle.mdwn index d204afc3f..282fb35b1 100644 --- a/openpower/sv/mv.swizzle.mdwn +++ b/openpower/sv/mv.swizzle.mdwn @@ -154,7 +154,9 @@ Swizzle Pseudocode (when SRC_SUBVL=SUBVL): swiz[3] = imm[9:12] # W # determine implied subvector length from Swizzle for i in range(4): - if swiz[i] != 0b000: subvlen = i + if swiz[i] != 0b000: subvlen = i+1 + for i in range(4): + if swiz[i] >= 0b100: subvlen = max(subvlen, swiz[i]-3) source_subvl = subvlen dest_subvl = SUBVL ```