Re: [PATCH 0/2][MSP430] Optimize zero_extend insns and PSImode pointer manipulation

2019-10-15 Thread Segher Boessenkool
On Tue, Oct 15, 2019 at 12:49:18PM -0600, Jeff Law wrote: > There aren't many that use PSImode. In general we don't handle partial > modes well in the optimizers -- largely because they're just not that > common and the exact size is unspecified. PSImode for example can be > anywhere between 16 a

Re: [PATCH 0/2][MSP430] Optimize zero_extend insns and PSImode pointer manipulation

2019-10-15 Thread Jeff Law
On 10/15/19 6:49 AM, Jozef Lawrynowicz wrote: > On Mon, 14 Oct 2019 15:18:08 -0600 > Jeff Law wrote: > >> On 10/8/19 4:34 AM, Jozef Lawrynowicz wrote: >>> In the large memory model, MSP430 instructions have some useful properties >>> when >>> performing byte, word or address-word writes to regis

Re: [PATCH 0/2][MSP430] Optimize zero_extend insns and PSImode pointer manipulation

2019-10-15 Thread Jozef Lawrynowicz
On Mon, 14 Oct 2019 15:18:08 -0600 Jeff Law wrote: > On 10/8/19 4:34 AM, Jozef Lawrynowicz wrote: > > In the large memory model, MSP430 instructions have some useful properties > > when > > performing byte, word or address-word writes to registers or memory: > > - Byte-writes to registers clear

Re: [PATCH 0/2][MSP430] Optimize zero_extend insns and PSImode pointer manipulation

2019-10-14 Thread Jeff Law
On 10/8/19 4:34 AM, Jozef Lawrynowicz wrote: > In the large memory model, MSP430 instructions have some useful properties > when > performing byte, word or address-word writes to registers or memory: > - Byte-writes to registers clear bits 19:8 > - Word-writes to registers clear bits 19:16 > - PSI

[PATCH 0/2][MSP430] Optimize zero_extend insns and PSImode pointer manipulation

2019-10-08 Thread Jozef Lawrynowicz
In the large memory model, MSP430 instructions have some useful properties when performing byte, word or address-word writes to registers or memory: - Byte-writes to registers clear bits 19:8 - Word-writes to registers clear bits 19:16 - PSImode writes to memory clear bits 16:4 of the second memory