This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to write pattern for addition with carry operation
- From: "Mohamed Shafi" <shafitvm at gmail dot com>
- To: GCC <gcc at gcc dot gnu dot org>
- Date: Sat, 7 Jun 2008 11:06:58 +0530
- Subject: How to write pattern for addition with carry operation
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 have
add %0, %1\naddc %N0, %N1
sub %0, %1\nsubc %N0, %N1
Will it be possible for me to write separate patterns for the
instructions add and addc?
Regards,
Shafi