Lines Matching refs:orig_insn
1728 struct instruction *orig_insn, in handle_group_alt() argument
1735 orig_alt_group = orig_insn->alt_group; in handle_group_alt()
1751 insn = orig_insn; in handle_group_alt()
1760 orig_alt_group->first_insn = orig_insn; in handle_group_alt()
1766 WARN_INSN(orig_insn, "weirdly overlapping alternative! %ld != %d", in handle_group_alt()
1800 nop->sym = orig_insn->sym; in handle_group_alt()
1802 nop->ignore = orig_insn->ignore_alts; in handle_group_alt()
1819 insn->ignore = orig_insn->ignore_alts; in handle_group_alt()
1820 insn->sym = orig_insn->sym; in handle_group_alt()
1877 struct instruction *orig_insn, in handle_jump_alt() argument
1880 if (orig_insn->type != INSN_JUMP_UNCONDITIONAL && in handle_jump_alt()
1881 orig_insn->type != INSN_NOP) { in handle_jump_alt()
1883 WARN_INSN(orig_insn, "unsupported instruction at jump label"); in handle_jump_alt()
1888 struct reloc *reloc = insn_reloc(file, orig_insn); in handle_jump_alt()
1892 elf_write_insn(file->elf, orig_insn->sec, in handle_jump_alt()
1893 orig_insn->offset, orig_insn->len, in handle_jump_alt()
1894 arch_nop_insn(orig_insn->len)); in handle_jump_alt()
1895 orig_insn->type = INSN_NOP; in handle_jump_alt()
1898 if (orig_insn->type == INSN_NOP) { in handle_jump_alt()
1899 if (orig_insn->len == 2) in handle_jump_alt()
1907 if (orig_insn->len == 2) in handle_jump_alt()
1912 *new_insn = next_insn_same_sec(file, orig_insn); in handle_jump_alt()
1925 struct instruction *orig_insn, *new_insn; in add_special_section_alts() local
1936 orig_insn = find_insn(file, special_alt->orig_sec, in add_special_section_alts()
1938 if (!orig_insn) { in add_special_section_alts()
1960 WARN_INSN(orig_insn, "empty alternative entry"); in add_special_section_alts()
1964 ret = handle_group_alt(file, special_alt, orig_insn, in add_special_section_alts()
1969 ret = handle_jump_alt(file, special_alt, orig_insn, in add_special_section_alts()
1984 orig_insn->ignore_alts |= special_alt->skip_alt; in add_special_section_alts()
1985 alt->next = orig_insn->alts; in add_special_section_alts()
1986 orig_insn->alts = alt; in add_special_section_alts()
2068 struct instruction *dest_insn, *orig_insn = insn; in find_jump_table() local
2079 if (insn != orig_insn && insn->type == INSN_JUMP_DYNAMIC) in find_jump_table()
2086 insn->jump_dest->offset > orig_insn->offset)) in find_jump_table()