This is the mail archive of the gcc-patches@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: [patch] Update MIPS DSP madd, maddu, msub, msubu, mult, multu


"Fu, Chao-Ying" <fu@mips.com> writes:
>> to the builtins code in mips.c.  Similarly, <u>maddsidi4 and
>> <u>msubsidi4 are now named patterns (which wasn't true when
>> the DSP code was originally added), so we can do the same
>> thing for mips_madd<u> and mips_msub<u>.
>
>   Due to the order of input operands is different, I still need to keep mips_madd<u>
> and mips_msub<u>.  Otherwise, the prototype of __builtin_mips_madd/maddu/msub/msubu
> will not be matched.

Oh yeah, missed that.  I vaguely remember you might have had
to point this out to me before. :-/

The new patch is OK, thanks.  I see that the tests have things like:

> +/* { dg-final { scan-assembler "mult" } } */
> +/* { dg-final { scan-assembler "multu" } } */

which is weak: a multu will match both.  But that's a problem with
the existing tests too, and should be fixed separately.  It's better
to be consistent with the current code as far as this check-in is
concerned.

Richard


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