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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |segher at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #3 from Segher Boessenkool <segher at gcc dot gnu.org> ---
The nops are to align the following code (a jump target) to the correct
alignment.  GAS used an ori 2,2,0 for the last nop, to make sure a new
dispatch group starts after it, for p8.  Does your GAS support power9?
Does binutils trunk behave this way too?  Plain nop is ever so slightly
more efficient, so it is prefered.

The generated code is

        std 2,24(1)
        .p2align 5,,31
.L3:
        mr 12,30
        mtctr 30
        addi 31,31,-1
        bctrl

so there is nothing GCC can do about this.  Please follow up to binutils
bugzilla if necessary.  Thanks!

Reply via email to