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

Add intrinsic framework support for NEON shifts [NFC]

GCC's aarch64 backend gains foundational support for NEON shift intrinsics within its intrinsic framework.

This commit introduces the foundational elements within GCC’s aarch64 backend for handling NEON shift intrinsics using the new pragma-based framework. It defines new shape checkers for shifts, adds syntax support for parsing element types, and introduces several new GIMPLE-based classes designed to represent instructions, specifically for shifts with immediate or register operands. These building blocks are necessary for subsequent commits that will port specific NEON shift intrinsics.

In Details

This patch lays the groundwork in the aarch64 backend for the pragma-based intrinsic framework, specifically targeting NEON shift operations. It introduces new intrinsic shape checkers (shift_right, shift_left_long), updates parsing for element types (e.g., d<elt>), and defines new GIMPLE-based function classes (gimple_insn_based_function, gimple_shift_imm, gimple_shift_reg). These new classes and checkers are inspired by SVE's intrinsic handling and are designed to represent and expand intrinsics that map to specific instructions, including shifts by immediate or register. This i…

For Context
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.
GIMPLE
GCC's Internal Machine-code Element Representation. An intermediate representation used by the compiler for optimization and analysis.
SVE
Scalable Vector Extension for ARM. A flexible vector processing architecture.
Filed Under: aarch64NEONintrinsicsframework