This is the mail archive of the gcc@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: RFC: PR14880 vec_duplicate or vec_select?


	The change is not for the auto-vectorizer, it is for GCC's common
vector operation support.  GCC cannot assume much about UNSPEC, but can
know about vec_merge, vec_select, vec_concat, vec_duplicate.  It is best
to use the standard patterns when available.

	The Altivec vspltM (vec_splat) instruction sets each element of
the result to the specified element of the input vector.  One could
describe it as selecting the same source vector sub part into each element
of the result (vec_select) or duplicating the 1-element sub-vector into
all elements (vec_duplicate).  I am not sure how this should be
canonicalized in GCC or if there already is a preferred form.

David


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