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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |powerpc-*-*
             Status|RESOLVED                    |NEW
           Keywords|                            |documentation
   Last reconfirmed|                            |2019-01-21
          Component|inline-asm                  |target
         Resolution|INVALID                     |---
     Ever confirmed|0                           |1
            Summary|[powerpc] asm input from C  |The asm operator modifiers
                   |expression with type larger |for rs6000 should be
                   |than GPRs loads wrong value |documented like they are
                   |                            |for x86

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Christopher Leonard from comment #2)
> Surely then in the example if r9 is loaded with high and r10 with low then
> %0 should be r10, not r9?

%0 represents the first register which in this case is r9.  The pair is r9:r10
to get the low part use %L0 .

Really this should be documented like they are for x86:
https://gcc.gnu.org/onlinedocs/gcc-8.2.0/gcc/Extended-Asm.html#x86-Operand-Modifiers

Reply via email to