FreeBSD/contrib/binutils/gas/config/tc-arm.c
/* Convert Neon type and size into compact bitmask representation.  */
Convert Neon type and size into compact bitmask representation.
Convert Neon type and size into compact bitmask representation .
static enum neon_type_mask
type_chk_of_el_type (enum neon_el_type type, unsigned size)
{
  switch (type)
    {
    case NT_untyped:
      switch (size)
        {
        case 8:  return N_8;
        case 16: return N_16;
        case 32: return N_32;
        case 64: return N_64;
        default: ;
        }
      break;
    case NT_integer:
      switch (size)
        {
        case 8:  return N_I8;
        case 16: return N_I16;
        case 32: return N_I32;
        case 64: return N_I64;
        default: ;
        }
      break;
    case NT_float:
      switch (size)
        {
        case 32: return N_F32;
        case 64: return N_F64;
        default: ;
        }
      break;
    case NT_poly:
      switch (size)
        {
        case 8:  return N_P8;
        case 16: return N_P16;
        default: ;
        }
      break;
    case NT_signed:
      switch (size)
        {
        case 8:  return N_S8;
        case 16: return N_S16;
        case 32: return N_S32;
        case 64: return N_S64;
        default: ;
        }
      break;
    case NT_unsigned:
      switch (size)
        {
        case 8:  return N_U8;
        case 16: return N_U16;
        case 32: return N_U32;
        case 64: return N_U64;
        default: ;
        }
      break;
    default: ;
    }
  return N_UTYP;
}
static enum neon_type_mask type_chk_of_el_type ( enum neon_el_type type , unsigned size ) { switch ( type ) { case NT_untyped : switch ( size ) { case 8 : return N_8 ; case 16 : return N_16 ; case 32 : return N_32 ; case 64 : return N_64 ; default : ; } break ; case NT_integer : switch ( size ) { case 8 : return N_I8 ; case 16 : return N_I16 ; case 32 : return N_I32 ; case 64 : return N_I64 ; default : ; } break ; case NT_float : switch ( size ) { case 32 : return N_F32 ; case 64 : return N_F64 ; default : ; } break ; case NT_poly : switch ( size ) { case 8 : return N_P8 ; case 16 : return N_P16 ; default : ; } break ; case NT_signed : switch ( size ) { case 8 : return N_S8 ; case 16 : return N_S16 ; case 32 : return N_S32 ; case 64 : return N_S64 ; default : ; } break ; case NT_unsigned : switch ( size ) { case 8 : return N_U8 ; case 16 : return N_U16 ; case 32 : return N_U32 ; case 64 : return N_U64 ; default : ; } break ; default : ; } return N_UTYP ; }
Convert Neon type and size into compact bitmask representation.
Convert Neon type and size into compact bitmask representation .