Lines Matching refs:offset

435           case 'B':  // Branch offset.
437 int32_t offset = static_cast<int16_t>(instruction & 0xffff);
438 offset <<= 2;
439 offset += 4; // Delay slot.
440 args << FormatInstructionPointer(instr_ptr + offset)
441 << StringPrintf(" ; %+d", offset);
444 case 'b': // 21-bit branch offset.
446 int32_t offset = (instruction & 0x1fffff) - ((instruction & 0x100000) << 1);
447 offset <<= 2;
448 offset += 4; // Delay slot.
449 args << FormatInstructionPointer(instr_ptr + offset)
450 << StringPrintf(" ; %+d", offset);
490 case 'l': // 9-bit signed offset
492 int32_t offset = static_cast<int16_t>(instruction) >> 7;
493 args << StringPrintf("%+d(r%d)", offset, rs);
498 int32_t offset = static_cast<int16_t>(instruction & 0xffff);
499 args << StringPrintf("%+d(r%d)", offset, rs);
503 Thread::DumpThreadOffset<8>(args, offset);
505 Thread::DumpThreadOffset<4>(args, offset);
510 case 'P': // 26-bit offset in bc.
512 int32_t offset = (instruction & 0x3ffffff) - ((instruction & 0x2000000) << 1);
513 offset <<= 2;
514 offset += 4;
515 args << FormatInstructionPointer(instr_ptr + offset);
516 args << StringPrintf(" ; %+d", offset);
519 case 'p': // 19-bit offset in addiupc.
521 int32_t offset = (instruction & 0x7ffff) - ((instruction & 0x40000) << 1);
522 args << offset << " ; move r" << rs << ", ";
523 args << FormatInstructionPointer(instr_ptr + (offset << 2));
554 uint32_t offset = (last_instr_ << 16) | (instruction & 0xFFFF);
555 offset -= (offset & 0x8000) << 1;
556 offset -= 4;
562 args << FormatInstructionPointer(instr_ptr + (int32_t)offset);
563 args << StringPrintf(" ; %+d", (int32_t)offset);