Re: Help me with the patterns

2008-04-24 Thread Mohamed Shafi
On Thu, Apr 24, 2008 at 12:01 PM, Mohamed Shafi <[EMAIL PROTECTED]> wrote: > Hello all, > > The target that i am porting in gcc 4.1.2, has the following instructions > > setb Rx, bitno > clrb Rx, bitno > > where bit bitno of Rx will either be set or reset. > > For statements like > > a |= (1

Help me with the patterns

2008-04-23 Thread Mohamed Shafi
Hello all, The target that i am porting in gcc 4.1.2, has the following instructions setb Rx, bitno clrb Rx, bitno where bit bitno of Rx will either be set or reset. For statements like a |= (1 << 2); and b &= ~(1 << 2); I can use the above instructions directly. But i am not sure how to writ