The high bit of a Thumb2 ADR's offset is stored in bit 26, not bit 25.
authorOwen Anderson <resistor@mac.com>
Wed, 23 Mar 2011 22:03:44 +0000 (22:03 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 23 Mar 2011 22:03:44 +0000 (22:03 +0000)
This fixes 464.h264ref with the integrated assembler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128172 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMAsmBackend.cpp

index ec23449d7d42238cee5dc1d5120b7dfeaea6aaba..ea8a70c695be3cc3f04160a856df7e067a91b94f 100644 (file)
@@ -246,7 +246,7 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) {
     }
 
     uint32_t out = (opc << 21);
-    out |= (Value & 0x800) << 14;
+    out |= (Value & 0x800) << 15;
     out |= (Value & 0x700) << 4;
     out |= (Value & 0x0FF);