]> git.ipfire.org Git - thirdparty/gcc.git/commit
[AARCH64] Fix PR 101205: csinv does not have an zero_extend version
authorAndrew Pinski <apinski@marvell.com>
Sat, 17 Jul 2021 08:16:28 +0000 (01:16 -0700)
committerAndrew Pinski <apinski@marvell.com>
Mon, 19 Jul 2021 15:52:56 +0000 (08:52 -0700)
commitdb95ac7745b284d1fd667ee6262b4afc778fe074
treefa51f1b45cbf4b8277be8068f280576c1603db57
parent3522fe2a115a2118553dad9aa98e524674fd8114
[AARCH64] Fix PR 101205: csinv does not have an zero_extend version

So the problem is even though there was a csneg with
a zero_extend in the front, there was not one for csinv.
This fixes it by extending that pattern.

OK? Bootstrapped and tested on aarch64-linux-gnu with no regressions.

gcc/ChangeLog:

PR target/101205
* config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
(*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.

gcc/testsuite/ChangeLog:

PR target/101205
* gcc.target/aarch64/csinv-neg-1.c: New test.
gcc/config/aarch64/aarch64.md
gcc/testsuite/gcc.target/aarch64/csinv-neg-1.c [new file with mode: 0644]