This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Create vector types on demand and deprecate __attribute__ ((mode(Vxxyy)))


On Wed, Mar 10, 2004 at 06:06:12AM -0500, Bonzini wrote:
> This also requires a definition for the compatibility of vector types: I
> defined two vector types to be compatible if they map onto the same
> underlying machine mode, and adjusted convert_for_assignment to call
> comptypes instead of duplicating the compatibility condition.

This is a mistake.  We're looking to get rid of some of the vector
modes, remember?  I think a better definition of vector type 
compatibility is if the width is the same and the underlying types
are compatible.

> +  new_type = build_vector_type_for_mode (type, new_mode);

I don't suppose these get hashed anywhere?  Given how __vector_size__
gets used by Altivec, I'd hate to be creating new type nodes every 
time the attribute is mentioned.



r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]