ICE in trunk due to MEM with address in vector mode

Paulo Matos pmatos@broadcom.com
Fri Jan 24 15:49:00 GMT 2014


> -----Original Message-----
> From: Richard Sandiford [mailto:rdsandiford@googlemail.com]
> Sent: 24 January 2014 12:21
> To: Paulo Matos
> Cc: gcc@gcc.gnu.org
> Subject: Re: ICE in trunk due to MEM with address in vector mode
> 
> Just in case: the point I was trying to make in the second paragraph
> was that the code in the patch only triggers (as you say) because the
> address isn't seen as mode-dependent.  But this kind of address does
> look mode-dependent to me, since it only works for MEM modes that have
> the same number of elements as the index vector.  So this does sound
> like a case where mode_dependent_address_p ought to return true.
> 

Yes, you're probably right. Sorry I haven't gotten back to you on that part of your initial email.

> If we do support vector addresses than I think the right fix is to
> check VECTOR_MODE_P there.
> 

Well, isn't it the case that a mem with vector mode is always mode dependent, in which case adding VECTOR_MODE_P to mode-dependent target hook would be enough making the patch not so useful?

Cheers,

Paulo Matos

> Thanks,
> Richard


More information about the Gcc mailing list