Port NEON vector shifts to pragma framework
AArch64 NEON intrinsics for shifts by a vector are now handled by the pragma-based framework.
This commit ports various NEON shift intrinsics that operate with a vector as the shift amount (e.g., vshl, vrshl, vqshl) to the pragma-based framework on aarch64. This refactoring centralizes the handling of these SIMD operations, removing them from direct expansion in aarch64-builtins.cc and consolidating their definitions within the pragma framework. The change also cleans up associated .def files and removes no-longer-called builtins.
In Details
This patch moves NEON shift intrinsics that use a vector as the shift amount (vshl, vrshl, vqshl, vqrshl, and their variants) to the pragma-based framework for aarch64. Previously, some of these might have been handled by specific gimple_fold_builtin cases in aarch64-builtins.cc. By porting them to the pragma framework, GCC aligns these operations with the new intrinsic handling strategy, similar to SVE intrinsics, and removes the older, specific expansion code.
- 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.
- SIMD
- Single Instruction, Multiple Data. A class of parallel computers in Flynn's taxonomy that perform the same operation on multiple data points simultaneously.