[PATCH] aarch64: Use type-qualified builtins for UHSUB Neon intrinsics

Jonathan Wright Jonathan.Wright@arm.com
Thu Nov 11 10:23:54 GMT 2021


Hi,

This patch declares unsigned type-qualified builtins and uses them to
implement halving-subtract Neon intrinsics. This removes the need for
many casts in arm_neon.h.

Bootstrapped and regression tested on aarch64-none-linux-gnu - no
issues.

Ok for master?

Thanks,
Jonathan

---

gcc/ChangeLog:

2021-11-09  Jonathan Wright  <jonathan.wright@arm.com>

	* config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
	qualifiers in generator macros for uhsub builtins.
	* config/aarch64/arm_neon.h (vhsub_s8): Remove unnecessary
	cast.
	(vhsub_s16): Likewise.
	(vhsub_s32): Likewise.
	(vhsub_u8): Use type-qualified builtin and remove casts.
	(vhsub_u16): Likewise.
	(vhsub_u32): Likewise.
	(vhsubq_s8): Remove unnecessary cast.
	(vhsubq_s16): Likewise.
	(vhsubq_s32): Likewise.
	(vhsubq_u8): Use type-qualified builtin and remove casts.
	(vhsubq_u16): Likewise.
	(vhsubq_u32): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rb15036.patch
Type: application/octet-stream
Size: 4455 bytes
Desc: rb15036.patch
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211111/ece06007/attachment.obj>


More information about the Gcc-patches mailing list