Learn SVE and SME programming with SIMD Loops
Introduction
About Single Instruction, Multiple Data loops
Using SIMD Loops
Code example
Learning with SIMD Loops
Next Steps
Learn SVE and SME programming with SIMD Loops
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Run
uname -m. Expect aarch64 on Linux or arm64 on macOS. If you see another value, switch to an Arm-based system before continuing.Browse the
loops directory and open loops.inc. It lists the kernels with brief descriptions and the identifiers used by the project.Open
loops/loop_202.c and locate inner_loop_202() around lines 60–70. Then open loops/matmul_fp32.c, which implements C[M × N] = A[M × K] × B[K × N].You can explore predication, vector-length-agnostic (VLA) programming, gather/scatter, streaming mode, and ZA tiles. Implementations use C and Arm C Language Extensions (ACLE) intrinsics.
Build and run the selected kernel with the project runner, then validate its results against the C reference implementation. Choose the build target for each variant to compare scalar, Neon, SVE and SVE2, and SME2 behavior.