Lines Matching refs:q
348 unsigned int *p, *q; in test_translate_branch() local
361 q = p + 1; in test_translate_branch()
362 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
363 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
369 q = buf + 0x2000000; in test_translate_branch()
370 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
372 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
373 check(*q == 0x4a000000); in test_translate_branch()
379 q = buf + 4; in test_translate_branch()
380 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
382 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
383 check(*q == 0x49fffffc); in test_translate_branch()
389 q = buf + 0x1400000; in test_translate_branch()
390 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
392 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
398 q = buf + 4; in test_translate_branch()
399 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
401 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
411 q = p + 1; in test_translate_branch()
412 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
413 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
419 q = buf + 0x8000; in test_translate_branch()
420 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
422 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
423 check(*q == 0x43ff8000); in test_translate_branch()
429 q = buf + 4; in test_translate_branch()
430 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
432 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
433 check(*q == 0x43ff7ffc); in test_translate_branch()
439 q = buf + 0x5000; in test_translate_branch()
440 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
442 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()
448 q = buf + 4; in test_translate_branch()
449 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
451 check(instr_is_branch_to_addr(q, addr)); in test_translate_branch()