------- Comment #5 from rguenther at suse dot de 2009-07-16 13:57 ------- Subject: Re: Vectorization of complex types, vectorization of sincos missing
On Thu, 16 Jul 2009, burnus at gcc dot gnu dot org wrote: > ------- Comment #4 from burnus at gcc dot gnu dot org 2009-07-16 13:32 > ------- > (In reply to comment #3) > > Yes - there is no vector type for complex double. But the vectorizer > > could query for a vector type for the complex component type (double) > > and divide the vector element count by 2 (for complex) to get the > > vectorization factor which would be 1 here. > > I do not know much about this, but wouldn't that fail if one wants to > vectorize > true complex functions such as ccosf (assuming that they are in principle > vectorizable)? Well, for ccosf we would have a vectorization factor of 2 left for V4SF. Of course this assumes that we present the vectorizer with a vectorized ccosf with the signature v4sf (*)(v4sf). Or we would need to introduce complex vector modes - which I'd rather avoid. Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40770
