msp430.c (msp430_check_index_not_high_mem): New.
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Wed, 30 Oct 2019 14:01:12 +0000 (14:01 +0000)
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>
Wed, 30 Oct 2019 14:01:12 +0000 (14:01 +0000)
commit0149b1b4d7f0d3456e77c036a56c7003ca8a1b64
treec51c5ea93982819333f75bf3d235c56192f090a8
parentd7caa12927dff2ff9c5dd60dd38fb833066afdf6
msp430.c (msp430_check_index_not_high_mem): New.

gcc/ChangeLog:

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

* config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
(msp430_check_plus_not_high_mem): New.
(msp430_op_not_in_high_mem): Use new functions to check if the operand
might be in low memory.
Indicate that a 16-bit absolute address is in lower memory.

gcc/testsuite/ChangeLog:

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

* gcc.target/msp430/mlarge-use-430-insn.c: New test.

From-SVN: r277623
gcc/ChangeLog
gcc/config/msp430/msp430.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/msp430/mlarge-use-430-insn.c [new file with mode: 0644]