This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][MSP430] Use 430 insns in the large memory model for more patterns
- From: Jeff Law <law at redhat dot com>
- To: Jozef Lawrynowicz <jozef dot l at mittosystems dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 26 Oct 2019 12:26:44 -0600
- Subject: Re: [PATCH][MSP430] Use 430 insns in the large memory model for more patterns
- References: <20191025132425.75af5473@jozef-kubuntu>
On 10/25/19 6:24 AM, Jozef Lawrynowicz wrote:
> Where possible, it is always desirable to use 430 format instructions when
> compiling for the 430X ISA and the large memory model. 430 instructions have
> reduced code size and faster execution time.
>
> This patch recognizes a couple of new patterns in which we can use 430 insns in
> the large memory model.
>
> Successfully regtested on trunk.
>
> Ok to apply?
>
>
> 0001-MSP430-Use-430-insns-in-the-large-memory-model-for-m.patch
>
> From ba3a8eafeba08dc034e219f892f2784c16f94c40 Mon Sep 17 00:00:00 2001
> From: Jozef Lawrynowicz <jozef.l@mittosystems.com>
> Date: Thu, 24 Oct 2019 15:17:29 +0100
> Subject: [PATCH] MSP430: Use 430 insns in the large memory model for more
> patterns
>
> gcc/ChangeLog:
>
> 2019-10-25 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-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
>
> * gcc.target/msp430/mlarge-use-430-insn.c: New test.
>
OK
jeff