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

            Bug ID: 94095
           Summary: Modifier 'a' do not work as described
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: documentation
          Severity: normal
          Priority: P3
         Component: inline-asm
          Assignee: unassigned at gcc dot gnu.org
          Reporter: frederic.recou...@univ-grenoble-alpes.fr
  Target Milestone: ---

In https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html 6.47.2.8, it is said
that 'a' "Print an absolute memory reference" (aka *%eax for 'att') but
experiments shows that it actually print '(%eax)'.

But yet, what is the intended behavior?
Is it actually valid to use 'a' modifier with 'p' constraint in

void *x = NULL;
__asm__ ("leal %a1, %0" : "=r" (x) : "p" (&x));

?

Reply via email to