Port NEON saturating shifts by immediate to pragma framework
AArch64 NEON intrinsics for saturating shifts by an immediate are now handled by the pragma-based framework.
This commit migrates several NEON intrinsics for saturating shifts by an immediate value (like vqshl_n) to the pragma-based framework. This change ensures these operations are consistently handled within GCC’s intrinsic processing pipeline for the aarch64 architecture. The update streamlines the codebase by removing deprecated direct intrinsic definitions and tests, relying on the new framework for generation.
In Details
This patch ports NEON saturating shift-by-immediate intrinsics (e.g., vqshl_n) to the pragma-based framework in aarch64. Previously, these were handled via direct expansion or older mechanisms. The pragma framework, inspired by SVE intrinsics, provides a more unified way to define and expand intrinsic functions. This change removes direct definitions from arm_neon.h and associated .def files, centralizing the logic in aarch64-neon-builtins-base.cc and .def.
- NEON
- ARM's advanced SIMD extension, providing a set of instructions for single instruction, multiple data (SIMD) processing.
- intrinsic
- A function that the compiler recognizes and translates directly into a specific machine instruction or a short sequence of instructions, often used to expose low-level hardware features.
- pragma-based framework
- A system within GCC that uses pragmas to define and manage intrinsic functions, allowing for a more structured and extensible way to handle them compared to hardcoding.
- aarch64
- The 64-bit ARM architecture.