This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: creating new pattern recognition in myproc.md
- From: Segher Boessenkool <segher at chello dot nl>
- To: Pierre Mallard <pierremallard at yahoo dot fr>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 27 Jul 2002 02:08:10 +0200
- Subject: Re: creating new pattern recognition in myproc.md
- References: <20020725093216.92370.qmail@web20302.mail.yahoo.com>
Pierre Mallard wrote:
>
> Hi,
> I've got a problem in rtl recognition system :
> I'd like to use a "mulsu" operation for multiply an
> unsigned and a signed operand.
> And I make a signed char*unsigned char in C, it
> appears he will take mulqihi3...
The C standard requires the signed char operand to be promoted to
unsigned char before the multiplication.
> Is there's a mean to make it differently?
Unfortunately, no. Maybe you could add a signed x unsigned
multiply builtin.
Segher