A32: Implement ARM-mode BFI

This commit is contained in:
Lioncash 2019-04-20 11:57:58 -04:00 committed by MerryMage
parent fab3a59e05
commit 2970b34e3c
5 changed files with 32 additions and 3 deletions

View file

@ -586,6 +586,9 @@ public:
std::string arm_BFC(Cond cond, Imm5 msb, Reg d, Imm5 lsb) {
return fmt::format("bfc{} {}, #{}, #{}", CondToString(cond), d, lsb, msb - lsb + 1);
}
std::string arm_BFI(Cond cond, Imm5 msb, Reg d, Imm5 lsb, Reg n) {
return fmt::format("bfi{} {}, {}, #{}, #{}", CondToString(cond), d, n, lsb, msb - lsb + 1);
}
std::string arm_CLZ(Cond cond, Reg d, Reg m) {
return fmt::format("clz{} {}, {}", CondToString(cond), d, m);
}