MIPS gas relaxation still doesn't work

H. J. Lu hjl@lucon.org
Mon Oct 14 12:55:00 GMT 2002


On Mon, Oct 14, 2002 at 12:35:10PM -0700, David S. Miller wrote:
>    From: "H. J. Lu" <hjl@lucon.org>
>    Date: Mon, 14 Oct 2002 12:39:40 -0700
>    
>    Can gcc not to emit nop nor noreorder when it tries to fill the delay
>    slot with nop?
> 
> All the surrounding instructions scheduled by GCC are within
> noreorder sections aren't they?
> 
> If so, the assembler has nothing to put into the delay
> slot.
> 
> If not, you have a valid point, we should just remit the branch
> by itself with no reorder/macro section attributes.

Does

        .set    noreorder
        .set    nomacro

        bne     $2,$0,$L7493
        nop
        j       $L2
        nop

        .set    macro
        .set    reorder

answer your question?


H.J.



More information about the Binutils mailing list