This is the mail archive of the gcc-patches@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: conversions between vectors




On 23 Dec 2001, Gabriel Dos Reis wrote:

> Aldy Hernandez <aldyh@redhat.com> writes:
>
> | > > 	c2 = __builtin_vector_add_v4si_unsigned (a2, b2);
> | > >
> | > > even if both builtins map to the same exact machine instruction.
> | >
> | > If both are signed, or both unsigned, surely programmers will just use the
> | > + operator?
> |
> | we have no support for any kind of operations on vectors.
>
> I think we should -- that was discussed in another thread.
And in reality, we do.
The type checker just disallows the operations.
If it didn't, we'd get simple operations for free (like + between
vectors, etc).
>
> -- Gaby
>


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