Lines Matching refs:fmt
2103 xtensa_format fmt; in get_invisible_operands() local
2114 for (fmt = 0; fmt < xtensa_isa_num_formats (isa); fmt++) in get_invisible_operands()
2116 for (slot = 0; slot < xtensa_format_num_slots (isa, fmt); slot++) in get_invisible_operands()
2118 if (xtensa_opcode_encode (isa, fmt, slot, slotbuf, opc) == 0) in get_invisible_operands()
2143 xtensa_operand_set_field (isa, opc, opnd, fmt, slot, slotbuf, val); in get_invisible_operands()
2152 xtensa_operand_get_field (isa, opc, opnd, fmt, slot, slotbuf, &val); in get_invisible_operands()
2559 xtensa_format fmt; in get_opcode_from_buf() local
2568 fmt = xtensa_format_decode (isa, insnbuf); in get_opcode_from_buf()
2569 if (fmt == XTENSA_UNDEFINED) in get_opcode_from_buf()
2572 if (slot >= xtensa_format_num_slots (isa, fmt)) in get_opcode_from_buf()
2575 xtensa_format_get_slot (isa, fmt, slot, insnbuf, slotbuf); in get_opcode_from_buf()
2576 return xtensa_opcode_decode (isa, fmt, slot, slotbuf); in get_opcode_from_buf()
2732 xtensa_format fmt, in xtensa_insnbuf_set_operand() argument
2760 xtensa_operand_set_field (xtensa_default_isa, opcode, operand, fmt, slot, in xtensa_insnbuf_set_operand()
2767 xtensa_format fmt, in xtensa_insnbuf_get_operand() argument
2774 fmt, slot, slotbuf, &val); in xtensa_insnbuf_get_operand()
4218 xtensa_format fmt, in xg_add_opcode_fix() argument
4286 fmt_length = xtensa_format_length (xtensa_default_isa, fmt); in xg_add_opcode_fix()
4316 xtensa_format fmt = xg_get_single_format (tinsn->opcode); in xg_emit_insn_to_buf() local
4321 if (!xg_add_opcode_fix (tinsn, opnum, fmt, slot, exp, fragP, offset)) in xg_emit_insn_to_buf()
4493 xtensa_format fmt; in frag_format_size() local
4505 fmt = xtensa_format_decode (isa, insnbuf); in frag_format_size()
4506 if (fmt == XTENSA_UNDEFINED) in frag_format_size()
4508 fmt_size = xtensa_format_length (isa, fmt); in frag_format_size()
4522 if (xtensa_format_num_slots (xtensa_default_isa, fmt) > 1) in frag_format_size()
5003 xtensa_format fmt; in xtensa_find_unaligned_branch_targets() local
5007 fmt = xtensa_format_decode (isa, insnbuf); in xtensa_find_unaligned_branch_targets()
5008 op_size = xtensa_format_length (isa, fmt); in xtensa_find_unaligned_branch_targets()
5042 xtensa_format fmt; in xtensa_find_unaligned_loops() local
5051 fmt = xtensa_format_decode (isa, insnbuf); in xtensa_find_unaligned_loops()
5052 op_size = xtensa_format_length (isa, fmt); in xtensa_find_unaligned_loops()
5074 xtensa_format fmt; in xg_apply_fix_value() local
5091 fmt = xtensa_format_decode (isa, insnbuf); in xg_apply_fix_value()
5092 if (fmt == XTENSA_UNDEFINED) in xg_apply_fix_value()
5094 xtensa_format_get_slot (isa, fmt, slot, insnbuf, slotbuf); in xg_apply_fix_value()
5095 opcode = xtensa_opcode_decode (isa, fmt, slot, slotbuf); in xg_apply_fix_value()
5105 xtensa_insnbuf_set_operand (slotbuf, fmt, slot, opcode, in xg_apply_fix_value()
5109 xtensa_format_set_slot (isa, fmt, slot, insnbuf, slotbuf); in xg_apply_fix_value()
5507 xtensa_format fmt = xtensa_format_lookup (isa, opname); in md_assemble() local
5508 if (fmt == XTENSA_UNDEFINED) in md_assemble()
5523 cur_vinsn.format = fmt; in md_assemble()
5667 xtensa_format fmt; in md_pcrel_from() local
5687 fmt = xtensa_format_decode (isa, insnbuf); in md_pcrel_from()
5689 if (fmt == XTENSA_UNDEFINED) in md_pcrel_from()
5695 xtensa_format_get_slot (isa, fmt, slot, insnbuf, slotbuf); in md_pcrel_from()
5696 opcode = xtensa_opcode_decode (isa, fmt, slot, slotbuf); in md_pcrel_from()
7764 xtensa_format fmt; in next_instrs_are_b_retw() local
7785 fmt = xtensa_format_decode (isa, insnbuf); in next_instrs_are_b_retw()
7786 if (fmt == XTENSA_UNDEFINED) in next_instrs_are_b_retw()
7789 for (slot = 0; slot < xtensa_format_num_slots (isa, fmt); slot++) in next_instrs_are_b_retw()
7791 xtensa_format_get_slot (isa, fmt, slot, insnbuf, slotbuf); in next_instrs_are_b_retw()
7792 opcode = xtensa_opcode_decode (isa, fmt, slot, slotbuf); in next_instrs_are_b_retw()
7801 offset += xtensa_format_length (isa, fmt); in next_instrs_are_b_retw()
7814 fmt = xtensa_format_decode (isa, insnbuf); in next_instrs_are_b_retw()
7818 if (fmt == XTENSA_UNDEFINED in next_instrs_are_b_retw()
7819 || xtensa_format_num_slots (isa, fmt) != 1) in next_instrs_are_b_retw()
7822 xtensa_format_get_slot (isa, fmt, 0, insnbuf, slotbuf); in next_instrs_are_b_retw()
7823 opcode = xtensa_opcode_decode (isa, fmt, 0, slotbuf); in next_instrs_are_b_retw()
8173 xtensa_format fmt; in unrelaxed_frag_min_insn_count() local
8177 fmt = xtensa_format_decode (isa, insnbuf); in unrelaxed_frag_min_insn_count()
8179 if (fmt == XTENSA_UNDEFINED) in unrelaxed_frag_min_insn_count()
8184 offset += xtensa_format_length (isa, fmt); in unrelaxed_frag_min_insn_count()
8226 xtensa_format fmt; in unrelaxed_frag_has_b_j() local
8231 fmt = xtensa_format_decode (isa, insnbuf); in unrelaxed_frag_has_b_j()
8232 if (fmt == XTENSA_UNDEFINED) in unrelaxed_frag_has_b_j()
8235 for (slot = 0; slot < xtensa_format_num_slots (isa, fmt); slot++) in unrelaxed_frag_has_b_j()
8243 offset += xtensa_format_length (isa, fmt); in unrelaxed_frag_has_b_j()
8803 xtensa_format fmt; in xtensa_relax_frag() local
8853 fmt = xtensa_format_decode (isa, vbuf); in xtensa_relax_frag()
8854 num_slots = xtensa_format_num_slots (isa, fmt); in xtensa_relax_frag()
8873 fmt, slot, stretched_p, FALSE); in xtensa_relax_frag()
8918 fmt = xtensa_format_decode (isa, trampoline_buf); in xtensa_relax_frag()
8919 gas_assert (fmt != XTENSA_UNDEFINED); in xtensa_relax_frag()
8921 xtensa_format_get_slot (isa, fmt, slot, trampoline_buf, trampoline_slotbuf); in xtensa_relax_frag()
8922 opcode = xtensa_opcode_decode (isa, fmt, slot, trampoline_slotbuf); in xtensa_relax_frag()
9000 fmt = xg_get_single_format (xtensa_j_opcode); in xtensa_relax_frag()
9001 tinsn_to_slotbuf (fmt, 0, &insn, trampoline_slotbuf); in xtensa_relax_frag()
9002 xtensa_format_set_slot (isa, fmt, 0, trampoline_buf, trampoline_slotbuf); in xtensa_relax_frag()
9600 xtensa_format fmt; in init_trampoline_frag() local
9610 fmt = xg_get_single_format (xtensa_j_opcode); in init_trampoline_frag()
9611 tinsn_to_slotbuf (fmt, 0, &insn, trampoline_slotbuf); in init_trampoline_frag()
9612 xtensa_format_set_slot (isa, fmt, 0, trampoline_buf, trampoline_slotbuf); in init_trampoline_frag()
9635 xtensa_format fmt; in add_jump_to_trampoline() local
9648 fmt = xg_get_single_format (xtensa_j_opcode); in add_jump_to_trampoline()
9649 tinsn_to_slotbuf (fmt, 0, &insn, trampoline_slotbuf); in add_jump_to_trampoline()
9650 xtensa_format_set_slot (isa, fmt, 0, trampoline_buf, trampoline_slotbuf); in add_jump_to_trampoline()
9676 xtensa_format fmt, in relax_frag_immed() argument
9711 old_size = xtensa_format_length (isa, fmt); in relax_frag_immed()
9747 if (opcode_fits_format_slot (istack.insn[first].opcode, fmt, slot)) in relax_frag_immed()
9858 xtensa_format fmt; in md_convert_frag() local
9886 fmt = xtensa_format_decode (isa, vbuf); in md_convert_frag()
9887 num_slots = xtensa_format_num_slots (isa, fmt); in md_convert_frag()
9894 convert_frag_narrow (sec, fragp, fmt, slot); in md_convert_frag()
9905 fmt, slot); in md_convert_frag()
10000 convert_frag_narrow (segT segP, fragS *fragP, xtensa_format fmt, int slot) in convert_frag_narrow() argument
10014 fmt, slot); in convert_frag_narrow()
10089 xtensa_format fmt, in convert_frag_immed() argument
10121 bytes = xtensa_format_length (isa, fmt); in convert_frag_immed()
10164 old_size = xtensa_format_length (isa, fmt); in convert_frag_immed()
10217 target_offset += xtensa_format_length (isa, fmt); in convert_frag_immed()
10219 if (!opcode_fits_format_slot (tinsn->opcode, fmt, slot)) in convert_frag_immed()
10263 if (opcode_fits_format_slot (tinsn->opcode, fmt, slot)) in convert_frag_immed()
10270 xtensa_format_slot_nop_opcode (isa, fmt, slot); in convert_frag_immed()
10277 size = xtensa_format_length (isa, fmt); in convert_frag_immed()
10278 if (!opcode_fits_format_slot (tinsn->opcode, fmt, slot)) in convert_frag_immed()
11672 xtensa_format fmt; in init_op_placement_info_table() local
11692 for (fmt = 0; fmt < xtensa_isa_num_formats (isa); fmt++) in init_op_placement_info_table()
11694 opi->slots[fmt] = 0; in init_op_placement_info_table()
11695 for (slot = 0; slot < xtensa_format_num_slots (isa, fmt); slot++) in init_op_placement_info_table()
11697 if (xtensa_opcode_encode (isa, fmt, slot, ibuf, opcode) == 0) in init_op_placement_info_table()
11699 int fmt_length = xtensa_format_length (isa, fmt); in init_op_placement_info_table()
11701 set_bit (fmt, opi->formats); in init_op_placement_info_table()
11702 set_bit (slot, opi->slots[fmt]); in init_op_placement_info_table()
11705 && (xtensa_format_num_slots (isa, fmt) in init_op_placement_info_table()
11709 opi->narrowest = fmt; in init_op_placement_info_table()
11724 opcode_fits_format_slot (xtensa_opcode opcode, xtensa_format fmt, int slot) in opcode_fits_format_slot() argument
11726 return bit_is_set (slot, op_placement_table[opcode].slots[fmt]); in opcode_fits_format_slot()
11943 tinsn_to_slotbuf (xtensa_format fmt, in tinsn_to_slotbuf() argument
11958 if (xtensa_opcode_encode (isa, fmt, slot, slotbuf, opcode)) in tinsn_to_slotbuf()
11961 xtensa_opcode_name (isa, opcode), xtensa_format_name (isa, fmt)); in tinsn_to_slotbuf()
11982 rc = xtensa_operand_set_field (isa, opcode, i, fmt, slot, slotbuf, in tinsn_to_slotbuf()
11994 xtensa_insnbuf_set_operand (slotbuf, fmt, slot, opcode, i, in tinsn_to_slotbuf()
12147 xtensa_format fmt, in tinsn_from_insnbuf() argument
12157 tinsn->opcode = xtensa_opcode_decode (isa, fmt, slot, slotbuf); in tinsn_from_insnbuf()
12162 xtensa_insnbuf_get_operand (slotbuf, fmt, slot, in tinsn_from_insnbuf()
12307 xtensa_format fmt = vinsn->format; in vinsn_to_insnbuf() local
12312 xtensa_format_encode (isa, fmt, insnbuf); in vinsn_to_insnbuf()
12322 xtensa_format_set_slot (isa, fmt, slot, in vinsn_to_insnbuf()
12336 xtensa_format_length (isa, fmt), in vinsn_to_insnbuf()
12365 xg_add_opcode_fix (tinsn, i, fmt, slot, exp, fragP, in vinsn_to_insnbuf()
12402 xtensa_format fmt; in vinsn_from_chars() local
12412 fmt = xtensa_format_decode (isa, insnbuf); in vinsn_from_chars()
12413 if (fmt == XTENSA_UNDEFINED) in vinsn_from_chars()
12415 vinsn->format = fmt; in vinsn_from_chars()
12416 vinsn->num_slots = xtensa_format_num_slots (isa, fmt); in vinsn_from_chars()
12421 xtensa_format_get_slot (isa, fmt, i, insnbuf, slotbuf); in vinsn_from_chars()
12422 tinsn_from_insnbuf (tinsn, slotbuf, fmt, i); in vinsn_from_chars()