Skip to content

SALTyRN: An End-to-End Tool for Verified and Optimized Neon-to-RVV Kernel Translation

Keagan Chern, Charles Hong, Yakun Sophia Shao, Alvin Cheung

cs.PL

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 3.3×3.3\times over handwritten RVV and up to 28.3×28.3\times over state-of-the-art baselines, demonstrating a practical path toward correctness-aware and performance-conscious SIMD kernel migration.

Create a lesson