]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: AND/BIC combines for unpacked SVE FP comparisons
authorSpencer Abson <spencer.abson@arm.com>
Wed, 2 Jul 2025 21:31:40 +0000 (21:31 +0000)
committerSpencer Abson <spencer.abson@arm.com>
Tue, 15 Jul 2025 08:23:38 +0000 (08:23 +0000)
commit1dffa305c50f28726d7a3323e1006fc1addad726
treeee3811c58516cf19fba1527dc7471c92dd481b41
parent3c26783bf6fd15a134a424e8c108d1dc8df3fc44
aarch64: AND/BIC combines for unpacked SVE FP comparisons

This patch extends the splitting patterns for combining FP comparisons
with predicated logical operations such that they cover all of SVE_F.

gcc/ChangeLog:

* config/aarch64/aarch64-sve.md (*fcm<cmp_op><mode>_and_combine):
Extend from SVE_FULL_F to SVE_F.
(*fcmuo<mode>_and_combine): Likewise.
(*fcm<cmp_op><mode>_bic_combine): Likewise.
(*fcm<cmp_op><mode>_nor_combine): Likewise.
(*fcmuo<mode>_bic_combine): Likewise.
(*fcmuo<mode>_nor_combine): Likewise.  Move the comment here to
above fcmuo<mode>_bic_combine, since it applies to both patterns.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/sve/unpacked_fcm_combines_1.c: New test.
* gcc.target/aarch64/sve/unpacked_fcm_combines_2.c: Likewise.
gcc/config/aarch64/aarch64-sve.md
gcc/testsuite/gcc.target/aarch64/sve/unpacked_fcm_combines_1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/sve/unpacked_fcm_combines_2.c [new file with mode: 0644]