Lines Matching refs:insn_mo
136 const struct mips_opcode *insn_mo; member
2135 return micromips_insn_length (insn->insn_mo); in insn_length()
2149 insn->insn_mo = mo; in create_insn()
2167 if (insn->insn_mo >= &mips_opcodes[0] in insn_operands()
2168 && insn->insn_mo < &mips_opcodes[NUMOPCODES]) in insn_operands()
2169 return &mips_operands[insn->insn_mo - &mips_opcodes[0]]; in insn_operands()
2171 if (insn->insn_mo >= &mips16_opcodes[0] in insn_operands()
2172 && insn->insn_mo < &mips16_opcodes[bfd_mips16_num_opcodes]) in insn_operands()
2173 return &mips16_operands[insn->insn_mo - &mips16_opcodes[0]]; in insn_operands()
2175 if (insn->insn_mo >= µmips_opcodes[0] in insn_operands()
2176 && insn->insn_mo < µmips_opcodes[bfd_micromips_num_opcodes]) in insn_operands()
2177 return µmips_operands[insn->insn_mo - µmips_opcodes[0]]; in insn_operands()
3328 return (history[0].insn_mo->pinfo2 & INSN2_BRANCH_DELAY_16BIT) == 0; in is_delay_slot_valid()
3329 if ((history[0].insn_mo->pinfo2 & INSN2_BRANCH_DELAY_32BIT) != 0 in is_delay_slot_valid()
3332 if ((history[0].insn_mo->pinfo2 & INSN2_BRANCH_DELAY_16BIT) != 0 in is_delay_slot_valid()
3533 if (nop_insn.insn_mo == NULL && strcmp (name, "nop") == 0) in md_begin()
3562 if (mips16_nop_insn.insn_mo == NULL && strcmp (name, "nop") == 0) in md_begin()
3604 if (micromips_nop_insn->insn_mo == NULL in md_begin()
4050 else if (insn.insn_mo->pinfo == INSN_MACRO) in md_assemble()
4372 return (ip->insn_mo->pinfo & (INSN_UNCOND_BRANCH_DELAY in delayed_branch_p()
4382 return (ip->insn_mo->pinfo2 & (INSN2_UNCOND_BRANCH in compact_branch_p()
4391 return ((ip->insn_mo->pinfo & INSN_UNCOND_BRANCH_DELAY) != 0 in uncond_branch_p()
4392 || (ip->insn_mo->pinfo2 & INSN2_UNCOND_BRANCH) != 0); in uncond_branch_p()
4400 return (ip->insn_mo->pinfo & INSN_COND_BRANCH_LIKELY) != 0; in branch_likely_p()
4410 && (ip->insn_mo->pinfo2 & INSN2_BRANCH_DELAY_32BIT)) in get_delay_slot_nop()
4560 mask = insn_reg_mask (ip, 1 << OP_REG_GP, insn_read_mask (ip->insn_mo)); in gpr_read_mask()
4561 pinfo = ip->insn_mo->pinfo; in gpr_read_mask()
4562 pinfo2 = ip->insn_mo->pinfo2; in gpr_read_mask()
4590 mask = insn_reg_mask (ip, 1 << OP_REG_GP, insn_write_mask (ip->insn_mo)); in gpr_write_mask()
4591 pinfo = ip->insn_mo->pinfo; in gpr_write_mask()
4592 pinfo2 = ip->insn_mo->pinfo2; in gpr_write_mask()
4616 insn_read_mask (ip->insn_mo)); in fpr_read_mask()
4617 pinfo = ip->insn_mo->pinfo; in fpr_read_mask()
4635 insn_write_mask (ip->insn_mo)); in fpr_write_mask()
4636 pinfo = ip->insn_mo->pinfo; in fpr_write_mask()
4915 && !mips_oddfpreg_ok (arg->insn->insn_mo, arg->opnum)) in check_regno()
4931 name = arg->insn->insn_mo->name; in check_regno()
4956 if (!(symval & convert_reg_type (arg->insn->insn_mo, type))) in match_regno()
5083 && strcmp ("pref", arg->insn->insn_mo->name) == 0) in match_int_operand()
5313 && (strcmp (arg->insn->insn_mo->name, "mfps") == 0 in match_perf_reg_operand()
5314 || strcmp (arg->insn->insn_mo->name, "mtps") == 0)))) in match_perf_reg_operand()
5501 is_exit = strcmp (arg->insn->insn_mo->name, "exit") == 0; in match_entry_exit_operand()
5691 opcode = arg->insn->insn_mo; in match_mdmx_imm_reg_operand()
6006 as_bad (_("cannot use `%s' in this section"), arg->insn->insn_mo->name); in match_float_constant()
6169 prev_pinfo = history[0].insn_mo->pinfo; in reg_needs_delay()
6219 pinfo1 = insn1->insn_mo->pinfo; in insns_between()
6220 pinfo2 = insn2 ? insn2->insn_mo->pinfo : ~0U; in insns_between()
6259 if ((insn1->insn_opcode & insn1->insn_mo->mask) == INSN_DMULT in insns_between()
6260 || (insn1->insn_opcode & insn1->insn_mo->mask) == INSN_DMULTU) in insns_between()
6273 class1 = classify_vr4120_insn (insn1->insn_mo->name); in insns_between()
6278 class2 = classify_vr4120_insn (insn2->insn_mo->name); in insns_between()
6346 if ((insn1->insn_mo->pinfo2 & INSN2_FORBIDDEN_SLOT) in insns_between()
6369 && ((insn->insn_mo->pinfo & (INSN_WRITE_HI | INSN_WRITE_LO)) == 0 in nops_for_vr4130()
6370 || strcmp (insn->insn_mo->name, "mtlo") == 0 in nops_for_vr4130()
6371 || strcmp (insn->insn_mo->name, "mthi") == 0)) in nops_for_vr4130()
6376 if (MF_HILO_INSN (hist[i].insn_mo->pinfo)) in nops_for_vr4130()
6453 if (!insn->complete_p || !strstr (insn->insn_mo->args, "o(")) in fix_24k_record_store_info()
6457 stinfo->align_to = fix_24k_align_to (insn->insn_mo); in fix_24k_record_store_info()
6516 if ((hist[0].insn_mo->pinfo & INSN_STORE_MEMORY) == 0) in nops_for_24k()
6525 if ((insn->insn_mo->pinfo & INSN_STORE_MEMORY) == 0 in nops_for_24k()
6526 || (hist[1].insn_mo->pinfo & INSN_STORE_MEMORY) == 0) in nops_for_24k()
6680 if (strcmp (ip->insn_mo->name, "nop") == 0) in fix_loongson2f_nop()
6691 if (strcmp (ip->insn_mo->name, "j") == 0 in fix_loongson2f_jump()
6692 || strcmp (ip->insn_mo->name, "jr") == 0 in fix_loongson2f_jump()
6693 || strcmp (ip->insn_mo->name, "jalr") == 0) in fix_loongson2f_jump()
6790 prev_pinfo = history[0].insn_mo->pinfo; in can_swap_branch_p()
6830 pinfo = ip->insn_mo->pinfo; in can_swap_branch_p()
6839 prev_pinfo2 = history[0].insn_mo->pinfo2; in can_swap_branch_p()
6845 pinfo2 = ip->insn_mo->pinfo2; in can_swap_branch_p()
6921 && (ip->insn_mo->pinfo2 & INSN2_CONVERTED_TO_COMPACT)) in get_append_method()
6955 for (mo = ip->insn_mo; mo < end; mo++) in find_altered_mips16_opcode()
6958 ip->insn_mo = mo; in find_altered_mips16_opcode()
7147 prev_pinfo2 = history[0].insn_mo->pinfo2; in append_insn()
7148 pinfo = ip->insn_mo->pinfo; in append_insn()
7153 && micromips_insn_length (ip->insn_mo) != 2) in append_insn()
7155 && micromips_insn_length (ip->insn_mo) != 4))) in append_insn()
7366 && !(ip->insn_mo->ase & (ASE_MIPS3D | ASE_DSP64 | ASE_DSP))); in append_insn()
7654 && !(history[0].insn_mo->pinfo2 & INSN2_CONVERTED_TO_COMPACT)) in append_insn()
7875 && strncmp (insn->insn_mo->name, "jalr", 4) == 0) in match_insn()
7885 && (strncmp (insn->insn_mo->name, "bltzal", 6) == 0 in match_insn()
7886 || strncmp (insn->insn_mo->name, "bgezal", 6) == 0)) in match_insn()
8378 switch (history[0].insn_mo->pinfo2 in macro_start()
8808 || (history[0].insn_mo->pinfo2 & INSN2_BRANCH_DELAY_32BIT)) in macro_build_jalr()
9473 && !(history[0].insn_mo->pinfo2 & INSN2_BRANCH_DELAY_32BIT)) in move_register()
9847 mask = ip->insn_mo->mask; in macro()
10072 as_warn (_("branch %s is always true"), ip->insn_mo->name); in macro()
11136 && !(history[0].insn_mo->pinfo2 & INSN2_BRANCH_DELAY_32BIT)) in macro()
11156 && !(history[0].insn_mo->pinfo2 & INSN2_BRANCH_DELAY_32BIT)) in macro()
12989 ip->insn_mo->name); in macro()
13142 ip->insn_mo->name); in macro()
13426 as_bad (_("macro %s not implemented yet"), ip->insn_mo->name); in macro()
13447 mask = ip->insn_mo->mask; in mips16_macro()