from openpower.decoder.isa.remapyield import iterate_indices
from openpower.decoder.isa.remap_preduce_yield import (iterate_indices as
iterate_preduce_indices)
+from openpower.decoder.isa.remap_preduce_yield import (iterate_indices2 as
+ iterate_pprefix_indices)
from openpower.decoder.isa.remap_fft_yield import iterate_butterfly_indices
from openpower.decoder.isa.remap_dct_yield import (
iterate_dct_inner_butterfly_indices,
if self.mode == 0b00:
iterate_fn = iterate_indices
elif self.mode == 0b10:
- iterate_fn = iterate_preduce_indices
+ # further sub-selection
+ if self.skip & 0b10:
+ iterate_fn = iterate_pprefix_indices # parallel-prefix
+ else:
+ iterate_fn = iterate_preduce_indices # parallel-reduce
elif self.mode in [0b01, 0b11]:
# further sub-selection
if self.ydimsz == 1: