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]

Re: creating new pattern recognition in myproc.md



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


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