Unfillable branch delay slots

law@redhat.com law@redhat.com
Thu Apr 26 07:36:00 GMT 2001


  In message < 200104260015.RAA02782@kayak.mcgary.org >you write:
  > My MIPS-like port fails to generate NOP to fill a delay slot when no
  > useful insn will fit.  I don't see any mention of this case in the
  > GCC manual.  How is this supposed to be done?
Typically your patterns which have delay slots will need to use something
like %# in their output template.

Then in your print_operand you'd have code like this:

   case '#':
      /* Output a 'nop' if there's nothing for the delay slot.  */
      if (dbr_sequence_length () == 0)
        fputs ("\n\tnop", file);
      return;

jeff



More information about the Gcc mailing list