Lines Matching refs:slot

2105   int slot, opnd, fmt_found;  in get_invisible_operands()  local
2113 slot = 0; 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()
2554 get_opcode_from_buf (const char *buf, int slot) in get_opcode_from_buf() argument
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()
2682 decode_reloc (bfd_reloc_code_real_type reloc, int *slot, bfd_boolean *is_alt) in decode_reloc() argument
2687 *slot = reloc - BFD_RELOC_XTENSA_SLOT0_OP; in decode_reloc()
2693 *slot = reloc - BFD_RELOC_XTENSA_SLOT0_ALT; in decode_reloc()
2708 encode_reloc (int slot) in encode_reloc() argument
2710 if (slot < 0 || slot > 14) in encode_reloc()
2713 return BFD_RELOC_XTENSA_SLOT0_OP + slot; in encode_reloc()
2721 encode_alt_reloc (int slot) in encode_alt_reloc() argument
2723 if (slot < 0 || slot > 14) in encode_alt_reloc()
2726 return BFD_RELOC_XTENSA_SLOT0_ALT + slot; in encode_alt_reloc()
2733 int slot, in xtensa_insnbuf_set_operand() argument
2760 xtensa_operand_set_field (xtensa_default_isa, opcode, operand, fmt, slot, in xtensa_insnbuf_set_operand()
2768 int slot, in xtensa_insnbuf_get_operand() argument
2774 fmt, slot, slotbuf, &val); in xtensa_insnbuf_get_operand()
4183 xg_assemble_literal_space (/* const */ int size, int slot) in xg_assemble_literal_space() argument
4208 frag_now->tc_frag_data.literal_frags[slot] = lit_saved_frag; in xg_assemble_literal_space()
4219 int slot, in xg_add_opcode_fix() argument
4236 reloc = encode_alt_reloc (slot); in xg_add_opcode_fix()
4242 reloc = encode_reloc (slot); in xg_add_opcode_fix()
4247 reloc = encode_alt_reloc (slot); in xg_add_opcode_fix()
4271 reloc = encode_reloc (slot); in xg_add_opcode_fix()
4274 as_bad (_("invalid relocation in instruction slot %i"), slot); in xg_add_opcode_fix()
4292 the_fix->tc_fix_data.slot = slot; in xg_add_opcode_fix()
4317 int slot = xg_get_single_slot (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()
5075 int slot; in xg_apply_fix_value() local
5080 if (decode_reloc (fixP->fx_r_type, &slot, &alt_reloc) 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()
5220 x->tc_fix_data.slot = 0; in xtensa_init_fix_data()
5668 int slot; in md_pcrel_from() local
5692 if (decode_reloc (fixP->fx_r_type, &slot, &alt_reloc) != 0) 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()
6709 int slot; in xg_find_narrowest_format() local
6711 for (slot = 0; slot < v_copy.num_slots; slot++) in xg_find_narrowest_format()
6713 if (v_copy.slots[slot].opcode == nop_opcode) in xg_find_narrowest_format()
6715 v_copy.slots[slot].opcode = in xg_find_narrowest_format()
6716 xtensa_format_slot_nop_opcode (isa, format, slot); in xg_find_narrowest_format()
6717 v_copy.slots[slot].ntok = 0; in xg_find_narrowest_format()
6720 if (opcode_fits_format_slot (v_copy.slots[slot].opcode, in xg_find_narrowest_format()
6721 format, slot)) in xg_find_narrowest_format()
6727 if (!v_copy.slots[slot].keep_wide in xg_find_narrowest_format()
6728 && !v_copy.slots[slot].is_specific_opcode in xg_find_narrowest_format()
6729 && xg_is_single_relaxable_insn (&v_copy.slots[slot], in xg_find_narrowest_format()
6732 format, slot)) in xg_find_narrowest_format()
6734 v_copy.slots[slot] = widened; in xg_find_narrowest_format()
6766 int slot; in relaxation_requirements() local
6768 for (slot = 0; slot < vinsn->num_slots; slot++) in relaxation_requirements()
6770 TInsn *tinsn = &vinsn->slots[slot]; in relaxation_requirements()
6825 int slot, chosen_slot; in bundle_tinsn() local
6832 for (slot = 0; slot < vinsn->num_slots; slot++) in bundle_tinsn()
6834 if (slot == chosen_slot) in bundle_tinsn()
6835 vinsn->slots[slot] = *tinsn; in bundle_tinsn()
6838 vinsn->slots[slot].opcode = in bundle_tinsn()
6839 xtensa_format_slot_nop_opcode (isa, vinsn->format, slot); in bundle_tinsn()
6840 vinsn->slots[slot].ntok = 0; in bundle_tinsn()
6841 vinsn->slots[slot].insn_type = ITYPE_INSN; in bundle_tinsn()
6922 int slot; in total_frag_text_expansion() local
6925 for (slot = 0; slot < config_max_slots; slot++) in total_frag_text_expansion()
6926 total_expansion += fragP->tc_frag_data.text_expansion[slot]; in total_frag_text_expansion()
6944 int slot; in xg_assemble_vliw_tokens() local
7004 for (slot = 0; slot < vinsn->num_slots; slot++) in xg_assemble_vliw_tokens()
7006 tinsn = &vinsn->slots[slot]; in xg_assemble_vliw_tokens()
7094 for (slot = 0; slot < vinsn->num_slots; slot++) in xg_assemble_vliw_tokens()
7096 tinsn = &vinsn->slots[slot]; in xg_assemble_vliw_tokens()
7097 frag_now->tc_frag_data.slot_subtypes[slot] = tinsn->subtype; in xg_assemble_vliw_tokens()
7098 frag_now->tc_frag_data.slot_symbols[slot] = tinsn->symbol; in xg_assemble_vliw_tokens()
7099 frag_now->tc_frag_data.slot_offsets[slot] = tinsn->offset; in xg_assemble_vliw_tokens()
7100 frag_now->tc_frag_data.literal_frags[slot] = tinsn->literal_frag; in xg_assemble_vliw_tokens()
7102 xg_assemble_literal_space (tinsn->literal_space, slot); in xg_assemble_vliw_tokens()
7103 frag_now->tc_frag_data.free_reg[slot] = tinsn->extra_arg; in xg_assemble_vliw_tokens()
7770 int slot; in next_instrs_are_b_retw() local
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()
8227 int slot; in unrelaxed_frag_has_b_j() local
8235 for (slot = 0; slot < xtensa_format_num_slots (isa, fmt); slot++) in unrelaxed_frag_has_b_j()
8238 get_opcode_from_buf (fragP->fr_literal + offset, slot); in unrelaxed_frag_has_b_j()
8802 int slot, num_slots; in xtensa_relax_frag() local
8856 for (slot = 0; slot < num_slots; slot++) in xtensa_relax_frag()
8858 switch (fragP->tc_frag_data.slot_subtypes[slot]) in xtensa_relax_frag()
8872 fragP->tc_frag_data.slot_subtypes[slot] - RELAX_IMMED, in xtensa_relax_frag()
8873 fmt, slot, stretched_p, FALSE); in xtensa_relax_frag()
8920 slot = fixP->tc_fix_data.slot; 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()
9011 newfixP->tc_fix_data.slot = slot; in xtensa_relax_frag()
9015 fixP->tc_fix_data.slot = 0; in xtensa_relax_frag()
9677 int slot, in relax_frag_immed() argument
9700 tinsn = cur_vinsn.slots[slot]; in relax_frag_immed()
9701 tinsn_immed_from_frag (&tinsn, fragP, slot); in relax_frag_immed()
9732 fragP->tc_frag_data.slot_subtypes[slot] = (int) RELAX_IMMED + num_steps; in relax_frag_immed()
9737 = num_literal_bytes - fragP->tc_frag_data.literal_expansion[slot]; in relax_frag_immed()
9747 if (opcode_fits_format_slot (istack.insn[first].opcode, fmt, slot)) in relax_frag_immed()
9761 fragP->tc_frag_data.slot_subtypes[slot] in relax_frag_immed()
9766 = num_literal_bytes - fragP->tc_frag_data.literal_expansion[slot]; in relax_frag_immed()
9773 this_text_diff = total_text_diff - fragP->tc_frag_data.text_expansion[slot]; in relax_frag_immed()
9780 fragP->tc_frag_data.text_expansion[slot] = total_text_diff; in relax_frag_immed()
9781 fragP->tc_frag_data.literal_expansion[slot] = num_literal_bytes; in relax_frag_immed()
9782 gas_assert (fragP->tc_frag_data.text_expansion[slot] >= 0); in relax_frag_immed()
9783 gas_assert (fragP->tc_frag_data.literal_expansion[slot] >= 0); in relax_frag_immed()
9788 fragS *lit_fragP = fragP->tc_frag_data.literal_frags[slot]; in relax_frag_immed()
9856 int slot; in md_convert_frag() local
9889 for (slot = 0; slot < num_slots; slot++) in md_convert_frag()
9891 switch (fragp->tc_frag_data.slot_subtypes[slot]) in md_convert_frag()
9894 convert_frag_narrow (sec, fragp, fmt, slot); in md_convert_frag()
9904 fragp->tc_frag_data.slot_subtypes[slot] - RELAX_IMMED, 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
10006 gas_assert (slot == 0); in convert_frag_narrow()
10014 fmt, slot); in convert_frag_narrow()
10090 int slot) in convert_frag_immed() argument
10110 orig_tinsn = cur_vinsn.slots[slot]; in convert_frag_immed()
10111 tinsn_immed_from_frag (&orig_tinsn, fragP, slot); in convert_frag_immed()
10124 cur_vinsn.slots[slot].opcode = in convert_frag_immed()
10125 xtensa_format_slot_nop_opcode (isa, cur_vinsn.format, slot); in convert_frag_immed()
10126 cur_vinsn.slots[slot].ntok = 0; in convert_frag_immed()
10181 lit_frag = fragP->tc_frag_data.literal_frags[slot]; in convert_frag_immed()
10219 if (!opcode_fits_format_slot (tinsn->opcode, fmt, slot)) in convert_frag_immed()
10241 lit_frag = fragP->tc_frag_data.literal_frags[slot]; in convert_frag_immed()
10263 if (opcode_fits_format_slot (tinsn->opcode, fmt, slot)) in convert_frag_immed()
10265 cur_vinsn.slots[slot] = *tinsn; in convert_frag_immed()
10269 cur_vinsn.slots[slot].opcode = in convert_frag_immed()
10270 xtensa_format_slot_nop_opcode (isa, fmt, slot); in convert_frag_immed()
10271 cur_vinsn.slots[slot].ntok = 0; in convert_frag_immed()
10278 if (!opcode_fits_format_slot (tinsn->opcode, fmt, slot)) in convert_frag_immed()
11673 int slot; in init_op_placement_info_table() local
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()
11702 set_bit (slot, opi->slots[fmt]); in init_op_placement_info_table()
11711 opi->narrowest_slot = slot; 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()
11944 int slot, in tinsn_to_slotbuf() argument
11958 if (xtensa_opcode_encode (isa, fmt, slot, slotbuf, opcode)) 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()
12132 tinsn_from_chars (TInsn *tinsn, char *f, int slot) in tinsn_from_chars() argument
12139 *tinsn = vinsn.slots[slot]; in tinsn_from_chars()
12148 int slot) 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()
12171 tinsn_immed_from_frag (TInsn *tinsn, fragS *fragP, int slot) in tinsn_immed_from_frag() argument
12176 if (fragP->tc_frag_data.slot_symbols[slot]) in tinsn_immed_from_frag()
12181 fragP->tc_frag_data.slot_symbols[slot], in tinsn_immed_from_frag()
12182 fragP->tc_frag_data.slot_offsets[slot]); in tinsn_immed_from_frag()
12184 tinsn->extra_arg = fragP->tc_frag_data.free_reg[slot]; in tinsn_immed_from_frag()
12309 int slot; in vinsn_to_insnbuf() local
12314 for (slot = 0; slot < vinsn->num_slots; slot++) in vinsn_to_insnbuf()
12316 TInsn *tinsn = &vinsn->slots[slot]; in vinsn_to_insnbuf()
12319 tinsn_to_slotbuf (vinsn->format, slot, tinsn, in vinsn_to_insnbuf()
12320 vinsn->slotbuf[slot]); in vinsn_to_insnbuf()
12322 xtensa_format_set_slot (isa, fmt, slot, in vinsn_to_insnbuf()
12323 insnbuf, vinsn->slotbuf[slot]); in vinsn_to_insnbuf()
12365 xg_add_opcode_fix (tinsn, i, fmt, slot, exp, fragP, in vinsn_to_insnbuf()