]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: [MVE] Fix operands order in vbicq_f [PR122223] releases/gcc-13
authorChristophe Lyon <christophe.lyon@linaro.org>
Thu, 9 Oct 2025 14:09:26 +0000 (14:09 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Fri, 7 Nov 2025 10:53:10 +0000 (10:53 +0000)
commit18ba45d01087cd0d0cdf3e3cfdd1336f01b77c1c
tree13b783defa41392ee51617c74ea16e152d4f97ac
parent1c69cae84eca8df6f946b82269ccecb7ad7eef2b
arm: [MVE] Fix operands order in vbicq_f [PR122223]

The operands of the floating-point version of vbicq were swapped, this
patch fixes this.

For this backport the testcase needs an adjustment: the code is less
optimized than with gcc-15, so we still generate the 0.0f constant and
a vbic instruction.  We actually check that the 0.0f constant is in
the right vbic parameter.

gcc/ChangeLog:
PR target/122223
* config/arm/mve.md (@mve_vbicq_f<mode>): Fix operands order.

gcc/testsuite/ChangeLog:
PR target/122223
* gcc.target/arm/mve/intrinsics/pr122223.c: New test.

(cherry picked from commits
81e226440381cc3e033df7e58cc7793c9b4b4e25 and
a52888dc71924afb6cd187b0e5f18d2be4c68a07)
gcc/config/arm/mve.md
gcc/testsuite/gcc.target/arm/mve/intrinsics/pr122223.c [new file with mode: 0644]