This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: help with MMX and inline asm
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Andrea Pretto <andrea_pretto at yahoo dot it>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 08 Apr 2004 17:05:05 -0400
- Subject: Re: help with MMX and inline asm
- References: <20040408155901.20100.qmail@web60209.mail.yahoo.com>
Andrea Pretto <andrea_pretto@yahoo.it> writes:
> I have examined the GCC manual and I seen the built-in
> functions for SIMD extensions.
> For SSE there are functions like
>
> |v4sf __builtin_ia32_loadaps (float *)
>
> ex:
>
> foo = ||__builtin_ia32_loadaps ( array )|
> |
> which move tha data from array to foo, and foo is a
> type v4fs which become a XMM register for SSE
> instruction.
> But MMX???
> For MMX there aren't built-in function for move the
> data from array to mm* register (why??), therefore I
> must use inline asm.
You shouldn't need to use any inline assembler. gcc should handle
everything behind your back.
If you have tried it, and it failed, then what did you do, and how did
it fail?
Ian