[PATCH] aarch64: Model zero-high-half semantics of [SU]QXTN instructions

Jonathan Wright Jonathan.Wright@arm.com
Tue Jun 15 09:59:00 GMT 2021


Hi,

As subject, this patch first splits the aarch64_<su>qmovn<mode>
pattern into separate scalar and vector variants. It then further splits
the vector RTL  pattern into big/little endian variants that model the
zero-high-half semantics of the underlying instruction. Modeling
these semantics allows for better RTL combinations while also
removing some register allocation issues as the compiler now knows
that the operation is totally destructive.

Regression tested and bootstrapped on aarch64-none-linux-gnu - no
issues.

Ok for master?

Thanks,
Jonathan

---

gcc/ChangeLog:

2021-06-14  Jonathan Wright  <jonathan.wright@arm.com>

	* config/aarch64/aarch64-simd-builtins.def: Split generator
	for aarch64_<su>qmovn builtins into scalar and vector
	variants.
	* config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
	Define.
	(aarch64_<su>qmovn<mode>_insn_be): Define.
	(aarch64_<su>qmovn<mode>): Split into scalar and vector
	variants. Change vector variant to an expander that emits the
	correct instruction depending on endianness.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rb14565.patch
Type: application/octet-stream
Size: 3108 bytes
Desc: rb14565.patch
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210615/15f4ca7e/attachment.obj>


More information about the Gcc-patches mailing list