ARM: Get rid of unnecessary flag calculating functions.
This commit is contained in:
parent
bf903ec9a1
commit
4f08b52af2
2 changed files with 0 additions and 32 deletions
|
@ -205,32 +205,6 @@ ArmStaticInstBase::shift_carry_rs(uint32_t base, uint32_t shamt,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Generate the appropriate carry bit for an addition operation
|
|
||||||
bool
|
|
||||||
ArmStaticInstBase::arm_add_carry(int32_t result, int32_t lhs, int32_t rhs) const
|
|
||||||
{
|
|
||||||
return findCarry(32, result, lhs, rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Generate the appropriate carry bit for a subtraction operation
|
|
||||||
bool
|
|
||||||
ArmStaticInstBase::arm_sub_carry(int32_t result, int32_t lhs, int32_t rhs) const
|
|
||||||
{
|
|
||||||
return findCarry(32, result, lhs, ~rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
|
||||||
ArmStaticInstBase::arm_add_overflow(int32_t result, int32_t lhs, int32_t rhs) const
|
|
||||||
{
|
|
||||||
return findOverflow(32, result, lhs, rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
|
||||||
ArmStaticInstBase::arm_sub_overflow(int32_t result, int32_t lhs, int32_t rhs) const
|
|
||||||
{
|
|
||||||
return findOverflow(32, result, lhs, ~rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ArmStaticInstBase::printReg(std::ostream &os, int reg) const
|
ArmStaticInstBase::printReg(std::ostream &os, int reg) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -60,12 +60,6 @@ class ArmStaticInstBase : public StaticInst
|
||||||
bool shift_carry_rs(uint32_t base, uint32_t shamt,
|
bool shift_carry_rs(uint32_t base, uint32_t shamt,
|
||||||
uint32_t type, uint32_t cfval) const;
|
uint32_t type, uint32_t cfval) const;
|
||||||
|
|
||||||
bool arm_add_carry(int32_t result, int32_t lhs, int32_t rhs) const;
|
|
||||||
bool arm_sub_carry(int32_t result, int32_t lhs, int32_t rhs) const;
|
|
||||||
|
|
||||||
bool arm_add_overflow(int32_t result, int32_t lhs, int32_t rhs) const;
|
|
||||||
bool arm_sub_overflow(int32_t result, int32_t lhs, int32_t rhs) const;
|
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
ArmStaticInstBase(const char *mnem, ExtMachInst _machInst,
|
ArmStaticInstBase(const char *mnem, ExtMachInst _machInst,
|
||||||
OpClass __opClass)
|
OpClass __opClass)
|
||||||
|
|
Loading…
Reference in a new issue