This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help me with the patterns


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
write the patterns for the above instructions.
Can anybody help me with this?

Thank you for your time.

Regards,
Shafi.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]