summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/Disassembler
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2012-05-04 22:09:52 +0000
committerKevin Enderby <enderby@apple.com>2012-05-04 22:09:52 +0000
commit3610a15c3581dee713820f72d8ffe2e2a632b057 (patch)
tree9bea8dfb92d48f0e90823bcf7935c5ef3b4249a7 /lib/Target/ARM/Disassembler
parentce734d5ffe53273caa7df762f70803050b0ce929 (diff)
downloadllvm-3610a15c3581dee713820f72d8ffe2e2a632b057.tar.gz
llvm-3610a15c3581dee713820f72d8ffe2e2a632b057.tar.bz2
llvm-3610a15c3581dee713820f72d8ffe2e2a632b057.tar.xz
Tweak to the fix in r156212, as with the change in removing the shift the
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
Diffstat (limited to 'lib/Target/ARM/Disassembler')
-rw-r--r--lib/Target/ARM/Disassembler/ARMDisassembler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/Disassembler/ARMDisassembler.cpp b/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
index 1363b85ee5..a2512735c2 100644
--- a/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
+++ b/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
@@ -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;