From 70e282283cafc80374fe868ec6090f8d87f0f617 Mon Sep 17 00:00:00 2001 From: lkcl Date: Mon, 13 Jun 2022 23:39:13 +0100 Subject: [PATCH] --- openpower/sv/mv.swizzle.mdwn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openpower/sv/mv.swizzle.mdwn b/openpower/sv/mv.swizzle.mdwn index 77d457ef3..af8c797a0 100644 --- a/openpower/sv/mv.swizzle.mdwn +++ b/openpower/sv/mv.swizzle.mdwn @@ -187,12 +187,16 @@ may be assumed to be 4. def index_dest(): for i in range(VL): for j in range(dst_subvl): + if swiz[j] == 0b000: # skip + continue yield i*dst_subvl+j # walk through both source and dest indices simultaneously for (src_idx, offs), dst_idx in zip(index_src(), index_dst()): if offs == CONSTANT: - move_operation(RT+dst_idx, RA+src_idx+offs) + set(RT+dst_idx, CONSTANT) + else + move_operation(RT+dst_idx, RA+src_idx+offs) ``` **Effect of Saturation on Vectorised Swizzle** -- 2.30.2