Port NEON shifts by immediate to pragma framework
AArch64 NEON intrinsics for immediate shifts are now handled by the pragma-based framework.
This commit integrates NEON shift-by-immediate intrinsics (e.g., vshl_n, vshr_n, vsra_n) into the pragma-based framework for the aarch64 architecture. This consolidates the handling of these operations within a unified framework, removing outdated direct expansion logic and specific machine-dependent code. The change also includes updates to fix tests that were affected by the new handling of zero shifts.
In Details
This patch ports NEON shift-by-immediate intrinsics (vshl_n, vshr_n, vsra_n, etc.) to the pragma-based intrinsic framework for aarch64. It removes specific gimple_fold_builtin cases for these operations from aarch64-builtins.cc and consolidates their definition and expansion within the new framework, which uses specialized GIMPLE classes like gimple_shift_imm. This aligns the handling of these common SIMD operations with the modern intrinsic processing pipeline.
- 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.