Skip to content

Commit

Permalink
Merge branch 'main' into armv7m
Browse files Browse the repository at this point in the history
  • Loading branch information
mkannwischer authored Dec 19, 2024
2 parents 172a592 + 1d9ab09 commit 1e48d58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion slothy/targets/aarch64/aarch64_neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ def start(self, loop_cnt, indentation=0, fixup=0, unroll=1, jump_if_empty=None,
if fixup != 0:
# In case the immediate is >1, we need to scale the fixup. This
# allows for loops that do not use an increment of 1
fixup *= self.additional_data['imm']
assert isinstance(fixup, int)
fixup = simplify(f"{fixup} * ({self.additional_data['imm']})")
yield f"{indent}sub {loop_cnt}, {loop_cnt}, #{fixup}"
if jump_if_empty is not None:
yield f"cbz {loop_cnt}, {jump_if_empty}"
Expand Down

0 comments on commit 1e48d58

Please sign in to comment.