CHange allow 32 bit shift to true, not sure if valid but oh well

This commit is contained in:
Peter Goodman
2022-04-14 14:31:10 -04:00
committed by 2over12
parent 4bb7c9363b
commit 850d48fc53
+3 -1
View File
@@ -1824,7 +1824,9 @@ static bool TryDecodeLoadStoreWordUBReg(Instruction &inst, uint32_t bits) {
static_cast<int32_t>(inst.pc & ~(3u)) - static_cast<int32_t>(inst.pc);
}
AddShiftRegImmOperand(inst, enc.rm, enc.type, enc.imm5, 0u, false);
// TODO(pag): Changed `can_shift_right_by_32` to `true` but don't know why
// it was previously `false`.
AddShiftRegImmOperand(inst, enc.rm, enc.type, enc.imm5, 0u, true);
auto disp_expr = inst.operands.back().expr;
auto disp_op = llvm::Instruction::Add;