GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
aarch64

aarch64: Port NEON narrowing shifts to pragma framework

Integrates NEON narrowing shift intrinsics into GCC's pragma-based framework.

This commit ports a large set of NEON narrowing shift and round-shift intrinsics to the pragma-based framework on the aarch64 architecture. This includes functions like vshrn_n, vrshrn_n, vqshrn_n, and their variants, consolidating their implementation within GCC’s intrinsic handling system.

In Details

Migrates numerous NEON narrowing shift intrinsics (e.g., vshrn_n, vqshrn_n, vrshrn_n and their high/saturated/unsigned variants) to the pragma-based framework for aarch64. This involves significant updates to aarch64-neon-builtins-base.cc and .def files, alongside cleanup in aarch64-builtins.cc and removal of redundant definitions from arm_neon.h.

For Context
NEON
ARM's Advanced SIMD extension, providing hardware acceleration for vector processing tasks.
aarch64
The 64-bit execution state of the ARMv8-A architecture and later. It is the architecture for modern 64-bit ARM processors.
pragma-based framework
A system within the compiler that uses pragmas (compiler directives) to manage and define intrinsic functions, often for SIMD or specialized hardware instructions, allowing for a more structured and maintainable implementation.
SIMD
Single Instruction, Multiple Data. A class of parallel computers in Flynn's taxonomy that performs the same operation on multiple data points simultaneously.
intrinsics
Functions that provide a way to access specific hardware instructions or features from high-level programming languages, often for performance-critical operations like SIMD.
narrowing shift
A bit shift operation that reduces the size of the data type, typically converting a larger vector element type to a smaller one, often with saturation or rounding.
Filed Under: aarch64NEONSIMDintrinsics