This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] Tests for vector types?
- From: Michael Snyder <msnyder at redhat dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: gdb at sources dot redhat dot com, ezannoni at redhat dot com
- Date: Mon, 20 May 2002 17:47:53 -0700
- Subject: Re: [RFC] Tests for vector types?
- Organization: Red Hat, Inc.
- References: <3CE98F1E.593D2A1A@redhat.com> <20020521003143.GF12079@redhat.com>
Aldy Hernandez wrote:
>
> On Mon, May 20, 2002 at 05:04:46PM -0700, Michael Snyder wrote:
> > Say, these new vector types such as exist for Altivec...
> > are they going to be generally available to GCC users from now on?
> > Like, say, on i386-Linux?
>
> they are already in x86: sse, mmx, etc.
>
> > If so, we should make up some generic tests for them for gdb.
>
> unfortunately the tests can't be too generic because they depend
> on the architecture having support for the SIMD type. say, you
> can't test V4SI on an architecture that only provides 64bit SIMD
> registers (V2SI).
>
> i have some patches i'm polishing up to provide just that-- any
> SIMD type (say V4SI) regardless of if the hardware supports it. this
> will make it easier to write generic tests.
That's what I mean -- I'm thinking, support for the vector type
really has nothing to do with the architecture. The vector type
is just an array that is passed by value, rather than by reference.
You don't have to have a special register to do that.