diff options
author | Owen Anderson <resistor@mac.com> | 2010-12-10 23:02:28 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-12-10 23:02:28 +0000 |
commit | 63ee22065dc4e8af7f4bf99c25b82da132700267 (patch) | |
tree | 6c21527b4d31338b583db38d1b90a70aea6e1b0b /lib/Target/ARM/ARMAsmBackend.cpp | |
parent | f6dff84d4e44d6c4a46c4f8a18e13c78f804547c (diff) |
Attempt to get Thumb2 branch fixups working properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r-- | lib/Target/ARM/ARMAsmBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp index 4555cd2082..e81e454d39 100644 --- a/lib/Target/ARM/ARMAsmBackend.cpp +++ b/lib/Target/ARM/ARMAsmBackend.cpp @@ -141,7 +141,7 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) { // Offset by 8 just as above. return 0xffffff & ((Value - 8) >> 2); case ARM::fixup_t2_branch: { - Value = Value - 6; + Value = Value - 4; Value >>= 1; // Low bit is not encoded. uint64_t out = 0; |