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

aarch64: Update atomic_fetch_with_hint to use correct values.

aarch64: Updates atomic built-in functions to use standardized hint values per ACLE.

This commit updates the aarch64 backend to use standardized hint values for atomic fetch-and-modify operations, aligning with recent changes in the ARM Architecture Procedure Call Standard (ACPS) / Architecture Configuration Language Element (ACLE). The require_const_argument for aarch64_expand_atomic_hints_builtins_fetch and the hint values in atomics.md have been adjusted to match the current ACLE state.

In Details

This change modifies the aarch64 backend's implementation of atomic built-ins that use hints. Specifically, it updates aarch64_expand_atomic_hints_builtins_fetch to enforce require_const_argument and adjusts the hint value switch in config/aarch64/atomics.md. This aligns the compiler's behavior with the latest ACLE specifications, which have standardized hint values across fetch and store operations.

For Context
aarch64
The 64-bit version of the ARM architecture, widely used in mobile devices and increasingly in servers and desktops.
atomic operations
Operations that are indivisible and uninterruptible, ensuring that they complete entirely without interference from other threads or processes. Crucial for multi-threaded programming.
fetch-and-modify
A type of atomic operation that reads a memory location, modifies its value based on a given operation, and writes the new value back, all as a single, indivisible step.
hint values
In the context of aarch64 atomics, these are parameters that can influence the behavior or performance of atomic operations, often related to memory ordering or specific hardware capabilities.
ACLE
Architecture Configuration Language Element. A specification that defines details of ARM processor architectures, including instruction sets and built-in functions.
Filed Under: aarch64atomicarchitecturebuiltins