[PATCH] Power/GCC: Fix e500 vs non-e500 register save slot issue

Joseph S. Myers joseph@codesourcery.com
Wed Sep 24 20:35:00 GMT 2014

On Wed, 24 Sep 2014, David Edelsohn wrote:

> > 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
> >
> >         gcc/
> >         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
> >         macro.
> >         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
> >         TARGET_E500_DOUBLE case here.
> This patch is okay.  The repeated testing of E500 seems like it could
> have been refactored.  The macro is becoming a little overly
> complicated as a CASE statement.
> Are you avoiding the special cases for TFmode and TDmode on e500 for a
> specific reason or simply matching current behavior?

I don't know what's right in the context of the present patch, but the 
general principle for e500 is that TDmode is much like TImode and DDmode 
is much like DImode, but TFmode is much like two of DFmode; that was what 
I concluded when making DFP work for e500 

Joseph S. Myers

More information about the Gcc-patches mailing list