A32: Implement ARM-mode MOVW

Introduced to the ISA in ARMv6T2
This commit is contained in:
Lioncash 2019-05-03 17:49:42 -04:00 committed by MerryMage
parent 1c47e638fc
commit 106c8c2473
4 changed files with 21 additions and 0 deletions

View file

@ -820,6 +820,10 @@ public:
const u32 imm = concatenate(imm4, imm12).ZeroExtend();
return fmt::format("movt{} {}, #{}", CondToString(cond), d, imm);
}
std::string arm_MOVW(Cond cond, Imm<4> imm4, Reg d, Imm<12> imm12) {
const u32 imm = concatenate(imm4, imm12).ZeroExtend();
return fmt::format("movw{}, {}, #{}", CondToString(cond), d, imm);
}
std::string arm_NOP() {
return "nop";
}