Home
last modified time | relevance | path

Searched refs:reg2i16_format (Results 1 – 7 of 7) sorted by relevance

/linux/tools/arch/loongarch/include/asm/
H A Dinst.h92 struct reg2i16_format { struct
107 struct reg2i16_format reg2i16_format; argument
153 insn->reg2i16_format.opcode = OP; \
154 insn->reg2i16_format.immediate = offset; \
155 insn->reg2i16_format.rj = rj; \
156 insn->reg2i16_format.rd = rd; \
/linux/tools/objtool/arch/loongarch/
H A Ddecode.c232 switch (inst.reg2i16_format.opcode) { in decode_insn_reg2i16_fomat()
234 if (inst.reg2i16_format.rd == 0 && in decode_insn_reg2i16_fomat()
235 inst.reg2i16_format.rj == CFI_RA && in decode_insn_reg2i16_fomat()
236 inst.reg2i16_format.immediate == 0) { in decode_insn_reg2i16_fomat()
239 } else if (inst.reg2i16_format.rd == CFI_RA) { in decode_insn_reg2i16_fomat()
242 } else if (inst.reg2i16_format.rd == CFI_A0 && in decode_insn_reg2i16_fomat()
243 inst.reg2i16_format.immediate == 0) { in decode_insn_reg2i16_fomat()
250 } else if (inst.reg2i16_format.rd == 0 && in decode_insn_reg2i16_fomat()
251 inst.reg2i16_format.immediate == 0) { in decode_insn_reg2i16_fomat()
254 } else if (inst.reg2i16_format.rd == 0 && in decode_insn_reg2i16_fomat()
[all …]
/linux/arch/loongarch/include/asm/
H A Dinst.h318 struct reg2i16_format { struct
366 struct reg2i16_format reg2i16_format; member
471 switch (ip->reg2i16_format.opcode) { in is_self_loop_ins()
478 if (ip->reg2i16_format.immediate == 0) in is_self_loop_ins()
482 if (regs->regs[ip->reg2i16_format.rj] + in is_self_loop_ins()
483 ((unsigned long)ip->reg2i16_format.immediate << 2) == (unsigned long)ip) in is_self_loop_ins()
674 insn->reg2i16_format.opcode = OP; \
675 insn->reg2i16_format.immediate = offset; \
676 insn->reg2i16_format.rj = rj; \
677 insn->reg2i16_format.rd = rd; \
[all …]
/linux/arch/loongarch/kernel/
H A Dalternative.c107 si = src->reg2i16_format.immediate; in recompute_jump()
108 switch (src->reg2i16_format.opcode) { in recompute_jump()
121 buf->reg2i16_format.immediate = offset; in recompute_jump()
140 src[i].reg2i16_format.opcode != jirl_op) { in copy_alt_insns()
H A Dinst.c86 imm = insn.reg2i16_format.immediate; in simu_branch()
87 rj = insn.reg2i16_format.rj; in simu_branch()
88 rd = insn.reg2i16_format.rd; in simu_branch()
89 switch (insn.reg2i16_format.opcode) { in simu_branch()
H A Dkgdb.c342 rj = ip->reg2i16_format.rj; in get_step_address()
343 rd = ip->reg2i16_format.rd; in get_step_address()
344 si = ip->reg2i16_format.immediate; in get_step_address()
345 switch (ip->reg2i16_format.opcode) { in get_step_address()
H A Dmodule.c195 insn->reg2i16_format.immediate = opr1 & 0xffff; in apply_r_larch_sop_imm_field()
204 insn->reg2i16_format.immediate = (opr1 >> 2) & 0xffff; in apply_r_larch_sop_imm_field()