Port NEON rounding shifts by immediate to pragma framework
AArch64 NEON intrinsics for rounding shifts by an immediate are now handled by the pragma-based framework.
This commit ports NEON rounding shift-by-immediate intrinsics (e.g., vrshr_n, vrsra_n) to the pragma-based framework on aarch64. This consolidation simplifies the handling of these operations by leveraging the existing framework, which was inspired by SVE intrinsics. The change removes redundant definitions from arm_neon.h and associated files, ensuring consistency in how these SIMD operations are processed.
In Details
This patch ports NEON rounding shift-by-immediate intrinsics (vrshr_n, vrsra_n, etc.) to the pragma-based framework for aarch64. Previously, these might have been handled through separate expansion logic or direct definitions. By moving them to the pragma framework, GCC centralizes the definition and expansion of these SIMD operations, reducing code duplication and improving maintainability. This also involves removing old definitions from arm_neon.h.
- 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.