Skip to content

Commit

Permalink
force loop type for Armv7mLoopSubs and Armv7mLoopCmp examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mkannwischer committed Dec 18, 2024
1 parent 5278cb7 commit 151695e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def __init__(self, var="", arch=Arch_Armv7M, target=Target_CortexM7):

def core(self,slothy):
slothy.config.variable_size=True
slothy.optimize_loop("start")
slothy.optimize_loop("start", forced_loop_type=Arch_Armv7M.SubsLoop)

class Armv7mLoopCmp(Example):
def __init__(self, var="", arch=Arch_Armv7M, target=Target_CortexM7):
Expand All @@ -720,7 +720,7 @@ def __init__(self, var="", arch=Arch_Armv7M, target=Target_CortexM7):
def core(self,slothy):
slothy.config.variable_size=True
slothy.config.outputs = ["r6"]
slothy.optimize_loop("start")
slothy.optimize_loop("start", forced_loop_type=Arch_Armv7M.CmpLoop)

class Armv7mLoopVmovCmp(Example):
def __init__(self, var="", arch=Arch_Armv7M, target=Target_CortexM7):
Expand Down

0 comments on commit 151695e

Please sign in to comment.