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] PR/17836 (was Re: [RFA/RFT] Tree-level lowering of generic vectors, part 4)


>>>>> 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


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