constraints.md: Allow post_inc operand for "Ya" constraint.
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Tue, 15 Oct 2019 12:14:55 +0000 (12:14 +0000)
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>
Tue, 15 Oct 2019 12:14:55 +0000 (12:14 +0000)
commit28987d8be6f77e88eedaff727176c7bc1030baac
tree32b6643fd51d638e02576eb92d5792bf126d9768
parent9158f0ba97ff987948cd5ce8391a546751c6dff3
constraints.md: Allow post_inc operand for "Ya" constraint.

2019-10-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

* config/msp430/constraints.md: Allow post_inc operand for "Ya"
constraint.
* config/msp430/msp430.c (msp430_legitimate_address_p): Handle
POST_INC.
(msp430_subreg): Likewise.
(msp430_split_addsi): Likewise.
(msp430_print_operand_addr): Likewise.
* config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
(USE_STORE_POST_INCREMENT): Define.
* config/msp430/msp430.md: Use the msp430_general_dst_operand or
msp430_general_dst_nonv_operand predicates for the lvalues of insns.
* config/msp430/predicates.md (msp430_nonpostinc_operand): New.
(msp430_general_dst_operand): New.
(msp430_general_dst_nonv_operand): New.
(msp430_nonsubreg_operand): Remove.
(msp430_nonsubreg_dst_operand): New.
(msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
of defunct msp430_nonsubreg_operand.
(msp430_nonsubregnonpostinc_or_imm_operand): New.

From-SVN: r276995
gcc/ChangeLog
gcc/config/msp430/constraints.md
gcc/config/msp430/msp430.c
gcc/config/msp430/msp430.h
gcc/config/msp430/msp430.md
gcc/config/msp430/predicates.md