Lines Matching refs:instr_is_branch_to_addr
378 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()
497 check(instr_is_branch_to_addr(&instr, addr)); in test_branch_iform()
510 check(instr_is_branch_to_addr(iptr, dest)); in test_create_function_call()
532 check(instr_is_branch_to_addr(&instr, 0x100)); in test_branch_bform()
535 check(instr_is_branch_to_addr(&instr, 0x20fc)); in test_branch_bform()
538 check(instr_is_branch_to_addr(&instr, addr + 0x7FFC)); in test_branch_bform()
541 check(instr_is_branch_to_addr(&instr, addr - 4)); in test_branch_bform()
544 check(instr_is_branch_to_addr(&instr, addr - 0x8000)); in test_branch_bform()
551 check(instr_is_branch_to_addr(&instr, addr)); in test_branch_bform()
555 check(instr_is_branch_to_addr(&instr, addr - 0x100)); in test_branch_bform()
559 check(instr_is_branch_to_addr(&instr, addr + 0x100)); in test_branch_bform()
563 check(instr_is_branch_to_addr(&instr, addr - 0x8000)); in test_branch_bform()
579 check(instr_is_branch_to_addr(&instr, addr)); in test_branch_bform()
598 check(instr_is_branch_to_addr(p, addr)); in test_translate_branch()
601 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
609 check(instr_is_branch_to_addr(p, addr)); in test_translate_branch()
610 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
619 check(instr_is_branch_to_addr(p, addr)); in test_translate_branch()
620 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
629 check(instr_is_branch_to_addr(p, addr)); in test_translate_branch()
630 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
638 check(instr_is_branch_to_addr(p, addr)); in test_translate_branch()
639 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
648 check(instr_is_branch_to_addr(p, addr)); in test_translate_branch()
651 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
659 check(instr_is_branch_to_addr(p, addr)); in test_translate_branch()
660 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
669 check(instr_is_branch_to_addr(p, addr)); in test_translate_branch()
670 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
679 check(instr_is_branch_to_addr(p, addr)); in test_translate_branch()
680 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
688 check(instr_is_branch_to_addr(p, addr)); in test_translate_branch()
689 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()