This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: rfc: auto-casted vector types
- From: Kumar Gala <kumar dot gala at motorola dot com>
- To: Jim Wilson <wilson at redhat dot com>
- Cc: Aldy Hernandez <aldyh at redhat dot com>, GCC Mailinglist <gcc at gcc dot gnu dot org>, Nick Clifton <nickc at redhat dot com>
- Date: Mon, 17 Feb 2003 16:30:30 -0600
- Subject: Re: rfc: auto-casted vector types
The patch looks pretty reasonable to me also. I agree with Zack's
suggestions.
It might be useful to note in the comments in the rs6000 file that the
current implementation has a known flaw. It pretends that V2SI is the
opaque
vector type. This means that it accidentally allows conversions
to/from the
V2SI vector type without explicit casts. In order to fix this, we
need to
use a different otherwise unused vector type for the opaque vector
type.
Nick started on a patch to do this, but didn't have enough time to
finish it.
If this is not successful can we make the opaque type map to a 64-bit
data type(V1SI?) instead of the V2SI. I think this would be more
natural if we have to provide something for opaque.
eg
__ev64_opaque__ x = { 0, 3 }; // should fail
__ev64_opaque__ y = { 3 }; // should be ok
- kumar