commit | 63ee22065dc4e8af7f4bf99c25b82da132700267 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Fri Dec 10 23:02:28 2010 +0000 |
committer | Owen Anderson <resistor@mac.com> | Fri Dec 10 23:02:28 2010 +0000 |
tree | 6c21527b4d31338b583db38d1b90a70aea6e1b0b | |
parent | f6dff84d4e44d6c4a46c4f8a18e13c78f804547c [diff] [blame] |
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
diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp index 4555cd2..e81e454 100644 --- a/lib/Target/ARM/ARMAsmBackend.cpp +++ b/lib/Target/ARM/ARMAsmBackend.cpp
@@ -141,7 +141,7 @@ // 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;