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: 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


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