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

Port NEON FP min/max reduction intrinsics to pragma framework

AArch64 NEON floating-point min/max reduction intrinsics are now handled by the pragma-based framework.

This commit ports NEON floating-point min/max reduction intrinsics (vminv, vmaxv) to the pragma-based framework for aarch64. While the AArch64 instructions differ semantically from GCC’s reduction operations, this change ensures they are correctly handled by expanding them to UNSPEC_FMINV and UNSPEC_FMAXV. This refactoring unifies the handling of reduction intrinsics and removes older, direct expansion logic for these FP variants.

In Details

This patch brings the floating-point NEON reduction intrinsics vminv and vmaxv for aarch64 into the pragma-based framework. The AArch64 instructions fminv/fmaxv have different semantics than GCC's internal IFN_REDUC_MIN/IFN_REDUC_MAX operations, necessitating expansion to UNSPEC values. This commit centralizes their handling within the framework, removing specific aarch64_general_gimple_fold_builtin cases and associated intrinsic definitions from arm_neon.h.

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.
UNSPEC
An internal GCC representation for operations that do not have a direct mapping to a standard GIMPLE operation, often used for target-specific instructions or complex expansions.
Filed Under: aarch64NEONintrinsicsfloating-point