This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Vector types and type conversions
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>, Andrew Haley <aph at redhat dot com>, GCC Development <gcc at gcc dot gnu dot org>
- Date: Wed, 19 Apr 2006 09:43:23 -0700
- Subject: Re: Vector types and type conversions
- References: <200604191538.k3JFcL3P015387@earth.phy.uc.edu>
I think, like Ian, that conversions from V4SF to V4SI, via an ordinary
cast, should perform a conversion; this should be the same as converting
each of the individual floats to int. Then, since the bit-preserving
conversion is also useful, we should have another syntax for that.
However, the Altivec situation, coupled with the fact that
bit-preserving conversion is our current behavior, makes me think that,
what I might think the ideal language-design ought to be may have little
relevance. Do people think it's viable to change the default kind of
conversion, on targets other than Altivec?
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713