public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Luchezar Belev <lukcho@gmail.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: immediate operands without dollar sign for inline asm
Date: Thu, 19 Dec 2013 17:04:00 -0000	[thread overview]
Message-ID: <CAJtzQry2FEGGdASFwO+_Ys2zhO2VuVaJ6jPmawagU=D+D5P3mA@mail.gmail.com> (raw)
In-Reply-To: <52AF66D5.7070906@redhat.com>

On Mon, Dec 16, 2013 at 10:47 PM, Florian Weimer <fweimer@redhat.com> wrote:
> Isn't it specific to a subset of all the architectures?  If it's generic, it
> makes sense to add it to the Extended Asm documentation.

If I am to give opinion, here it is:

I have only used the x86/x64 architecture so far and don't know if it
is architecture specific or generic.
AFAIK the $ sign for immediate operands is for all architectures, so
i'd guess the feature is generic.

This feature is not a constraint modifier and has nothing to do with
the constraints because it is written in the assembly string itself
and not in the constraint descriptor string:
    asm ( "... %0 ..." : "+r" (...) : ); // the '+' here is a
constraint modifier
    asm ( "... %a0 ..." : : "i" (...) ); // the 'a' here is NOT a
constraint modifier
so I would say it's documentation should be located in Extended Asm
(or probably in a new section about "operand modifiers" or whatever
they are called) but not in the constraint section.

Best regards
Lucho.

  reply	other threads:[~2013-12-19 17:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-16 11:29 Luchezar Belev
2013-12-16 18:21 ` Andrew Haley
2013-12-16 20:47 ` Florian Weimer
2013-12-19 17:04   ` Luchezar Belev [this message]
2013-12-19 22:25     ` Rob
2013-12-16 23:21 ` dw
2013-12-17  9:06   ` Andrew Haley
2013-12-18  5:45     ` dw
2013-12-18  9:38       ` Andrew Haley

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='CAJtzQry2FEGGdASFwO+_Ys2zhO2VuVaJ6jPmawagU=D+D5P3mA@mail.gmail.com' \
    --to=lukcho@gmail.com \
    --cc=fweimer@redhat.com \
    --cc=gcc-help@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).