summaryrefslogtreecommitdiffstats
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
commitfa34bc962325d8cd2120b6ec17be6a71a02211b0 (patch)
treeed446051b70427581471b83babd4a527335551d8
parentbb7989b622c394f6c6682e8d190a6d94571e7dfe (diff)
downloadbcm5719-llvm-fa34bc962325d8cd2120b6ec17be6a71a02211b0.tar.gz
bcm5719-llvm-fa34bc962325d8cd2120b6ec17be6a71a02211b0.zip
Doh. PC displacement is between the constantpool and the add instruction.
llvm-svn: 36630
-rw-r--r--llvm/lib/Target/ARM/ARMInstrThumb.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb.td b/llvm/lib/Target/ARM/ARMInstrThumb.td
index fa66ddc717c..141c1ec45e1 100644
--- a/llvm/lib/Target/ARM/ARMInstrThumb.td
+++ b/llvm/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")),
[]>;
OpenPOWER on IntegriCloud