This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ARM] ARM NEON support part 2/7: NEON support
On 7/16/07, Mark Mitchell <mark@codesourcery.com> wrote:
I've looked at the other back-end changes and I think they qualify as
simple enough.
I looked at the back-end changes too but I will note that we have a
generic vector issue with mangling anyways and really should be fixing
that issue generically. Try this generic code with any version of GCC
post 3.3:
typedef __attribute__((vector_size(8) )) int v8i;
typedef __attribute__((vector_size(16) )) int v16i;
template <typename t> void f(t ) {}
void g(void)
{
v8i a;
v16i b;
f(a);
f(b);
}
And the implementation above only works for the builtin types that the
ARM back-end provides and not the attribute vector_size based ones.
So even you cannot intermix the generic vectors with the builtin types
which seems wrong.
Thanks,
Andrew Pinski