[llvm-commits] [llvm] r121342 - /llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp

Owen Anderson resistor at mac.com
Wed Dec 8 17:02:09 PST 2010


Author: resistor
Date: Wed Dec  8 19:02:09 2010
New Revision: 121342

URL: http://llvm.org/viewvc/llvm-project?rev=121342&view=rev
Log:
Fix typo in Thumb2 branch fixup.

Modified:
    llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp?rev=121342&r1=121341&r2=121342&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp Wed Dec  8 19:02:09 2010
@@ -132,11 +132,11 @@
     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;





More information about the llvm-commits mailing list