diff options
| author | Owen Anderson <resistor@mac.com> | 2010-12-10 22:46:47 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2010-12-10 22:46:47 +0000 |
| commit | e2e0f58809374265bd75edeefae8817e7ade62b4 (patch) | |
| tree | 7f53fbf534750150f5281cee0b1add0bbe352ba3 /lib/Target/ARM/ARMAsmBackend.cpp | |
| parent | 1591b293d6b31ae52a7d5ec16b8117d033204f44 (diff) | |
| download | llvm-e2e0f58809374265bd75edeefae8817e7ade62b4.tar.gz llvm-e2e0f58809374265bd75edeefae8817e7ade62b4.tar.bz2 llvm-e2e0f58809374265bd75edeefae8817e7ade62b4.tar.xz | |
Fixups for Thumb2 vldr's need to have the effective PC aligned as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAsmBackend.cpp')
| -rw-r--r-- | lib/Target/ARM/ARMAsmBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp index 536d282d0a..4555cd2082 100644 --- a/lib/Target/ARM/ARMAsmBackend.cpp +++ b/lib/Target/ARM/ARMAsmBackend.cpp @@ -207,12 +207,12 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) { // Offset by 4 and don't encode the lower bit, which is always 0. return ((Value - 4) >> 1) & 0xff; case ARM::fixup_arm_pcrel_10: - Value = Value - 6; // ARM fixups offset by an additional word and don't + Value = Value - 4; // ARM fixups offset by an additional word and don't // need to adjust for the half-word ordering. // Fall through. case ARM::fixup_t2_pcrel_10: { // Offset by 4, adjusted by two due to the half-word ordering of thumb. - Value = Value - 2; + Value = Value - 4; bool isAdd = true; if ((int64_t)Value < 0) { Value = -Value; |
