Re: [PATCH, ARM] Thumb-2 12-bit immediates in ADD and SUB instructions

2011-06-02 Thread Ramana Radhakrishnan
Would you include this in your patch? Or should we submit it as a separate patch? Could you submit this as a follow-up patch that touches the costs. I would rather that these changes also went in when we were looking at this area ? cheers Ramana

Re: [PATCH, ARM] Thumb-2 12-bit immediates in ADD and SUB instructions

2011-06-01 Thread Andrew Stubbs
On 31/05/11 16:27, Dmitry Plotnikov wrote: Would you include this in your patch? Or should we submit it as a separate patch? I'm not sure I *can* commit your patches, legally speaking, although this one is small enough that probably it's ok ... probably. Perhaps you should submit it yourself

Re: [PATCH, ARM] Thumb-2 12-bit immediates in ADD and SUB instructions

2011-05-31 Thread Dmitry Plotnikov
On 05/20/2011 02:37 PM, Andrew Stubbs wrote: On 20/05/11 10:45, Dmitry Plotnikov wrote: This patch adds support for 12-bit immediate values for Thumb-2 in ADD and SUB instructions. We added two new alternatives for *arm_addsi3 which make use of two new constraints for 12-bit values. Also we m

Re: [PATCH, ARM] Thumb-2 12-bit immediates in ADD and SUB instructions

2011-05-20 Thread Chung-Lin Tang
On 2011/5/21 12:06 AM, Chung-Lin Tang wrote: > I'll also note here that ADD/SUB are not the only instructions with > 12-bit immediate under Thumb-2; so does AND, ORR, etc. FTR, I was wrong on the above statement. Only add/sub seems to have the wide constant operands. CL

Re: [PATCH, ARM] Thumb-2 12-bit immediates in ADD and SUB instructions

2011-05-20 Thread Andrew Stubbs
On 20/05/11 10:45, Dmitry Plotnikov wrote: This patch adds support for 12-bit immediate values for Thumb-2 in ADD and SUB instructions. We added two new alternatives for *arm_addsi3 which make use of two new constraints for 12-bit values. Also we modified costs of PLUS rtx expression. A alrea

Re: [PATCH, ARM] Thumb-2 12-bit immediates in ADD and SUB instructions

2011-05-20 Thread Chung-Lin Tang
On 2011/5/20 下午 12:10, Richard Earnshaw wrote: > > On Fri, 2011-05-20 at 18:06 +0200, Chung-Lin Tang wrote: >> On 2011/5/20 11:45 AM, Dmitry Plotnikov wrote: >>> This patch adds support for 12-bit immediate values for Thumb-2 in ADD and >>> SUB instructions. We added two new alternatives for *arm

Re: [PATCH, ARM] Thumb-2 12-bit immediates in ADD and SUB instructions

2011-05-20 Thread Richard Earnshaw
On Fri, 2011-05-20 at 18:06 +0200, Chung-Lin Tang wrote: > On 2011/5/20 11:45 AM, Dmitry Plotnikov wrote: > > This patch adds support for 12-bit immediate values for Thumb-2 in ADD and > > SUB instructions. We added two new alternatives for *arm_addsi3 which > > make use of two new constraints fo

Re: [PATCH, ARM] Thumb-2 12-bit immediates in ADD and SUB instructions

2011-05-20 Thread Chung-Lin Tang
On 2011/5/20 11:45 AM, Dmitry Plotnikov wrote: > This patch adds support for 12-bit immediate values for Thumb-2 in ADD and > SUB instructions. We added two new alternatives for *arm_addsi3 which > make use of two new constraints for 12-bit values. Also we modified > costs of PLUS rtx expression.

[PATCH, ARM] Thumb-2 12-bit immediates in ADD and SUB instructions

2011-05-20 Thread Dmitry Plotnikov
This patch adds support for 12-bit immediate values for Thumb-2 in ADD and SUB instructions. We added two new alternatives for *arm_addsi3 which make use of two new constraints for 12-bit values. Also we modified costs of PLUS rtx expression. This patch reduces size of libevas by 1788 bytes (fro