From 13105abdf5d0c5ade6f8639809a2c5ed31221621 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 22 Oct 2021 15:03:22 +0100 Subject: [PATCH] only set standard PartType in non-Simd-mode --- src/ieee754/part/partsig.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ieee754/part/partsig.py b/src/ieee754/part/partsig.py index bc12d26e..e1bb7ec9 100644 --- a/src/ieee754/part/partsig.py +++ b/src/ieee754/part/partsig.py @@ -122,11 +122,12 @@ class SimdSignal(UserValue): # parse the args, get elwid from SimdMode, # get module as well, call self.set_module(mask.module) self.partpoints = ptype.make_layout_get_stuff(mask, *args, **kwargs) - if isinstance(mask, PartitionPoints): - self.partpoints = mask else: - self.partpoints = make_partition2(mask, width) - self.ptype = PartType(self) + if isinstance(mask, PartitionPoints): + self.partpoints = mask + else: + self.partpoints = make_partition2(mask, width) + self.ptype = PartType(self) def set_module(self, m): self.m = m -- 2.30.2