RE: Caller save mode on MIPS

2013-01-22 Thread Fu, Chao-Ying
Richard Sandiford [mailto:rdsandif...@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,

Re: Caller save mode on MIPS

2013-01-18 Thread Richard Sandiford
"Fu, Chao-Ying" writes: > From testing, I found out that the whole width of a MIPS > integer/floating-point register > is saved and restored around a call. This may hurt the performance. > > Ex: > fu@debian6:/disk/fu/dev/test$ cat add2.c > void test2(float); > > float test(float a, float b) >