mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[ARM] SSAT/USAT with an 'asr #32' shift should result in an undefined encoding rather than unpredictable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226469 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4971,7 +4971,7 @@ static DecodeStatus DecodeT2ShifterImmOperand(MCInst &Inst, uint32_t Val,
|
||||
DecodeStatus S = MCDisassembler::Success;
|
||||
|
||||
// Shift of "asr #32" is not allowed in Thumb2 mode.
|
||||
if (Val == 0x20) S = MCDisassembler::SoftFail;
|
||||
if (Val == 0x20) S = MCDisassembler::Fail;
|
||||
Inst.addOperand(MCOperand::CreateImm(Val));
|
||||
return S;
|
||||
}
|
||||
|
Reference in New Issue
Block a user