Embedded Assembly and MMX in GCC

Craig Rodrigues rodrigc@mediaone.net
Tue Dec 11 14:38:00 GMT 2001


On Tue, Dec 11, 2001 at 11:30:39AM -0700, Mark Cuss wrote:
> 
> __asm__("movq $1, %mm0");
> 
> The assembler says "suffix or operands invalid for 'mov1' "

I think there is a problem with your assembler, but I am
not enough of an assembler guru to say what.

This works for me with gcc 3.0.2 and binutils 2.10.91.0.2-3:

__asm__("movq %mm2,%mm0"); 


I recommend you look at the tutorials on:
http://www.linuxassembly.org

And also the binutils mailing list:
http://sources.redhat.com/binutils/
-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@mediaone.net          



More information about the Gcc mailing list