Home
last modified time | relevance | path

Searched refs:instr_is_branch_to_addr (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/arch/powerpc/lib/
Dcode-patching.c370 int instr_is_branch_to_addr(const struct ppc_inst *instr, unsigned long addr) in instr_is_branch_to_addr() function
449 check(instr_is_branch_to_addr(&instr, 0x100)); in test_branch_iform()
452 check(instr_is_branch_to_addr(&instr, 0x420fc)); in test_branch_iform()
455 check(instr_is_branch_to_addr(&instr, addr + 0x1FFFFFC)); in test_branch_iform()
458 check(instr_is_branch_to_addr(&instr, addr - 4)); in test_branch_iform()
461 check(instr_is_branch_to_addr(&instr, addr - 0x2000000)); in test_branch_iform()
465 check(instr_is_branch_to_addr(&instr, addr)); in test_branch_iform()
469 check(instr_is_branch_to_addr(&instr, addr - 0x100)); in test_branch_iform()
473 check(instr_is_branch_to_addr(&instr, addr + 0x100)); in test_branch_iform()
477 check(instr_is_branch_to_addr(&instr, addr - 0x2000000)); in test_branch_iform()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dcode-patching.h63 int instr_is_branch_to_addr(const struct ppc_inst *instr, unsigned long addr);