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

aarch64: Fix ICE in gimple_load_store::fold

Corrects a type mismatch in AArch64 NEON intrinsic handling that caused compiler crashes.

A recent change on AArch64 incorrectly replaced gimple_build_call_internal with build_ifn_call for the IFN_STORE_LANES intrinsic. Since IFN_STORE_LANES returns void, this led to a type mismatch when the compiler attempted to assign its return value, causing an Internal Compiler Error (ICE). This patch reverts the change specifically for this call site.

In Details

The gimple_load_store_interleaved::fold method on AArch64 was updated to use build_ifn_call instead of gimple_build_call_internal for intrinsics like IFN_STORE_LANES. However, IFN_STORE_LANES is a void intrinsic, and build_ifn_call incorrectly attempted to assign its non-existent return value to f.lhs(), creating a type mismatch and leading to an ICE. This commit reverts that specific change, restoring the use of gimple_build_call_internal for this intrinsic.

For Context
ICE
Internal Compiler Error. A crash within the compiler itself, typically due to an unexpected internal state or bug, rather than an issue with the user's code.
gimple
GCC's internal representation for the middle-end of the compiler. It's a three-address code form that simplifies various optimizations.
NEON
ARM's advanced SIMD (Single Instruction, Multiple Data) architecture extension, providing vector processing capabilities.
Filed Under: aarch64compiler-errorneonintrinsics