From: Owen Anderson Date: Tue, 14 Dec 2010 19:42:53 +0000 (+0000) Subject: Fix a small bug (typo?) in the fixup for Thumb1 CBZ/CBNZ instructions. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=86abd48fd01080f08eec1b46f92c90308b03bfd4;p=oota-llvm.git Fix a small bug (typo?) in the fixup for Thumb1 CBZ/CBNZ instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121784 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp index 63f6e14394c..096d340a626 100644 --- a/lib/Target/ARM/ARMAsmBackend.cpp +++ b/lib/Target/ARM/ARMAsmBackend.cpp @@ -238,7 +238,7 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) { case ARM::fixup_arm_thumb_cb: { // Offset by 4 and don't encode the lower bit, which is always 0. uint32_t Binary = (Value - 4) >> 1; - return ((Binary & 0x20) << 9) | ((Binary & 0x1f) << 3); + return ((Binary & 0x20) << 4) | ((Binary & 0x1f) << 3); } case ARM::fixup_arm_thumb_br: // Offset by 4 and don't encode the lower bit, which is always 0.