]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm/98435: Missed optimization in expanding vector constructor.
authorprathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
Mon, 12 Jul 2021 07:53:06 +0000 (13:23 +0530)
committerprathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
Mon, 12 Jul 2021 07:53:41 +0000 (13:23 +0530)
commit1e72c24d2f3b1427f5e117e371928e7af50d2036
treecb8d62515e6a53ea48823d7ba29d5edefd7c727c
parent5f5fbb550af7d9d6cb56ae8f607fea0eccaa9295
arm/98435: Missed optimization in expanding vector constructor.

The patch moves vec_init pattern from neon.md to vec-common.md,
and adjusts the mode to VDQX to accomodate binary floats. Also,
the pattern is additionally gated on VALID_MVE_MODE.

gcc/ChangeLog:
PR target/98435
* config/arm/neon.md (vec_init): Move to ...
* config/arm/vec-common.md (vec_init): ... here.
Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.

gcc/testsuite/ChangeLog:
PR target/98435
* gcc.target/arm/simd/pr98435.c: New test.
gcc/config/arm/neon.md
gcc/config/arm/vec-common.md
gcc/testsuite/gcc.target/arm/simd/pr98435.c [new file with mode: 0644]