summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMAsmBackend.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-12-09 01:02:09 +0000
committerOwen Anderson <resistor@mac.com>2010-12-09 01:02:09 +0000
commit14e41271b7be48b128160d1d222a289277bdf27b (patch)
tree55dcaf00290b9ddca026391d635e812dd46966f8 /llvm/lib/Target/ARM/ARMAsmBackend.cpp
parent2f9a124f54f9caf67985af2d41b880f9fb2e7441 (diff)
downloadbcm5719-llvm-14e41271b7be48b128160d1d222a289277bdf27b.tar.gz
bcm5719-llvm-14e41271b7be48b128160d1d222a289277bdf27b.zip
Fix typo in Thumb2 branch fixup.
llvm-svn: 121342
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMAsmBackend.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmBackend.cpp b/llvm/lib/Target/ARM/ARMAsmBackend.cpp
index 581ac916917..e2a23acd0ce 100644
--- a/llvm/lib/Target/ARM/ARMAsmBackend.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud