summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-05-01 20:27:19 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-05-01 20:27:19 +0000
commit1b201684333c501e2f47178e1a4df68cd894c49d (patch)
treed5e5997ff1544436a5da0755ed58b2b7d2d05b8f /lib
parentecf05ca83ee919973395ade965d95e9afdcd3c1b (diff)
downloadllvm-1b201684333c501e2f47178e1a4df68cd894c49d.tar.gz
llvm-1b201684333c501e2f47178e1a4df68cd894c49d.tar.bz2
llvm-1b201684333c501e2f47178e1a4df68cd894c49d.tar.xz
Doh. PC displacement is between the constantpool and the add instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMInstrThumb.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td
index fa66ddc717..141c1ec45e 100644
--- a/lib/Target/ARM/ARMInstrThumb.td
+++ b/lib/Target/ARM/ARMInstrThumb.td
@@ -511,7 +511,7 @@ let usesCustomDAGSchedInserter = 1 in // Expanded by the scheduler.
// assembler.
def tLEApcrel : TIx2<(ops GPR:$dst, i32imm:$label),
!strconcat(!strconcat(".set PCRELV${:uid}, ($label-(",
- "${:private}PCRELL${:uid}+6))\n"),
+ "${:private}PCRELL${:uid}+4))\n"),
!strconcat("\tmov $dst, #PCRELV${:uid}\n",
"${:private}PCRELL${:uid}:\n\tadd $dst, pc")),
[]>;