https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128710
Bug ID: 128710
Summary: [17 Regession] Incompatible types for vsubd_s64 since
r17-5890-g0ea8000b86f
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: tnfchris at gcc dot gnu.org
Target Milestone: ---
Target: aarch64*
commit r17-5890-g0ea8000b86f changes the vsub_* family of intrinsics and
declares the new scalar types
DEF_NEON_FUNCTION (vsubd, d_integer, ("s0,s0,s0"))
but does not remove them arm_neon.h
This causes a ABI type mismatch which breaks the linux kernel compilation.
Reproducer:
#undef __INT64_TYPE__
#define __INT64_TYPE__ long long
#undef __UINT64_TYPE__
#define __UINT64_TYPE__ unsigned long long
#include <arm_neon.h>
compiled with: -O2 -ffreestanding
See https://godbolt.org/z/f8s7W9bsf
I think the fix is just to remove the forgotten scalar entries from arm_neon.h