tools-src/gnu/binutils/gas/config/tc-ia64.c
/* Return true if TYPE fits in TEMPL at SLOT.  */
Return true if TYPE fits in TEMPL at SLOT.
Return true if TYPE fits in TEMPL at SLOT .
static int
match (int templ, int type, int slot)
{
  enum ia64_unit unit;
  int result;
  unit = ia64_templ_desc[templ].exec_unit[slot];
  switch (type)
    {
    case IA64_TYPE_DYN: result = 1; break; 
    case IA64_TYPE_A:
      result = (unit == IA64_UNIT_I || unit == IA64_UNIT_M);
      break;
    case IA64_TYPE_X:	result = (unit == IA64_UNIT_L); break;
    case IA64_TYPE_I:	result = (unit == IA64_UNIT_I); break;
    case IA64_TYPE_M:	result = (unit == IA64_UNIT_M); break;
    case IA64_TYPE_B:	result = (unit == IA64_UNIT_B); break;
    case IA64_TYPE_F:	result = (unit == IA64_UNIT_F); break;
    default:		result = 0; break;
    }
  return result;
}
static int match ( int templ , int type , int slot ) { enum ia64_unit unit ; int result ; unit = ia64_templ_desc [ templ ] . exec_unit [ slot ] ; switch ( type ) { case IA64_TYPE_DYN : result = 1 ; break ; case IA64_TYPE_A : result = ( unit == IA64_UNIT_I || unit == IA64_UNIT_M ) ; break ; case IA64_TYPE_X : result = ( unit == IA64_UNIT_L ) ; break ; case IA64_TYPE_I : result = ( unit == IA64_UNIT_I ) ; break ; case IA64_TYPE_M : result = ( unit == IA64_UNIT_M ) ; break ; case IA64_TYPE_B : result = ( unit == IA64_UNIT_B ) ; break ; case IA64_TYPE_F : result = ( unit == IA64_UNIT_F ) ; break ; default : result = 0 ; break ; } return result ; }
Return true if TYPE fits in TEMPL at SLOT.
Return true if TYPE fits in TEMPL at SLOT .
/* for nop and break */