FreeBSD/contrib/binutils/gas/config/tc-mips.c
/* Return the number of nops that would be needed if instruction INSN
   immediately followed the MAX_NOPS instructions given by HISTORY,
   where HISTORY[0] is the most recent instruction.  If INSN is null,
   return the worse-case number of nops for any instruction.  */
Return the number of nops that would be needed if instruction INSN
immediately followed the MAX_NOPS instructions given by HISTORY,
where HISTORY[0] is the most recent instruction.  If INSN is null,
return the worse-case number of nops for any instruction.
Return the number of nops that would be needed if instruction INSN immediately followed the MAX_NOPS instructions given by HISTORY where HISTORY [ 0 ] is the most recent instruction . If INSN is null return the worse - case number of nops for any instruction .
static int
nops_for_insn (const struct mips_cl_insn *history,
	       const struct mips_cl_insn *insn)
{
  int i, nops, tmp_nops;
  nops = 0;
  for (i = 0; i < MAX_DELAY_NOPS; i++)
    if (!history[i].noreorder_p)
      {
	tmp_nops = insns_between (history + i, insn) - i;
	if (tmp_nops > nops)
	  nops = tmp_nops;
      }
  if (mips_fix_vr4130)
    {
      tmp_nops = nops_for_vr4130 (history, insn);
      if (tmp_nops > nops)
	nops = tmp_nops;
    }
  return nops;
}
static int nops_for_insn ( const struct mips_cl_insn * history , const struct mips_cl_insn * insn ) { int i , nops , tmp_nops ; nops = 0 ; for ( i = 0 ; i < MAX_DELAY_NOPS ; i ++ ) if ( ! history [ i ] . noreorder_p ) { tmp_nops = insns_between ( history + i , insn ) - i ; if ( tmp_nops > nops ) nops = tmp_nops ; } if ( mips_fix_vr4130 ) { tmp_nops = nops_for_vr4130 ( history , insn ) ; if ( tmp_nops > nops ) nops = tmp_nops ; } return nops ; }
Return the number of nops that would be needed if instruction INSN
immediately followed the MAX_NOPS instructions given by HISTORY,
where HISTORY[0] is the most recent instruction.
Return the number of nops that would be needed if instruction INSN immediately followed the MAX_NOPS instructions given by HISTORY where HISTORY [ 0 ] is the most recent instruction .