On Wed, Jul 01, 2026 at 12:56:05PM +0000, Karl Meakin via Sourceware Forge
wrote:
> From: Karl Meakin <[email protected]>
>
> Comparing `arg_type` and `TREE_TYPE (b)` by pointer address causes an
> assertion failure when one type is a `typedef` for the other (eg
> `uint32x2_t` and `__Uint32x2_t`. Fix by using a more relaxed comparison.
>
> gcc/ChangeLog:
>
> * config/aarch64/aarch64-neon-builtins-base.cc: Compare
> `arg_type` and `TREE_TYPE (b)` by comparing their mode and
> unsigned-ness, rather than their pointer address.
Normal type comparison in the middle-end would be
types_compatible_p (arg_type, TREE_TYPE (b))
Jakub