llvm-6502/lib
Adhemerval Zanella 18560fae0b 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
2012-10-25 14:29:13 +00:00
..
Analysis getSmallConstantTripMultiple should never return zero. 2012-10-24 19:46:44 +00:00
Archive Mark checkSignature const, and in turn stop casting away const from 2012-09-05 22:09:23 +00:00
AsmParser Special calling conventions for Intel OpenCL built-in library. 2012-10-24 14:46:16 +00:00
Bitcode Move the Attributes::Builder outside of the Attributes class and into its own class named AttrBuilder. No functionality change. 2012-10-15 20:35:56 +00:00
CodeGen Stop running the machine code verifier unconditionally. 2012-10-25 00:05:39 +00:00
DebugInfo Use a typedef to reduce some typing and reformat code accordingly. 2012-10-16 23:46:25 +00:00
ExecutionEngine PowerPC: Initial support for PowerPC64 MCJIT 2012-10-25 13:13:48 +00:00
Linker Move the "findUsedStructTypes" functionality outside of the Module class. 2012-08-03 00:30:35 +00:00
MC Initial TOC support for PowerPC64 object creation 2012-10-25 12:27:42 +00:00
Object Cosmetic changes 2012-10-10 01:45:52 +00:00
Support Support: Don't remove special files on signals. 2012-10-17 16:30:54 +00:00
TableGen tblgen: Compile TableGen without RTTI. 2012-10-10 20:27:18 +00:00
Target This patch fixes the MC object emission of 'nop' for external function calls 2012-10-25 14:29:13 +00:00
Transforms Teach SROA how to split whole-alloca integer loads and stores into 2012-10-25 04:37:07 +00:00
VMCore Add some cleanup to the DataLayout changes requested by Chandler. 2012-10-24 18:36:13 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile