This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Vector mode addresses
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: Paulo Matos <pmatos at broadcom dot com>
- Cc: "gcc-patches\ at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 30 Jan 2014 12:42:57 +0000
- Subject: Re: [PATCH] Vector mode addresses
- Authentication-results: sourceware.org; auth=none
- References: <19EB96622A777C4AB91610E763265F463F2CB9 at SJEXCHMB14 dot corp dot ad dot broadcom dot com>
Paulo Matos <pmatos@broadcom.com> writes:
> As a followup of the thread:
> http://gcc.gnu.org/ml/gcc/2014-01/msg00206.html
>
> consider the attached patch for submission. It fixes an ICE in case
> you try to use vector mode addresses and do not have it as mode
> dependent target hook. As discussed in the thread adding
> VECTOR_MODE_P to the target hook is a way to avoid ICE but as Richard
> S. mentioned it's more general to patch GCC up.
But like I said, I think the VECTOR_MODE_P check should be in
mode_dependent_address_p (recog.c) rather than here. If vector
addresses are supported then they are mode-dependent, since the
number of elements in the address mode must match the number of
elements in the MEM mode.
Thanks,
Richard