Lines Matching refs:tok

1842 expression_maybe_register (xtensa_opcode opc, int opnd, expressionS *tok)  in expression_maybe_register()  argument
1850 segT t = expression (tok); in expression_maybe_register()
1855 gas_assert (tok->X_op == O_constant); in expression_maybe_register()
1856 tok->X_op = O_symbol; in expression_maybe_register()
1857 tok->X_add_symbol = &abs_symbol; in expression_maybe_register()
1860 if ((tok->X_op == O_constant || tok->X_op == O_symbol) in expression_maybe_register()
1861 && ((reloc = xtensa_elf_suffix (&input_line_pointer, tok)) in expression_maybe_register()
1867 if (tok->X_op == O_constant) in expression_maybe_register()
1869 tok->X_add_number &= 0xffff; in expression_maybe_register()
1874 if (tok->X_op == O_constant) in expression_maybe_register()
1876 tok->X_add_number = ((unsigned) tok->X_add_number) >> 16; in expression_maybe_register()
1889 tok->X_op = map_suffix_reloc_to_operator (reloc); in expression_maybe_register()
1904 tok->X_op = O_register; in expression_maybe_register()
1905 tok->X_add_symbol = 0; in expression_maybe_register()
1906 tok->X_add_number = reg; in expression_maybe_register()
2002 expressionS *tok, *last_tok; in parse_arguments() local
2017 tok = insn->tok; in parse_arguments()
2018 memset (tok, 0, sizeof (*tok) * MAX_INSN_ARGS); in parse_arguments()
2031 tok++; in parse_arguments()
2060 expression_maybe_register (opcode, opnd_cnt, tok); in parse_arguments()
2061 next_reg = tok->X_add_number + 1; in parse_arguments()
2063 if (tok->X_op == O_illegal || tok->X_op == O_absent) in parse_arguments()
2073 last_tok = tok; in parse_arguments()
2080 tok++; in parse_arguments()
2089 insn->ntok = tok - insn->tok; in parse_arguments()
2138 && (insn->tok[opnd].X_op == O_register in get_invisible_operands()
2139 || insn->tok[opnd].X_op == O_constant)) in get_invisible_operands()
2141 val = insn->tok[opnd].X_add_number; in get_invisible_operands()
2154 insn->tok[opnd].X_add_number = val; in get_invisible_operands()
2156 insn->tok[opnd].X_op = O_register; in get_invisible_operands()
2158 insn->tok[opnd].X_op = O_constant; in get_invisible_operands()
2862 exp1 = &insn->tok[cond->op_num]; in xg_instruction_matches_rule()
2902 exp1 = &insn->tok[cond->op_num]; in xg_instruction_matches_rule()
2903 exp2 = &insn->tok[cond->op_data]; in xg_instruction_matches_rule()
3261 const expressionS *exp = &insn->tok[i]; in xg_immeds_fit()
3306 const expressionS *exp = &insn->tok[i]; in xg_symbolic_immeds_fit()
3419 set_expr_const (&targ->tok[op_num], op_data); in xg_build_to_insn()
3423 copy_expr (&targ->tok[op_num], &insn->tok[op_data]); in xg_build_to_insn()
3428 copy_expr (&targ->tok[op_num], &insn->extra_arg); in xg_build_to_insn()
3432 set_expr_symbol_offset (&targ->tok[op_num], sym, 0); in xg_build_to_insn()
3433 if (insn->tok[op_data].X_op == O_tlsfunc in xg_build_to_insn()
3434 || insn->tok[op_data].X_op == O_tlsarg) in xg_build_to_insn()
3435 copy_expr (&targ->extra_arg, &insn->tok[op_data]); in xg_build_to_insn()
3439 set_expr_symbol_offset (&targ->tok[op_num], sym, 0); in xg_build_to_insn()
3444 if (expr_is_const (&insn->tok[op_data])) in xg_build_to_insn()
3447 copy_expr (&targ->tok[op_num], &insn->tok[op_data]); in xg_build_to_insn()
3449 targ->tok[op_num]. in xg_build_to_insn()
3451 targ->tok[op_num].X_add_number = val; in xg_build_to_insn()
3461 copy_expr (&targ->tok[op_num], &insn->tok[op_data]); in xg_build_to_insn()
3462 if (targ->tok[op_num].X_op == O_symbol) in xg_build_to_insn()
3465 targ->tok[op_num].X_op = O_hi16; in xg_build_to_insn()
3467 targ->tok[op_num].X_op = O_lo16; in xg_build_to_insn()
3481 if (expr_is_const (&insn->tok[op_data])) in xg_build_to_insn()
3484 copy_expr (&targ->tok[op_num], &insn->tok[op_data]); in xg_build_to_insn()
3486 targ->tok[op_num]. in xg_build_to_insn()
3488 targ->tok[op_num].X_add_number = val; in xg_build_to_insn()
3519 if (!xg_valid_literal_expression (&insn->tok[op_data])) in xg_build_to_insn()
3521 copy_expr (&targ->tok[op_num], &insn->tok[op_data]); in xg_build_to_insn()
3802 if (insn->tok[target_op].X_op != O_symbol) in is_branch_jmp_to_next()
3805 sym = insn->tok[target_op].X_add_symbol; in is_branch_jmp_to_next()
3809 if (insn->tok[target_op].X_add_number != 0) in is_branch_jmp_to_next()
3834 && insn->tok[i].X_op == O_symbol) in xg_add_branch_and_loop_targets()
3835 symbol_get_tc (insn->tok[i].X_add_symbol)->is_loop_target = TRUE; in xg_add_branch_and_loop_targets()
3847 && insn->tok[i].X_op == O_symbol) in xg_add_branch_and_loop_targets()
3849 symbolS *sym = insn->tok[i].X_add_symbol; in xg_add_branch_and_loop_targets()
3895 exp = &new_insn->tok[b_op->op_num]; in xg_build_token_insn()
3902 src_exp = &old_insn->tok[b_op->op_data]; in xg_build_token_insn()
3903 exp = &new_insn->tok[b_op->op_num]; in xg_build_token_insn()
3998 int shiftimm = orig_insn->tok[2].X_add_number; in xg_expand_assembly_insn()
3999 int maskimm = orig_insn->tok[3].X_add_number; in xg_expand_assembly_insn()
4125 emit_val = &insn->tok[0]; in xg_assemble_literal()
4319 expressionS *exp = &tinsn->tok[opnum]; in xg_emit_insn_to_buf()
4340 if (insn->tok[i].X_add_symbol == sym) in xg_resolve_literals()
4341 insn->tok[i].X_add_symbol = lit_sym; in xg_resolve_literals()
4352 if (insn->tok[i].X_add_symbol == sym) in xg_resolve_labels()
4353 insn->tok[i].X_add_symbol = label_sym; in xg_resolve_labels()
4381 if ((insn->tok[i].X_op == O_register) in is_register_writer()
4382 && (insn->tok[i].X_add_number == regnum)) in is_register_writer()
4774 set_expr_const (&tinsn->tok[0], 1); in build_nop()
4775 set_expr_const (&tinsn->tok[1], 1); in build_nop()
4776 set_expr_const (&tinsn->tok[2], 1); in build_nop()
5464 expressionS *tok = &orig_insn.extra_arg; in md_assemble() local
5469 expression (tok); in md_assemble()
5470 if (tok->X_op == O_symbol in md_assemble()
5471 && ((reloc = xtensa_elf_suffix (&input_line_pointer, tok)) in md_assemble()
5473 tok->X_op = map_suffix_reloc_to_operator (reloc); in md_assemble()
5492 expressionS *tok = &orig_insn.extra_arg; in md_assemble() local
5497 expression_maybe_register (xtensa_jx_opcode, 0, tok); in md_assemble()
5569 expressionS *exp = &orig_insn.tok[2]; in md_assemble()
6550 t2_base_reg = t2->tok[j].X_add_number; in check_t1_t2_reads_and_writes()
6577 t1_base_reg = t1->tok[i].X_add_number; in check_t1_t2_reads_and_writes()
6864 && (orig_insn->tok[1].X_op == O_symbol in emit_single_op()
6865 || orig_insn->tok[1].X_op == O_pltrel in emit_single_op()
6866 || orig_insn->tok[1].X_op == O_tlsfunc in emit_single_op()
6867 || orig_insn->tok[1].X_op == O_tlsarg in emit_single_op()
6868 || orig_insn->tok[1].X_op == O_tpoff in emit_single_op()
6869 || orig_insn->tok[1].X_op == O_dtpoff) in emit_single_op()
7033 if (vinsn->slots[0].tok[1].X_op == O_symbol) in xg_assemble_vliw_tokens()
7034 target_sym = vinsn->slots[0].tok[1].X_add_symbol; in xg_assemble_vliw_tokens()
7556 const expressionS *exp = &tinsn->tok[1]; in is_narrow_branch_guaranteed_in_range()
8328 exp = &insn->tok[LOOP_IMMED_OPN]; in is_empty_loop()
8375 exp = &insn->tok[LOOP_IMMED_OPN]; in is_local_forward_loop()
8999 set_expr_symbol_offset (&insn.tok[0], lsym, offset); in xtensa_relax_frag()
9485 symbolS *sym = tinsn->tok[0].X_add_symbol; in search_trampolines()
9486 offsetT target = S_GET_VALUE (sym) + tinsn->tok[0].X_add_number; in search_trampolines()
9609 set_expr_symbol_offset (&insn.tok[0], lsym, 3); in init_trampoline_frag()
9647 set_expr_symbol_offset (&insn.tok[0], tsym, toffset); in add_jump_to_trampoline()
9829 expressionS *exp = &istack.insn[istack.ninsn - 2].tok[0]; in relax_frag_immed()
10249 reloc_type = map_operator_to_reloc (tinsn->tok[0].X_op, TRUE); in convert_frag_immed()
10251 &tinsn->tok[0], FALSE, reloc_type); in convert_frag_immed()
10311 sym = orig_tinsn.tok[1].X_add_symbol; in convert_frag_immed()
10317 sym = orig_tinsn.tok[1].X_op_symbol; in convert_frag_immed()
10332 &orig_tinsn.tok[0], TRUE, in convert_frag_immed()
10414 if (tinsn->tok[1].X_op == O_constant) in convert_frag_immed_finish_loop()
10415 target = tinsn->tok[1].X_add_number; in convert_frag_immed_finish_loop()
10416 else if (tinsn->tok[1].X_op == O_symbol) in convert_frag_immed_finish_loop()
10419 symbolS *sym = tinsn->tok[1].X_add_symbol; in convert_frag_immed_finish_loop()
10422 target = (S_GET_VALUE (sym) + tinsn->tok[1].X_add_number); in convert_frag_immed_finish_loop()
10426 as_bad (_("invalid expression evaluation type %d"), tinsn->tok[1].X_op); in convert_frag_immed_finish_loop()
10451 set_expr_const (&addi_insn.tok[2], loop_length_lo); in convert_frag_immed_finish_loop()
10458 set_expr_const (&addmi_insn.tok[2], loop_length_hi); in convert_frag_immed_finish_loop()
11851 switch (insn->tok[i].X_op) in tinsn_has_symbolic_operands()
11875 switch (insn->tok[i].X_op) in tinsn_has_invalid_symbolic_operands()
11918 switch (insn->tok[i].X_op) in tinsn_has_complex_operands()
11967 expressionS *exp = &tinsn->tok[i]; in tinsn_to_slotbuf()
12085 t2_base_reg = insn->tok[j].X_add_number; in tinsn_check_arguments()
12105 t1_base_reg = insn->tok[i].X_add_number; in tinsn_check_arguments()
12161 set_expr_const (&tinsn->tok[i], in tinsn_from_insnbuf()
12180 set_expr_symbol_offset (&tinsn->tok[opnum], in tinsn_immed_from_frag()
12349 expressionS* exp = &tinsn->tok[i]; in vinsn_to_insnbuf()