Home
last modified time | relevance | path

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

/arch/powerpc/lib/
Dcode-patching.c379 int instr_is_branch_to_addr(const unsigned int *instr, unsigned long addr) in instr_is_branch_to_addr() function
454 check(instr_is_branch_to_addr(&instr, 0x100)); in test_branch_iform()
457 check(instr_is_branch_to_addr(&instr, 0x420fc)); in test_branch_iform()
460 check(instr_is_branch_to_addr(&instr, addr + 0x1FFFFFC)); in test_branch_iform()
463 check(instr_is_branch_to_addr(&instr, addr - 4)); in test_branch_iform()
466 check(instr_is_branch_to_addr(&instr, addr - 0x2000000)); in test_branch_iform()
470 check(instr_is_branch_to_addr(&instr, addr)); in test_branch_iform()
474 check(instr_is_branch_to_addr(&instr, addr - 0x100)); in test_branch_iform()
478 check(instr_is_branch_to_addr(&instr, addr + 0x100)); in test_branch_iform()
482 check(instr_is_branch_to_addr(&instr, addr - 0x2000000)); in test_branch_iform()
[all …]
/arch/powerpc/include/asm/
Dcode-patching.h40 int instr_is_branch_to_addr(const unsigned int *instr, unsigned long addr);