From 850d48fc532b06b15fcb47c6e7863b77e4ab398d Mon Sep 17 00:00:00 2001 From: Peter Goodman Date: Thu, 14 Apr 2022 14:31:10 -0400 Subject: [PATCH] CHange allow 32 bit shift to true, not sure if valid but oh well --- lib/Arch/AArch32/Decode.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Arch/AArch32/Decode.cpp b/lib/Arch/AArch32/Decode.cpp index 54b3e4b6..f5d260aa 100644 --- a/lib/Arch/AArch32/Decode.cpp +++ b/lib/Arch/AArch32/Decode.cpp @@ -1824,7 +1824,9 @@ static bool TryDecodeLoadStoreWordUBReg(Instruction &inst, uint32_t bits) { static_cast(inst.pc & ~(3u)) - static_cast(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;