From 8523c3b1d768a6685c9a7411c8f6b352a6e28ef2 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 29 Sep 2023 18:46:51 +0100 Subject: [PATCH] first attempt to create an Indexed Schedule, for bigmul powmod, but it is not perfect. needs thought --- src/openpower/test/bigint/powmod.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/openpower/test/bigint/powmod.py b/src/openpower/test/bigint/powmod.py index 7b87b6ec..109237cc 100644 --- a/src/openpower/test/bigint/powmod.py +++ b/src/openpower/test/bigint/powmod.py @@ -100,6 +100,17 @@ def python_mul_algorithm2(a, b): # the idea here is that it will "morph" into something more akin to # using REMAP bigmul (first using REMAP Indexed) + # create a schedule for use below. the "end of inner loop" marker is 0b01 + iyl = [] + il = [] + for iy in range(4): + for i in range(4): + iyl.append((iy+i, i==3)) + il.append(i) + for i in range(5): + iyl.append((iy+i, i==4)) + il.append(i) + y = [0] * 8 t = [0] * 5 for iy in range(4): -- 2.30.2