A32: Implement ARM-mode UBFX

This commit is contained in:
Lioncash 2019-04-20 12:47:34 -04:00 committed by MerryMage
parent 2970b34e3c
commit 47218ee65d
5 changed files with 39 additions and 0 deletions

View file

@ -601,6 +601,9 @@ public:
std::string arm_SEL(Cond cond, Reg n, Reg d, Reg m) {
return fmt::format("sel{} {}, {}, {}", CondToString(cond), d, n, m);
}
std::string arm_UBFX(Cond cond, Imm5 widthm1, Reg d, Imm5 lsb, Reg n) {
return fmt::format("ubfx{} {}, {}, #{}, #{}", CondToString(cond), d, n, lsb, widthm1 + 1);
}
// Unsigned sum of absolute difference functions
std::string arm_USAD8(Cond cond, Reg d, Reg m, Reg n) {