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: Vector types and type conversions


Paolo Bonzini writes:
 > Andrew Haley wrote:
 > > Converting a vector of floats (via a cast) to a vector of ints of the
 > > same size uses a VIEW_CONVERT_EXPR, so the data are simply copied, not
 > > converted.  This is different from a cast from scalar float to int,
 > > where a conversion is performed.
 > > 
 > > From what I can see of the source, this is deliberate.
 > 
 > The short answer is that AltiVec dictated this behavior. :-(  Longer 
 > answers were given by Ian and Paul, and I agree with them.

OK, so: firstly, is this behaviour actually documented anywhere?  In
AltiVec docs, maybe?

Secondly, can we fix it?

Andrew.


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