]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Simplify sqmovun expander
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 10 May 2023 11:04:47 +0000 (12:04 +0100)
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 10 May 2023 11:04:47 +0000 (12:04 +0100)
commit5a7dda68000dcbe6c54735313521228812b10893
treeddf2fc4f2a738d953a5bc03871793cec26ca1d8b
parent3ed5677bb61b334a2d01c769859cdd3279e12a07
aarch64: Simplify sqmovun expander

This patch is a no-op as it removes the explicit vec-concat-zero patterns in favour of vczle/vczbe.
This allows us to delete the explicit expander too. Tests are added to ensure the optimisation required
still triggers.

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

gcc/ChangeLog:

* config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>_insn_le): Delete.
(aarch64_sqmovun<mode>_insn_be): Delete.
(aarch64_sqmovun<mode><vczle><vczbe>): New define_insn.
(aarch64_sqmovun<mode>): Delete expander.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/simd/pr99195_4.c: Add tests for sqmovun.
gcc/config/aarch64/aarch64-simd.md
gcc/testsuite/gcc.target/aarch64/simd/pr99195_4.c