This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH,rs6000] fix legitimization of TImode/TFmode addresses
On Tue, Jan 22, 2008 at 09:56:13AM -0600, Peter Bergner wrote:
> > * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
> > ensure that we can address an entire TImode or TFmode quantity.
> > Don't generate reg+reg addressing for TImode or TFmode quantities.
>
> If we're preventing [reg + reg] addressing for TImode and TFmode modes,
> then we should prevent using it for TDmode too.
Would it be more appropriate, instead of checking a number of modes and
hoping we remembered all the right ones, to disallow [reg+reg] if
GET_MODE_SIZE > 8?
-Nathan