Home
last modified time | relevance | path

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

/Linux-v4.19/arch/powerpc/lib/
Dcode-patching.c378 int instr_is_branch_to_addr(const unsigned int *instr, unsigned long addr) in instr_is_branch_to_addr() function
453 check(instr_is_branch_to_addr(&instr, 0x100)); in test_branch_iform()
456 check(instr_is_branch_to_addr(&instr, 0x420fc)); in test_branch_iform()
459 check(instr_is_branch_to_addr(&instr, addr + 0x1FFFFFC)); in test_branch_iform()
462 check(instr_is_branch_to_addr(&instr, addr - 4)); in test_branch_iform()
465 check(instr_is_branch_to_addr(&instr, addr - 0x2000000)); in test_branch_iform()
469 check(instr_is_branch_to_addr(&instr, addr)); 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 + 0x100)); in test_branch_iform()
481 check(instr_is_branch_to_addr(&instr, addr - 0x2000000)); in test_branch_iform()
[all …]
/Linux-v4.19/arch/powerpc/include/asm/
Dcode-patching.h41 int instr_is_branch_to_addr(const unsigned int *instr, unsigned long addr);