mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
ecf05ca83e
commit
1b20168433
@ -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")),
|
||||
[]>;
|
||||
|
Loading…
Reference in New Issue
Block a user