mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 15:55:31 +01:00
x64Emitter: Simplify/compress some conditionals
This commit is contained in:
parent
c08a83a5aa
commit
f194ee6223
@ -166,16 +166,7 @@ struct OpArg
|
|||||||
bool IsSimpleReg() const {return scale == SCALE_NONE;}
|
bool IsSimpleReg() const {return scale == SCALE_NONE;}
|
||||||
bool IsSimpleReg(X64Reg reg) const
|
bool IsSimpleReg(X64Reg reg) const
|
||||||
{
|
{
|
||||||
if (!IsSimpleReg())
|
return IsSimpleReg() && GetSimpleReg() == reg;
|
||||||
return false;
|
|
||||||
return GetSimpleReg() == reg;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CanDoOpWith(const OpArg& other) const
|
|
||||||
{
|
|
||||||
if (IsSimpleReg()) return true;
|
|
||||||
if (!IsSimpleReg() && !other.IsSimpleReg() && !other.IsImm()) return false;
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetImmBits() const
|
int GetImmBits() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user