inline asm mmx: how to movq from memory to %mmX

Ian Lance Taylor iant@google.com
Tue Apr 17 14:44:00 GMT 2007


"Jack Andrews" <effbiae@gmail.com> writes:

>     for (i=0; i < n; i += W) {
>         asm("movq %0 %%mm1\n\t"
>             "paddq %%mm1 %%mm0"

You are missing commas between the operands.
    movq %0, %%mm1

Instead of using inline assembler I recommend that you use the
functions in mmintrin.h.

Ian



More information about the Gcc-help mailing list