public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/108134] New: A description bug for Extended Asm document
@ 2022-12-15 18:58 liweifriends at gmail dot com
  2022-12-15 19:04 ` [Bug target/108134] x86 Operand Modifiers documentation issue pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: liweifriends at gmail dot com @ 2022-12-15 18:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108134

            Bug ID: 108134
           Summary: A description bug for Extended Asm document
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: liweifriends at gmail dot com
  Target Milestone: ---

In document
(https://github.com/gcc-mirror/gcc/blob/master/gcc/doc/extend.texi), there are
the following description:

The rest of this discussion uses the following code for illustrative purposes.

```
int main()
{
   int iInt = 1;

top:

   asm volatile goto ("some assembler instructions here"
   : /* No outputs. */
   : "q" (iInt), "X" (sizeof(unsigned char) + 1), "i" (42)
   : /* No clobbers. */
   : top);
}

With no modifiers, this is what the output from the operands would be for the
‘att’ and ‘intel’ dialects of assembler:
Operand ‘att’   ‘intel’
%0      %eax    eax
%1      $2      2
%3      $.L3    OFFSET FLAT:.L3
%4      $8      8
%5      %xmm0   xmm0
%7      $0      0
```

However, for the inline asm code, there is no %4, %5, and %7 at all. And in the
following table, it also shows something like "%y6", but there is no %6 at all.
So the reader cannot understand the meaning of them.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug target/108134] x86 Operand Modifiers documentation issue
  2022-12-15 18:58 [Bug c/108134] New: A description bug for Extended Asm document liweifriends at gmail dot com
@ 2022-12-15 19:04 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-15 19:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108134

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-12-15
             Status|UNCONFIRMED                 |NEW
             Target|                            |x86_64-linux-gnu
     Ever confirmed|0                           |1
            Summary|A description bug for       |x86 Operand Modifiers
                   |Extended Asm document       |documentation issue
          Component|c                           |target

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-15 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-15 18:58 [Bug c/108134] New: A description bug for Extended Asm document liweifriends at gmail dot com
2022-12-15 19:04 ` [Bug target/108134] x86 Operand Modifiers documentation issue pinskia at gcc dot gnu.org

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).