This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: SSE types and structures
- From: Bernd Schmidt <bernds at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: Richard Henderson <rth at redhat dot com>, <gcc at gcc dot gnu dot org>,<gcc-bugs at gcc dot gnu dot org>, <jakub at redhat dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 18 Jun 2002 15:40:29 +0100 (BST)
- Subject: Re: SSE types and structures
On Tue, 18 Jun 2002, Jan Hubicka wrote:
> > On Mon, Jun 17, 2002 at 04:26:09PM +0200, Jan Hubicka wrote:
> > > I am just poking around this. It appears to be tricky, as the __builtin
> > > interface appears to be built around assumtpion that __m64 == long long.
> > > All the functions returns long long and I don't see way to cast it into
> > > V8QI and back easilly.
> >
> > Well, duh, you'd do it uneasily and change them all, or add
> > a cast at every single invocation.
>
> Problem is that I don't see how to write the cast in C. Simple (long
> long)__m64 does not work of course :(
You could add another builtin to do it. And I thought the cast worked -
casting to and from a vector the same size of an integer ought to be allowed.
Bernd