Lines Matching refs:token
3010 mips_add_token (struct mips_operand_token *token, in mips_add_token() argument
3013 token->type = type; in mips_add_token()
3014 obstack_grow (&mips_operand_tokens, token, sizeof (*token)); in mips_add_token()
3024 struct mips_operand_token token; in mips_parse_base_start() local
3048 token.u.ch = '('; in mips_parse_base_start()
3049 mips_add_token (&token, OT_CHAR); in mips_parse_base_start()
3053 token.u.ch = '-'; in mips_parse_base_start()
3054 mips_add_token (&token, OT_DOUBLE_CHAR); in mips_parse_base_start()
3057 token.u.regno = regno; in mips_parse_base_start()
3058 mips_add_token (&token, OT_REG); in mips_parse_base_start()
3062 token.u.channels = channels; in mips_parse_base_start()
3063 mips_add_token (&token, OT_CHANNELS); in mips_parse_base_start()
3071 token.u.ch = '+'; in mips_parse_base_start()
3072 mips_add_token (&token, OT_DOUBLE_CHAR); in mips_parse_base_start()
3088 struct mips_operand_token token; in mips_parse_argument_token() local
3099 token.u.ch = *s; in mips_parse_argument_token()
3100 mips_add_token (&token, OT_CHAR); in mips_parse_argument_token()
3111 token.u.regno = regno1; in mips_parse_argument_token()
3112 mips_add_token (&token, OT_REG); in mips_parse_argument_token()
3114 token.u.channels = channels; in mips_parse_argument_token()
3115 mips_add_token (&token, OT_CHANNELS); in mips_parse_argument_token()
3131 token.u.reg_range.regno1 = regno1; in mips_parse_argument_token()
3132 token.u.reg_range.regno2 = regno2; in mips_parse_argument_token()
3133 mips_add_token (&token, OT_REG_RANGE); in mips_parse_argument_token()
3138 token.u.regno = regno1; in mips_parse_argument_token()
3139 mips_add_token (&token, OT_REG); in mips_parse_argument_token()
3146 if (mips_parse_register (&s, &token.u.regno, NULL)) in mips_parse_argument_token()
3147 mips_add_token (&token, OT_REG_INDEX); in mips_parse_argument_token()
3159 token.u.index = element.X_add_number; in mips_parse_argument_token()
3160 mips_add_token (&token, OT_INTEGER_INDEX); in mips_parse_argument_token()
3178 err = md_atof (float_format, (char *) token.u.flt.data, in mips_parse_argument_token()
3179 &token.u.flt.length); in mips_parse_argument_token()
3189 mips_add_token (&token, OT_FLOAT); in mips_parse_argument_token()
3195 token.u.integer.relocs[0] = BFD_RELOC_UNUSED; in mips_parse_argument_token()
3196 token.u.integer.relocs[1] = BFD_RELOC_UNUSED; in mips_parse_argument_token()
3197 token.u.integer.relocs[2] = BFD_RELOC_UNUSED; in mips_parse_argument_token()
3198 my_getSmallExpression (&token.u.integer.value, token.u.integer.relocs, s); in mips_parse_argument_token()
3200 mips_add_token (&token, OT_INTEGER); in mips_parse_argument_token()
3215 struct mips_operand_token token; in mips_parse_arguments() local
3229 mips_add_token (&token, OT_END); in mips_parse_arguments()
4696 struct mips_operand_token *token; member
4749 if (arg->token->type == OT_CHAR && arg->token->u.ch == ch) in match_char()
4751 ++arg->token; in match_char()
4770 if (arg->token->type == OT_CHAR && arg->token->u.ch == '(') in match_expression()
4780 if (arg->token->type == OT_INTEGER in match_expression()
4781 && arg->token->u.integer.value.X_op == O_register) in match_expression()
4787 if (arg->token->type == OT_INTEGER) in match_expression()
4789 *value = arg->token->u.integer.value; in match_expression()
4790 memcpy (r, arg->token->u.integer.relocs, 3 * sizeof (*r)); in match_expression()
4791 ++arg->token; in match_expression()
4972 if (arg->token->type == OT_REG in match_reg()
4973 && match_regno (arg, type, arg->token->u.regno, regno)) in match_reg()
4975 ++arg->token; in match_reg()
4994 if (arg->token->type == OT_REG_RANGE in match_reg_range()
4995 && match_regno (arg, type, arg->token->u.reg_range.regno1, regno1) in match_reg_range()
4996 && match_regno (arg, type, arg->token->u.reg_range.regno2, regno2) in match_reg_range()
4999 ++arg->token; in match_reg_range()
5554 if (arg->token->type == OT_INTEGER) in match_save_restore_list_operand()
5695 if (arg->token->type == OT_REG) in match_mdmx_imm_reg_operand()
5705 if (!match_regno (arg, OP_REG_VEC, arg->token->u.regno, ®no)) in match_mdmx_imm_reg_operand()
5707 ++arg->token; in match_mdmx_imm_reg_operand()
5711 if (arg->token->type == OT_INTEGER_INDEX) in match_mdmx_imm_reg_operand()
5713 if (arg->token->u.index > (is_qh ? 3 : 7)) in match_mdmx_imm_reg_operand()
5718 uval |= arg->token->u.index << (is_qh ? 2 : 1) << 5; in match_mdmx_imm_reg_operand()
5719 ++arg->token; in match_mdmx_imm_reg_operand()
5769 if (arg->token->type != OT_INTEGER_INDEX) in match_imm_index_operand()
5773 if (arg->token->u.index > max_val) in match_imm_index_operand()
5778 insn_insert_operand (arg->insn, operand, arg->token->u.index); in match_imm_index_operand()
5779 ++arg->token; in match_imm_index_operand()
5809 if (arg->token->type != OT_REG_INDEX) in match_reg_index_operand()
5812 if (!match_regno (arg, OP_REG_GP, arg->token->u.regno, ®no)) in match_reg_index_operand()
5816 ++arg->token; in match_reg_index_operand()
5825 if (arg->token->type == OT_REG && (arg->token->u.regno & RTYPE_PC)) in match_pc_operand()
5827 ++arg->token; in match_pc_operand()
5904 if (arg->token->type != OT_FLOAT) in match_float_constant()
5910 gas_assert (arg->token->u.flt.length == length); in match_float_constant()
5911 data = arg->token->u.flt.data; in match_float_constant()
5912 ++arg->token; in match_float_constant()
6038 if (arg->token->type != OT_CHANNELS) in match_vu0_suffix_operand()
6041 uval = arg->token->u.channels; in match_vu0_suffix_operand()
6053 ++arg->token; in match_vu0_suffix_operand()
7828 arg.token = tokens; in match_insn()
7835 if (arg.token->type == OT_END) in match_insn()
7846 arg.token = tokens; in match_insn()
7906 if (arg.token->type == OT_DOUBLE_CHAR in match_insn()
7907 && arg.token->u.ch == *args) in match_insn()
7909 ++arg.token; in match_insn()
7959 if (arg.token->type == OT_CHAR && arg.token->u.ch == '(') in match_insn()
8037 && (arg.token[0].type != OT_REG in match_insn()
8038 || arg.token[1].type == OT_END)) in match_insn()
8042 arg.token = tokens; in match_insn()
8073 arg.token = tokens; in match_mips16_insn()
8082 if (arg.token->type == OT_END) in match_mips16_insn()
8093 arg.token = tokens; in match_mips16_insn()
8191 if (arg.token->type == OT_CHAR && arg.token->u.ch == '(') in match_mips16_insn()
8201 if (arg.token->type != OT_INTEGER in match_mips16_insn()
8218 && (arg.token[0].type != OT_REG in match_mips16_insn()
8219 || arg.token[1].type == OT_END)) in match_mips16_insn()
8223 arg.token = tokens; in match_mips16_insn()