]> gcc.gnu.org Git - gcc.git/commit
aarch64: Improve RTL representation of ADDP instructions
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 7 Jun 2023 15:18:01 +0000 (16:18 +0100)
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 7 Jun 2023 15:18:01 +0000 (16:18 +0100)
commita053c659f6bbc2d2eaf61fb3aad8c52899d0deb7
treeee56405f5f777f5fa15e7c05c2c0116658ca7a11
parent000f8b9a6a0ec7eaae9535e73c8f4fc3ea10a364
aarch64: Improve RTL representation of ADDP instructions

Similar to the ADDLP instructions the non-widening ADDP ones can be
represented by adding the odd lanes with the even lanes of a vector.
These instructions take two vector inputs and the architecture spec
describes the operation as concatenating them together before going
through it with pairwise additions.
This patch chooses to represent ADDP on 64-bit and 128-bit input
vectors slightly differently, reasons explained in the comments
in aarhc64-simd.md.

Bootstrapped and tested on aarch64-none-linux-gnu and aarch64_be-none-elf.

gcc/ChangeLog:

* config/aarch64/aarch64-simd.md (aarch64_addp<mode><vczle><vczbe>):
Reimplement as...
(aarch64_addp<mode>_insn): ... This...
(aarch64_addp<mode><vczle><vczbe>_insn): ... And this.
(aarch64_addp<mode>): New define_expand.
gcc/config/aarch64/aarch64-simd.md
This page took 0.065835 seconds and 6 git commands to generate.