A32: Implement ARM-mode SBFX

This commit is contained in:
Lioncash 2019-04-20 13:14:35 -04:00 committed by MerryMage
parent 47218ee65d
commit 877fa0f8c3
5 changed files with 35 additions and 2 deletions

View file

@ -598,6 +598,9 @@ public:
std::string arm_RBIT(Cond cond, Reg d, Reg m) {
return fmt::format("rbit{} {}, {}", CondToString(cond), d, m);
}
std::string arm_SBFX(Cond cond, Imm5 widthm1, Reg d, Imm5 lsb, Reg n) {
return fmt::format("sbfx{} {}, {}, #{}, #{}", CondToString(cond), d, n, lsb, widthm1 + 1);
}
std::string arm_SEL(Cond cond, Reg n, Reg d, Reg m) {
return fmt::format("sel{} {}, {}, {}", CondToString(cond), d, n, m);
}