Home
last modified time | relevance | path

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

/Linux-v5.10/arch/powerpc/lib/
Dcode-patching.c365 int instr_is_branch_to_addr(const struct ppc_inst *instr, unsigned long addr) in instr_is_branch_to_addr() function
444 check(instr_is_branch_to_addr(&instr, 0x100)); in test_branch_iform()
447 check(instr_is_branch_to_addr(&instr, 0x420fc)); in test_branch_iform()
450 check(instr_is_branch_to_addr(&instr, addr + 0x1FFFFFC)); in test_branch_iform()
453 check(instr_is_branch_to_addr(&instr, addr - 4)); in test_branch_iform()
456 check(instr_is_branch_to_addr(&instr, addr - 0x2000000)); in test_branch_iform()
460 check(instr_is_branch_to_addr(&instr, addr)); in test_branch_iform()
464 check(instr_is_branch_to_addr(&instr, addr - 0x100)); in test_branch_iform()
468 check(instr_is_branch_to_addr(&instr, addr + 0x100)); in test_branch_iform()
472 check(instr_is_branch_to_addr(&instr, addr - 0x2000000)); in test_branch_iform()
[all …]
/Linux-v5.10/arch/powerpc/include/asm/
Dcode-patching.h62 int instr_is_branch_to_addr(const struct ppc_inst *instr, unsigned long addr);