This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Help me with the patterns
- From: "Mohamed Shafi" <shafitvm at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 24 Apr 2008 12:01:42 +0530
- Subject: 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.