From: Luke Kenneth Casson Leighton Date: Fri, 29 Sep 2023 17:46:51 +0000 (+0100) Subject: first attempt to create an Indexed Schedule, for bigmul powmod, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ea7bc16e4ebe51b34def7fbaf3ddfc67df9700b;p=openpower-isa.git first attempt to create an Indexed Schedule, for bigmul powmod, but it is not perfect. needs thought --- 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):