Merge pull request #41 from encounter/branch_offset

Ignore bcctr, bclr in branch_offset
This commit is contained in:
Richard Patel 2022-11-15 03:08:10 +01:00 committed by GitHub
commit 2be94b3ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ impl Ins {
pub fn branch_offset(&self) -> Option<i32> {
match self.op {
Opcode::B => Some(self.field_LI() as i32),
Opcode::Bc | Opcode::Bcctr | Opcode::Bclr => Some(self.field_BD() as i32),
Opcode::Bc => Some(self.field_BD() as i32),
_ => None,
}
}