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

aarch64: Port vneg intrinsics to pragma-based framework

AArch64 NEON's negation (vneg) intrinsics are now implemented using the pragma-based framework, with new tests and a fix for a codegen regression.

The vneg family of NEON intrinsics for the AArch64 architecture has been ported to GCC’s pragma-based framework. This change standardizes the implementation and includes assembly tests for all variants. A test case was fixed due to a codegen regression where vneg on INT_MIN is no longer considered undefined behavior.

In Details

This commit integrates the AArch64 NEON vneg (vector negate) intrinsics into the pragma-based framework. It introduces new function bases and declarations, removes obsolete function definitions from arm_neon.h, and updates test cases. Notably, a codegen regression in signbit-2.c was addressed; previously, vneg on INT_MIN was UB, allowing optimizations that are no longer valid.

For Context
NEON intrinsics
Special functions provided by ARM's NEON SIMD (Single Instruction, Multiple Data) architecture that allow C/C++ code to directly manipulate vector registers and perform parallel operations.
pragma-based framework
An internal GCC mechanism for defining and handling intrinsics using pragmas, providing a more structured and unified way to integrate hardware-specific instructions into the compiler.
AArch64
The 64-bit ARM architecture, featuring a new instruction set and architectural enhancements over its 32-bit predecessors.
INT_MIN
The smallest possible value for a signed integer type. Negating INT_MIN on systems using two's complement representation results in undefined behavior if the result cannot be represented.
UB
Undefined Behavior. In programming, this refers to behavior that occurs when a program violates a computer language's specification, leading to unpredictable results.
Filed Under: aarch64neonintrinsics