This is the mail archive of the
mailing list for the GCC project.
Re: conversions between vectors
- From: Daniel Berlin <dan at cgsoftware dot com>
- To: Gabriel Dos Reis <gdr at codesourcery dot com>
- Cc: Aldy Hernandez <aldyh at redhat dot com>, "Joseph S. Myers" <jsm28 at cam dot ac dot uk>, Richard Henderson <rth at redhat dot com>, Alexandre Oliva <aoliva at redhat dot com>, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 23 Dec 2001 23:57:43 -0500 (EST)
- Subject: Re: conversions between vectors
On 23 Dec 2001, Gabriel Dos Reis wrote:
> Aldy Hernandez <firstname.lastname@example.org> 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
> -- Gaby