summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2012-10-25 14:29:13 +0000
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2012-10-25 14:29:13 +0000
commit18560fae0bb122857a61bb36f22628901cdc3dde (patch)
treef147ca0b5a9352e7b0e59596ee697122097bf183 /utils
parent37900c5dcb254ef50c17c57a302c30626536917c (diff)
downloadllvm-18560fae0bb122857a61bb36f22628901cdc3dde.tar.gz
llvm-18560fae0bb122857a61bb36f22628901cdc3dde.tar.bz2
llvm-18560fae0bb122857a61bb36f22628901cdc3dde.tar.xz
This patch fixes the MC object emission of 'nop' for external function calls
and also fixes the R_PPC64_TOC16 and R_PPC64_TOC16_DS relocation offset. The 'nop' is needed so a restore TOC instruction (ld r2,40(r1)) can be placed by the linker to correct restore the TOC of previous function. Current code has two issues: it defines in PPCInstr64Bit.td file a LDinto_toc and LDtoc_restore as a DSForm_1 with DS_RA=0 where it should be DS=2 (the 8 bytes displacement of the TOC saving). It also wrongly emits a MC intruction using an uint32_t value while the PPC::BL8_NOP_ELF and PPC::BLA8_NOP_ELF are both uint64_t (because of the following 'nop'). This patch corrects the remaining ExecutionEngine using MCJIT: ExecutionEngine/2002-12-16-ArgTest.ll ExecutionEngine/2003-05-07-ArgumentTest.ll ExecutionEngine/2005-12-02-TailCallBug.ll ExecutionEngine/hello.ll ExecutionEngine/hello2.ll ExecutionEngine/test-call.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166682 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions