Thumb2 register-shifted-register loads cannot target the PC or the SP.
authorOwen Anderson <resistor@mac.com>
Fri, 23 Sep 2011 21:00:32 +0000 (21:00 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 23 Sep 2011 21:00:32 +0000 (21:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140412 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/Disassembler/ARMDisassembler.cpp

index 6be49169b4c57dc189ac88fcc238facf3797368f..a775cf61b555cb9cbc4cc0144ef27686c3d640f7 100644 (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;
     }
   }