Caller save mode on MIPS
Fu, Chao-Ying
fu@mips.com
Wed Jan 23 01:12:00 GMT 2013
Richard Sandiford [mailto:rdsandiford@googlemail.com] wrote:
>
> > From http://gcc.gnu.org/ml/gcc-patches/2001-02/msg01480.html,
> > the patch defines HARD_REGNO_CALLER_SAVE_MODE to return
> proper mode for i386.
> > For MIPS, we may have:
> > Ex:
> > #define HARD_REGNO_CALLER_SAVE_MODE(REGNO, NREGS, MODE)
> \
> > ((MODE) == VOIDmode ? choose_hard_reg_mode ((REGNO),
> (NREGS), false) \
> > : (MODE))
> >
> > Any feedback about adding HARD_REGNO_CALLER_SAVE_MODE to
> MIPS? Thanks!
>
> Sounds like a good idea.
>
> Richard
>
I will run regression tests and post a patch later. Thanks a lot!
Regards,
Chao-ying
More information about the Gcc
mailing list