From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6404 invoked by alias); 11 Dec 2001 20:56:56 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 6357 invoked from network); 11 Dec 2001 20:56:54 -0000 Received: from unknown (HELO cdlsystems.com) (207.228.116.20) by sources.redhat.com with SMTP; 11 Dec 2001 20:56:54 -0000 Received: from hades by cdlsystems.com with SMTP (MDaemon.v3.5.3.R); Tue, 11 Dec 2001 13:55:46 -0700 Message-ID: <012001c18286$3ca8f9a0$160e10ac@hades> From: "Mark Cuss" To: Cc: References: <20011204153416.A24659@disaster.jaj.com><20011204155032.A24992@disaster.jaj.com><00d001c17d05$4be398c0$160e10ac@hades> <3C0D3A05.6FE3602F@redhat.com><00cc01c18271$ef4c12a0$160e10ac@hades> Subject: Re: Embedded Assembly and MMX in GCC Date: Tue, 11 Dec 2001 13:00:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Return-Path: mcuss@cdlsystems.com Reply-To: mcuss@cdlsystems.com X-SW-Source: 2001-12/txt/msg00608.txt.bz2 Yes, I did have the closing double quote - I forgot to type it into the message...... If I put two %'s in front of mm0, the assembler returns "bad register name `%%mm0` " With the one %, it says "suffix or operands invalid for `movq`" It seems that on an inline statement, I need to put only 1 % in front of reg names if there are no input or output variables, and 2 %'s if there are... Mark ----- Original Message ----- From: "Alexandre Oliva" To: Cc: ; Sent: Tuesday, December 11, 2001 1:27 PM Subject: Re: Embedded Assembly and MMX in GCC > On Dec 11, 2001, "Mark Cuss" wrote: > > > __asm__("movq $1, %mm0); > > I suppose you're missing a `"' after `%mm0'. > > Note that `%' is an active character in inline assembly, mostly like > printf. If you want a `%' to get through to the output assembly, > double it. > > -- > Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ > Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} > CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} > Free Software Evangelist *Please* write to mailing lists, not to me >