[PATCH] PR/17836 (was Re: [RFA/RFT] Tree-level lowering of generic vectors, part 4)

David Edelsohn dje@watson.ibm.com
Wed Oct 27 15:20:00 GMT 2004


>>>>> Paolo Bonzini writes:

Paolo> Types are the same independent of whether -maltivec is used or not.  Modes 
Paolo> aren't.

Paolo> Or do you mean I could test, rather than TYPE_VECTOR_SUBPARTS (vectype) >= 4, 
Paolo> TYPE_MODE (TREE_TYPE (vectype)) == {QImode, HImode, SImode, SFmode} ?

	My question is why do you need to change the test at all?  The
goal is for Altivec modes to be passed in Altivec registers, if Altivec is
enabled, and all other vector modes more than twice the GPR size to be
passed by reference.

	I do not understand the purpose of changing from testing the
specific vector modes that Altivec supports to testing the vector size and
the number of elements.  Altivec is not going to be used to pass any other
vector modes that are the same vector size.

David



More information about the Gcc-patches mailing list