MSP430: Tweaks to generation of 430X instructions
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Thu, 24 Oct 2019 13:34:54 +0000 (13:34 +0000)
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>
Thu, 24 Oct 2019 13:34:54 +0000 (13:34 +0000)
commitd8e4dc54a615a1c6d268ecae70bcf8e85054aa7e
treefec8c1d2bee587326f0b7a7a35bb9c5849a0469f
parente227594789d909fbad56f6036910938678738f92
MSP430: Tweaks to generation of 430X instructions

gcc/ChangeLog:

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

* config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
* config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
shift amount is between 1 and 4.
(430x_arithmetic_shift_right): Use RRAM when the constant shift amount
is between 1 and 4.

gcc/testsuite/ChangeLog:

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

* gcc.target/msp430/emulate-slli.c: Skip for -mcpu=msp430.
Add shift by a constant 5 bits.
Update scan-assembler directives.
* gcc.target/msp430/emulate-srai.c: Likewise.
* gcc.target/msp430/emulate-srli.c: Skip for -mcpu=msp430.

From-SVN: r277394
gcc/ChangeLog
gcc/config/msp430/constraints.md
gcc/config/msp430/msp430.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/msp430/emulate-slli.c
gcc/testsuite/gcc.target/msp430/emulate-srai.c
gcc/testsuite/gcc.target/msp430/emulate-srli.c