Thumb2 register-shifted-register loads cannot target the PC or the SP.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140412 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2011-09-23 21:00:32 +00:00
parent b3e3b006bd
commit d256056581

View File

@ -2660,7 +2660,7 @@ static DecodeStatus DecodeT2LoadShift(llvm::MCInst &Inst, unsigned Insn,
break;
default: {
unsigned Rt = fieldFromInstruction32(Insn, 12, 4);
if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder)))
if (!Check(S, DecoderGPRRegisterClass(Inst, Rt, Address, Decoder)))
return MCDisassembler::Fail;
}
}