SALTyRN: An End-to-End Tool for Verified and Optimized Neon-to-RVV Kernel Translation
Abstract
Modern CPUs rely on SIMD extensions to accelerate data-parallel workloads, but optimized intrinsic code remains difficult to port across vector ISAs. Arm Neon exposes fixed-size vector operations, whereas RISC-V Vector (RVV) uses a vector-length-agnostic execution model, so migration requires changes to loop structure, tail handling, and intrinsic selection. Manual rewriting is slow and error-prone, while existing portable approaches do not provide automated Neon-to-RVV translation with formal correctness checking. In this tool paper, we present SALTyRN, an end-to-end tool for AI-assisted Neon-to-RVV translation. SALTyRN first uses structured prompts with architectural constraints and intrinsics semantics to generate compilable RVV candidates, using compiler feedback for iterative repair. It then checks bounded semantic equivalence using SMT-based symbolic execution over modeled Neon and RVV intrinsic semantics. Finally, the verified RVV baselines are optimized against the Saturn RVV backend using compilation, correctness, and performance feedback, with the final optimized candidate symbolically re-verified before acceptance. We evaluate SALTyRN on 35 XNNPack kernels with both Neon implementations and handwritten RVV baselines. The generated RVV kernels pass bounded equivalence checks across representative batch sizes. At VLEN=512, optimized RVV kernels achieve per-kernel geometric-mean speedups over the evaluated workload sizes of up to over handwritten RVV and up to over state-of-the-art baselines, demonstrating a practical path toward correctness-aware and performance-conscious SIMD kernel migration.
Create a lesson
Related papers
Teal: Verifiable Kernel Compilation through Instruction-Centric Lifting
Shared title terminologycs.PLShriram Chandran, Alexandru Calotoiu, Marcin Copik et al.
Keel: A Verified In-Kernel Proof Checker for Proof Carrying BPF
Shared title terminologycs.PLYalu Cai, Tung-Che Chang, Santosh Nagarakatte
Probabilistic Loop Kernels: Exact Inference and Equivalence
Shared title terminologycs.PLBohan Ma, Mingqi Yang, Mingshuai Chen et al.
ConstraintFlow: Specifying, Verifying, and Executing DNN Certifiers
Shared title terminologycs.PLAvaljot Singh, Yasmin Chandini Sarita, Qiuhan Gu et al.
Verifying \varepsilon-Differential Privacy Bit by Bit
Shared title terminologycs.PLZachary Susag, Justin Hsu
From Sequential to Dataflow: Formally-verified Compilation for Concurrent and Distributed Architectures
Shared title terminologycs.PLSebastian Ertel, Mohamed Elsheikh, Carmine Abate