Re: [PATCH][MSP430][2/4] Emulate 16-bit shifts with rotate insn when src operand is originally in memory

2019-06-05 Thread Jeff Law
On 6/4/19 7:11 AM, Jozef Lawrynowicz wrote: > This patch reduces code size by enabling the emulation of some 16-bit shift > instructions with the native rotate instructions, when the source operand is > in > memory. This is achieved by forcing the source operand into a register. > > For the

[PATCH][MSP430][2/4] Emulate 16-bit shifts with rotate insn when src operand is originally in memory

2019-06-04 Thread Jozef Lawrynowicz
This patch reduces code size by enabling the emulation of some 16-bit shift instructions with the native rotate instructions, when the source operand is in memory. This is achieved by forcing the source operand into a register. For the following program, the below code size reduction is observed: