PATCH for branch-shortening on MIPS
Wed Jun 30 23:15:00 GMT 1999

>>>>> "Richard" == Richard Henderson <> writes:

    Richard> On Thu, Jun 03, 1999 at 11:28:13PM -0700,
    Richard> wrote:
    >> I don't see that either.  Before, these ports would emit
    >> illegal assembly (in the form of out-of-range branches).  Now,
    >> they will emit illegal assembly (in the form of IRIX6-specific
    >> assembly).  Not really any worse.

    Richard> Actually, it is, due to more macro hell.  The MIPS
    Richard> assembler would transform an out of range conditional
    Richard> branch into a complimented conditional branch around a
    Richard> jump through AT.

Ah, I see.  But, the SGI IRIX6 assembler dropped this behavior.  Well,
with what I checked in, we generate a reversed conditional branch
aroudn a jump.  This should still work with the old assemblers, I hope.

Mark Mitchell         
CodeSourcery, LLC     

More information about the Gcc-patches mailing list