]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: Fix MVE's vcmp vector-scalar patterns [PR107987]
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Tue, 6 Dec 2022 12:06:33 +0000 (12:06 +0000)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Tue, 6 Dec 2022 12:08:36 +0000 (12:08 +0000)
commited34c3bc3428bce663d42e9eeda10bc0c5d56d5c
tree91ea467c55024ebf1ac08cbde0395f1690877250
parentbcf89f05f7b0b1732553e224548f1de55321e437
arm: Fix MVE's vcmp vector-scalar patterns [PR107987]

This patch surrounds the scalar operand of the MVE vcmp patterns with a
vec_duplicate to ensure both operands of the comparision operator have the same
(vector) mode.

gcc/ChangeLog:

PR target/107987
* config/arm/mve.md (mve_vcmp<mve_cmp_op>q_n_<mode>,
@mve_vcmp<mve_cmp_op>q_n_f<mode>): Apply vec_duplicate to scalar
operand.

gcc/testsuite/ChangeLog:

* gcc.target/arm/mve/pr107987.c: New test.
gcc/config/arm/mve.md
gcc/testsuite/gcc.target/arm/mve/pr107987.c [new file with mode: 0644]