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

Jonathan Wright Jonathan.Wright@arm.com
Thu Nov 11 10:31:09 GMT 2021


Hi,

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

Regression tested and bootstrapped 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: Declare unsigned
	builtins for vector reduction.
	* config/aarch64/arm_neon.h (vaddv_u8): Use type-qualified
	builtin and remove casts.
	(vaddv_u16): Likewise.
	(vaddv_u32): Likewise.
	(vaddvq_u8): Likewise.
	(vaddvq_u16): Likewise.
	(vaddvq_u32): Likewise.
	(vaddvq_u64): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rb15057.patch
Type: application/octet-stream
Size: 2961 bytes
Desc: rb15057.patch
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211111/56a14b41/attachment.obj>


More information about the Gcc-patches mailing list