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

Fix invalid call in aarch64 ignored_return_1.c test

Corrects an AArch64 test case by ensuring an intrinsic function is called, not just passed as an argument.

The ignored_return_1.c test for AArch64 inadvertently passed the function bar itself to the vld1q_u8 intrinsic instead of calling it. With recent changes moving load intrinsics to the pragma-based framework, this led to type-checking errors. This commit fixes the test by correctly calling bar, ensuring it still validates that ignored intrinsic results do not cause an ICE.

In Details

The AArch64 test gcc.target/aarch64/advsimd-intrinsics/ignored_return_1.c contained an invalid call where the function bar was passed as an argument to vld1q_u8 rather than being invoked. Following the migration of load intrinsics to the pragma-based framework, this argument type mismatch triggers -Wincompatible-pointer-types. The fix ensures bar is called, preserving the test's purpose of checking that ignored intrinsic return values do not lead to an internal compiler error (ICE).

For Context
ICE
Internal Compiler Error. A severe error within the compiler itself that prevents compilation from completing.
vld1q_u8
An AArch64 NEON intrinsic function for loading 128 bits (16 bytes) of unsigned 8-bit integers.
Pragma-based framework
A mechanism in GCC where specific code generation patterns and behaviors for intrinsics are defined using pragmas, allowing for a more structured and maintainable way to handle them.
Filed Under: testsuiteaarch64intrinsicsbugfix