Re: How to write pattern for addition with carry operation

2008-06-07 Thread Ian Lance Taylor
"Mohamed Shafi" <[EMAIL PROTECTED]> writes: >> You can look into config/i386.md, how i.e. adddi3 is expanded and split in >> case of !TARGET_64BIT. > > But is it scheduling safe? > I mean you can't have addc executed before add. If i am right there > will be no dependency between the two instructi

Re: How to write pattern for addition with carry operation

2008-06-07 Thread Uros Bizjak
On Sat, Jun 7, 2008 at 11:18 AM, Mohamed Shafi <[EMAIL PROTECTED]> wrote: >>> The 16bit target that i am porting to gcc4.1.2 doesn't have any >>> instructions for 32bit operations. But for addition and subtraction >>> there is >>> addc >>> subc >>> instructions that consider carry bit also. Presen

Re: How to write pattern for addition with carry operation

2008-06-07 Thread Mohamed Shafi
2008/6/7 Uros Bizjak <[EMAIL PROTECTED]>: > Hello! > >> The 16bit target that i am porting to gcc4.1.2 doesn't have any >> instructions for 32bit operations. But for addition and subtraction >> there is >> addc >> subc >> instructions that consider carry bit also. Presently i have patterns >> for S

Re: How to write pattern for addition with carry operation

2008-06-07 Thread Uros Bizjak
Hello! The 16bit target that i am porting to gcc4.1.2 doesn't have any instructions for 32bit operations. But for addition and subtraction there is addc subc instructions that consider carry bit also. Presently i have patterns for SImode addition and subtraction such that the template will have

How to write pattern for addition with carry operation

2008-06-06 Thread Mohamed Shafi
Hello all, The 16bit target that i am porting to gcc4.1.2 doesn't have any instructions for 32bit operations. But for addition and subtraction there is addc subc instructions that consider carry bit also. Presently i have patterns for SImode addition and subtraction such that the template will hav