mirror of
https://github.com/encounter/objdiff.git
synced 2025-06-07 23:23:34 +00:00
parent
eef9598e76
commit
197d1247a8
@ -61,6 +61,16 @@ impl ObjInsArg {
|
|||||||
| (ppc750cl::Argument::Offset(off), ppc750cl::Argument::Simm(simm)) => {
|
| (ppc750cl::Argument::Offset(off), ppc750cl::Argument::Simm(simm)) => {
|
||||||
simm.0 == off.0
|
simm.0 == off.0
|
||||||
}
|
}
|
||||||
|
// Consider Uimm and Offset equivalent
|
||||||
|
(ppc750cl::Argument::Uimm(uimm), ppc750cl::Argument::Offset(off))
|
||||||
|
| (ppc750cl::Argument::Offset(off), ppc750cl::Argument::Uimm(uimm)) => {
|
||||||
|
uimm.0 == off.0 as u16
|
||||||
|
}
|
||||||
|
// Consider Uimm and Simm equivalent
|
||||||
|
(ppc750cl::Argument::Uimm(uimm), ppc750cl::Argument::Simm(simm))
|
||||||
|
| (ppc750cl::Argument::Simm(simm), ppc750cl::Argument::Uimm(uimm)) => {
|
||||||
|
uimm.0 == simm.0 as u16
|
||||||
|
}
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user