Skip to content

Commit

Permalink
Merge pull request #112 from slothy-optimizer/m4-fix-ci
Browse files Browse the repository at this point in the history
Add M7 examples to CI
  • Loading branch information
mkannwischer authored Dec 4, 2024
2 parents 25a6d4a + 53e384b commit 8df6fb5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test_basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
target: [slothy.targets.arm_v81m.cortex_m55r1, slothy.targets.arm_v81m.cortex_m85r1, slothy.targets.aarch64.cortex_a55, slothy.targets.aarch64.cortex_a72_frontend, slothy.targets.aarch64.apple_m1_firestorm_experimental, slothy.targets.aarch64.apple_m1_icestorm_experimental]
target: [slothy.targets.arm_v7m.cortex_m7,slothy.targets.arm_v81m.cortex_m55r1, slothy.targets.arm_v81m.cortex_m85r1, slothy.targets.aarch64.cortex_a55, slothy.targets.aarch64.cortex_a72_frontend, slothy.targets.aarch64.apple_m1_firestorm_experimental, slothy.targets.aarch64.apple_m1_icestorm_experimental]
steps:
- uses: actions/checkout@v3
- name: Install python dependencies
Expand Down
1 change: 1 addition & 0 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,7 @@ def main():
parser.add_argument("--log-model", default=False, action="store_true")
parser.add_argument("--log-model-dir", type=str, default="models")
parser.add_argument("--only-target", type=str,choices=[
Target_CortexM7.__name__,
Target_CortexM55r1.__name__, Target_CortexM85r1.__name__, \
Target_CortexA55.__name__, Target_CortexA72.__name__, Target_AppleM1_firestorm.__name__, \
Target_AppleM1_icestorm.__name__])
Expand Down
12 changes: 12 additions & 0 deletions examples/naive/armv7m/loop_vmov_cmp.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* For example, r5 represents an address where we will stop iterating and r6 is
the actual pointer which is incremented inside the loop. */

mov.w r6, #0
add.w r5, r6, #64
vmov s0, r5

start:
add r6, r6, #4
vmov r5, s0
cmp r6, r5
bne start

0 comments on commit 8df6fb5

Please sign in to comment.