Fix typo in Thumb2 branch fixup.
authorOwen Anderson <resistor@mac.com>
Thu, 9 Dec 2010 01:02:09 +0000 (01:02 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 9 Dec 2010 01:02:09 +0000 (01:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121342 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMAsmBackend.cpp

index 581ac9169175abe4acf875e015b3d69417734e94..e2a23acd0ceab0904509abbc03e01f46be1f3df8 100644 (file)
@@ -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;