llvm-6502/test/CodeGen/Mips/Fast-ISel
Reed Kotler 198bb22754 First stage of call lowering for Mips fast-isel
Summary:
This has most of what is needed for mips fast-isel call lowering for O32.
What is missing I will add on the next patch because this patch is already too large.
It should not be doing anything wrong but it will punt on some cases that it is basically
capable of doing.

The mechanism is there for parameters to be passed on the stack but I have not enabled it because it serves as a way for now to prevent some of the strange cases of O32 register passing that I have not fully checked yet and have some issues.

The Mips O32 abi rules are very complicated as far how data is passed in floating and integer registers.

However there is a way to think about this all very simply and this implementation reflects that.

Basically, the ABI rules are written as if everything is passed on the stack and aligned as such.
Once that is conceptually done, it is nearly trivial to reassign those locations to registers and
then all the complexity disappears.

So I have told tablegen that all the data is passed on the stack and during the lowering I fix
this by assigning to registers as per the ABI doc.

This has been my approach and you can line up what I did with the ABI document and see 1 to 1 what
is going on.



Test Plan: callabi.ll

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: jholewinski, echristo, ahatanak, llvm-commits, rfuhler

Differential Revision: http://reviews.llvm.org/D5714

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221948 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-13 23:37:45 +00:00
..
br1.ll Add basic conditional branches in mips fast-isel 2014-10-11 00:55:18 +00:00
callabi.ll First stage of call lowering for Mips fast-isel 2014-11-13 23:37:45 +00:00
fpcmpa.ll Implement floating point compare for mips fast-isel 2014-10-10 20:46:28 +00:00
fpext.ll Add numeric extend, trunctate to mips fast-isel 2014-09-30 16:30:13 +00:00
fpintconv.ll Implement floating point to integer conversion in mips fast-isel 2014-10-10 17:00:46 +00:00
fptrunc.ll Add fptrunc to mips fast-sel 2014-10-01 18:47:02 +00:00
icmpa.ll [mips] Mark redundant instructions with a comment in test/CodeGen/Mips/Fast-ISel/icmpa.ll. 2014-10-13 10:18:02 +00:00
loadstore2.ll Add mips32 r1 to the list of supported targets for Mips fast-isel 2014-09-15 20:30:25 +00:00
loadstoreconv.ll Add numeric extend, trunctate to mips fast-isel 2014-09-30 16:30:13 +00:00
loadstrconst.ll Add mips32 r1 to the list of supported targets for Mips fast-isel 2014-09-15 20:30:25 +00:00
nullvoid.ll Add mips32 r1 to the list of supported targets for Mips fast-isel 2014-09-15 20:30:25 +00:00
shift.ll [mips][micromips] Add predicate 'InMicroMips' at CodeGen patterns for microMIPS instructions 2014-11-12 13:30:10 +00:00
simplestore.ll Add mips32 r1 to the list of supported targets for Mips fast-isel 2014-09-15 20:30:25 +00:00
simplestorefp1.ll Add mips32 r1 to the list of supported targets for Mips fast-isel 2014-09-15 20:30:25 +00:00
simplestorei.ll Add mips32 r1 to the list of supported targets for Mips fast-isel 2014-09-15 20:30:25 +00:00