public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Mark Cuss" <mcuss@cdlsystems.com>
To: <gcc-return-42668-mcuss=cdlsystems.com@gcc.gnu.org>
Cc: <gcc@gcc.gnu.org>
Subject: Re: Embedded Assembly and MMX in GCC
Date: Tue, 11 Dec 2001 13:00:00 -0000	[thread overview]
Message-ID: <012001c18286$3ca8f9a0$160e10ac@hades> (raw)
In-Reply-To: <org06hcxj1.fsf@free.redhat.lsd.ic.unicamp.br>

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" <aoliva@redhat.com>
To: <mcuss@cdlsystems.com>
Cc: <grahams@redhat.com>; <gcc@gcc.gnu.org>
Sent: Tuesday, December 11, 2001 1:27 PM
Subject: Re: Embedded Assembly and MMX in GCC


> On Dec 11, 2001, "Mark Cuss" <mcuss@cdlsystems.com> 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
>


  reply	other threads:[~2001-12-11 20:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-03 19:13 gcc-ss-20011203 is now available gccadmin
2001-12-04  7:11 ` Andreas Schwab
2001-12-04  7:59   ` Joseph S. Myers
2001-12-04 12:16     ` guerby
2001-12-04 12:24       ` Joseph S. Myers
2001-12-04 12:30         ` Phil Edwards
2001-12-04 12:36           ` Joseph S. Myers
2001-12-04 12:46             ` Phil Edwards
2001-12-04 12:50               ` Assembly in Gcc Mark Cuss
2001-12-04 13:03                 ` Graham Stott
2001-12-04 13:27                   ` Mark Cuss
2001-12-04 19:00                   ` Tim Prince
2001-12-11 11:14                   ` Embedded Assembly and MMX in GCC Mark Cuss
2001-12-11 12:35                     ` Alexandre Oliva
2001-12-11 13:00                       ` Mark Cuss [this message]
2001-12-11 13:18                         ` Alexandre Oliva
2001-12-11 14:09                           ` Mark Cuss
2001-12-12  3:48                       ` Andreas Schwab
2001-12-11 14:38                     ` Craig Rodrigues
2001-12-04 19:54           ` gcc-ss-20011203 is now available Mark Mitchell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='012001c18286$3ca8f9a0$160e10ac@hades' \
    --to=mcuss@cdlsystems.com \
    --cc=gcc-return-42668-mcuss=cdlsystems.com@gcc.gnu.org \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).