Tweak to the fix in r156212, as with the change in removing the shift the
authorKevin Enderby <enderby@apple.com>
Fri, 4 May 2012 22:09:52 +0000 (22:09 +0000)
committerKevin Enderby <enderby@apple.com>
Fri, 4 May 2012 22:09:52 +0000 (22:09 +0000)
SignExtend32<22>(Val<<1) also needs to change to SignExtend32<21>(Val) .

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156213 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/Disassembler/ARMDisassembler.cpp

index 1363b85ee5c80f3b5f796a92bcce15c99b5b96dd..a2512735c28e6e59851a7328a7f0ca73c842e56c 100644 (file)
@@ -3016,7 +3016,7 @@ static DecodeStatus DecodeThumbBROperand(MCInst &Inst, unsigned Val,
 
 static DecodeStatus DecodeT2BROperand(MCInst &Inst, unsigned Val,
                                  uint64_t Address, const void *Decoder) {
-  if (!tryAddingSymbolicOperand(Address, Address + SignExtend32<22>(Val) + 4,
+  if (!tryAddingSymbolicOperand(Address, Address + SignExtend32<21>(Val) + 4,
                                 true, 4, Inst, Decoder))
     Inst.addOperand(MCOperand::CreateImm(SignExtend32<21>(Val)));
   return MCDisassembler::Success;