[PATCH] arm: Fix MVE's vcmp vector-scalar patterns [PR107987]

Andre Simoes Dias Vieira Andre.SimoesDiasVieira@arm.com
Tue Dec 6 11:18:47 GMT 2022


Hi,

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.

Regression tested on arm-none-eabi. Is this OK for trunk? And a backport to GCC 12?

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/testsuite/gcc.target/arm/mve/pr107987.c: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr107987.patch
Type: application/octet-stream
Size: 1971 bytes
Desc: pr107987.patch
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20221206/d1761062/attachment.obj>


More information about the Gcc-patches mailing list