Skip to content

Commit

Permalink
fix reserved regs for intt_769_dilithium + intt_kyber
Browse files Browse the repository at this point in the history
  • Loading branch information
mkannwischer committed Dec 12, 2024
1 parent 3a1f536 commit 149444b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -1978,14 +1978,11 @@ def __init__(self, var="", arch=Arch_Armv7M, target=Target_CortexM7, timeout=Non
super().__init__(infile, name, rename=True, arch=arch, target=target, timeout=timeout, funcname=funcname)

def core(self, slothy):
# TODO: fix selftest
slothy.config.selftest = False
slothy.config.constraints.stalls_first_attempt = 16
slothy.config.inputs_are_outputs = True
slothy.config.variable_size = True
slothy.config.split_heuristic = True

slothy.config.reserved_regs = ["r1", "r13", "s23-s31"]
slothy.config.reserved_regs = ["r1", "r13"] + [f"s{i}" for i in range(23, 32)]

slothy.config.split_heuristic_factor = 8
slothy.config.split_heuristic_stepsize = 0.1
Expand Down Expand Up @@ -2261,12 +2258,10 @@ def __init__(self, var="", arch=Arch_Armv7M, target=Target_CortexM7, timeout=Non
super().__init__(infile, name, rename=True, arch=arch, target=target, timeout=timeout, funcname=funcname)

def core(self, slothy):
# TODO: fix selftest
slothy.config.selftest = False
slothy.config.variable_size = True
slothy.config.constraints.stalls_first_attempt = 16
slothy.config.inputs_are_outputs = True
slothy.config.reserved_regs = ["r1", "r13", "s23-s31"]
slothy.config.reserved_regs = ["r1", "r13"] + [f"s{i}" for i in range(23, 32)]
slothy.config.timeout = 300

# Step 1: optimize first loop
Expand Down

0 comments on commit 149444b

Please sign in to comment.