]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: add support for partial modes to last extractions [PR118464]
authorTamar Christina <tamar.christina@arm.com>
Fri, 7 Mar 2025 13:32:11 +0000 (13:32 +0000)
committerTamar Christina <tamar.christina@arm.com>
Fri, 7 Mar 2025 13:32:11 +0000 (13:32 +0000)
commit9798ba2c6b4cccb17277a9d5fc04d285bf48f742
tree7a3343c5b08c726797e6ee51d7d4168347eb6d52
parent7950d4cceb9fc7559b1343c95fc651cefbe287a0
aarch64: add support for partial modes to last extractions [PR118464]

The last extraction instructions work full both full and partial SVE vectors,
however we currrently only define them for FULL vectors.

Early break code for VLA now however requires partial vector support, which
relies on extract_last support.

I have not added any new testcases as they overlap with the existing Early
break tests which now fail without this.

gcc/ChangeLog:

PR tree-optimization/118464
PR tree-optimization/116855
* config/aarch64/aarch64-sve.md (@extract_<last_op>_<mode>,
@fold_extract_<last_op>_<mode>,
@aarch64_fold_extract_vector_<last_op>_<mode>): Change SVE_FULL to
SVE_ALL.
* config/aarch64/iterators.md (vccore): Add more partial types.
gcc/config/aarch64/aarch64-sve.md
gcc/config/aarch64/iterators.md