From 53e384ba1958be6444dc30befe0ccb14ace4a711 Mon Sep 17 00:00:00 2001 From: "Matthias J. Kannwischer" Date: Wed, 4 Dec 2024 13:00:13 +0800 Subject: [PATCH] add M7 examples to CI and add missing naive code --- .github/workflows/test_basic.yaml | 2 +- example.py | 1 + examples/naive/armv7m/loop_vmov_cmp.s | 12 ++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 examples/naive/armv7m/loop_vmov_cmp.s diff --git a/.github/workflows/test_basic.yaml b/.github/workflows/test_basic.yaml index c7ad7ab4..398cb039 100644 --- a/.github/workflows/test_basic.yaml +++ b/.github/workflows/test_basic.yaml @@ -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 diff --git a/example.py b/example.py index 9f2a360e..fc133550 100644 --- a/example.py +++ b/example.py @@ -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__]) diff --git a/examples/naive/armv7m/loop_vmov_cmp.s b/examples/naive/armv7m/loop_vmov_cmp.s new file mode 100644 index 00000000..0086c91d --- /dev/null +++ b/examples/naive/armv7m/loop_vmov_cmp.s @@ -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 \ No newline at end of file