diff options
author | Owen Anderson <resistor@mac.com> | 2010-12-09 01:02:09 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-12-09 01:02:09 +0000 |
commit | 8f0794331765661f92cf074f638acb1ea927bb5d (patch) | |
tree | 4950701f31a673bf858be843612a7e3eefc84df4 | |
parent | 2040961f893815e597e831110e0cef391141473a (diff) | |
download | external_llvm-8f0794331765661f92cf074f638acb1ea927bb5d.zip external_llvm-8f0794331765661f92cf074f638acb1ea927bb5d.tar.gz external_llvm-8f0794331765661f92cf074f638acb1ea927bb5d.tar.bz2 |
Fix typo in Thumb2 branch fixup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121342 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMAsmBackend.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp index 581ac91..e2a23ac 100644 --- a/lib/Target/ARM/ARMAsmBackend.cpp +++ b/lib/Target/ARM/ARMAsmBackend.cpp @@ -132,11 +132,11 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) { Value >>= 1; // Low bit is not encoded. uint64_t out = 0; - Value |= (Value & 0x80000) << 7; // S bit - Value |= (Value & 0x40000) >> 7; // J2 bit - Value |= (Value & 0x20000) >> 4; // J1 bit - Value |= (Value & 0x1F800) << 5; // imm6 field - Value |= (Value & 0x007FF); // imm11 field + out |= (Value & 0x80000) << 7; // S bit + out |= (Value & 0x40000) >> 7; // J2 bit + out |= (Value & 0x20000) >> 4; // J1 bit + out |= (Value & 0x1F800) << 5; // imm6 field + out |= (Value & 0x007FF); // imm11 field uint64_t swapped = (out & 0xFFFF0000) >> 16; swapped |= (out & 0x0000FFFF) << 16; |