[PATCH] aarch64: Use type-qualified builtins for [R]SHRN[2] Neon intrinsics

Jonathan Wright Jonathan.Wright@arm.com
Thu Nov 11 10:14:46 GMT 2021


Hi,

Thus patch declares unsigned type-qualified builtins and uses them for
[R]SHRN[2] Neon intrinsics. This removes the need for 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-08  Jonathan Wright  <jonathan.wright@arm.com>

	* config/aarch64/aarch64-simd-builtins.def: Declare type-
	qualified builtins for [R]SHRN[2].
	* config/aarch64/arm_neon.h (vshrn_n_u16): Use type-qualified
	builtin and remove casts.
	(vshrn_n_u32): Likewise.
	(vshrn_n_u64): Likewise.
	(vrshrn_high_n_u16): Likewise.
	(vrshrn_high_n_u32): Likewise.
	(vrshrn_high_n_u64): Likewise.
	(vrshrn_n_u16): Likewise.
	(vrshrn_n_u32): Likewise.
	(vrshrn_n_u64): Likewise.
	(vshrn_high_n_u16): Likewise.
	(vshrn_high_n_u32): Likewise.
	(vshrn_high_n_u64): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rb15032.patch
Type: application/octet-stream
Size: 5360 bytes
Desc: rb15032.patch
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211111/1cfed8d3/attachment-0001.obj>


More information about the Gcc-patches mailing list