]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: Enable no-writeback vldr.16/vstr.16.
authorJoe Ramsay <joe.ramsay@arm.com>
Wed, 29 Jul 2020 13:04:28 +0000 (14:04 +0100)
committerJoe Ramsay <joe.ramsay@arm.com>
Wed, 19 Aug 2020 12:17:49 +0000 (12:17 +0000)
commit10e0d2010f0597e6ae7efb88142b8820608c585e
treebfde7627d221e710aa3c70b4c315a0a06b5b4d06
parent7f976034ec4997d2df5ede70c1312de3acd7b4c4
arm: Enable no-writeback vldr.16/vstr.16.

There was previously no way to specify that a register operand cannot
have any writeback modifiers, and as a result the argument to vldr.16
and vstr.16 could be erroneously output with post-increment. This
change adds a constraint which forbids all writeback, and
selects it in the relevant case for vldr.16 and vstr.16

gcc/ChangeLog:

PR target/96682
* config/arm/arm-protos.h (arm_coproc_mem_operand_no_writeback):
Declare prototype.
(arm_mve_mode_and_operands_type_check): Declare prototype.
* config/arm/arm.c (arm_coproc_mem_operand): Refactor to use
_arm_coproc_mem_operand.
(arm_coproc_mem_operand_wb): New function to cover full, limited
and no writeback.
(arm_coproc_mem_operand_no_writeback): New constraint for memory
operand with no writeback.
(arm_print_operand): Extend 'E' specifier for memory operand
that does not support writeback.
(arm_mve_mode_and_operands_type_check): New constraint check for
MVE memory operands.
* config/arm/constraints.md: Add Uj constraint for VFP vldr.16
and vstr.16.
* config/arm/vfp.md (*mov_load_vfp_hf16): New pattern for
vldr.16.
(*mov_store_vfp_hf16): New pattern for vstr.16.
(*mov<mode>_vfp_<mode>16): Remove MVE moves.

gcc/testsuite/ChangeLog:

PR target/96682
* gcc.target/arm/mve/intrinsics/mve-vldstr16-no-writeback.c: New test.

(cherry picked from commit 9f6abd2db90151c8966d2d2718ab8c299abf1105)
gcc/config/arm/arm-protos.h
gcc/config/arm/arm.c
gcc/config/arm/constraints.md
gcc/config/arm/vfp.md
gcc/testsuite/gcc.target/arm/mve/intrinsics/mve-vldstr16-no-writeback.c [new file with mode: 0644]