[mips] Add tests for the 'ret', 'call', and 'indirectbr' LLVM IR instruction.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 4 Jul 2014 15:16:14 +0000 (15:16 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 4 Jul 2014 15:16:14 +0000 (15:16 +0000)
commit8ce13cfc08efc753c039eff39a9dcd947dcd058d
tree82a52c86549cbb10a75910f6df7a8e5eca533ad0
parentada0f6a93e1308d9d756ecd29fb86f4e8ad57d96
[mips] Add tests for the 'ret', 'call', and 'indirectbr' LLVM IR instruction.

Summary:
The tests in this directory are intended to test a single IR instruction
with as few dependencies on other instructions as possible. The aim is to
be very confident that each LLVM-IR instruction is implemented correctly and
with the optimal sequence of instructions, as well as to make it easy to tell
what is tested, and make it easier to bring up new ISA revisions in the
future. This gives us a good foundation on which to test bigger things.

These particular tests will allow testing that MIPS32r6/MIPS64r6 generate
the correct return instruction for returns, calls, and indirect branches.
This will be a bit tricky since the assembly text is identical but the
instruction is actually different. On MIPS32r6/MIPS64r6 'jr $rs' has been
removed in favour of the equivalent 'jalr $zero, $rs'. 'jr $rs' remains as
an alias for 'jalr $zero, $rs'.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212345 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/Mips/llvm-ir/call.ll [new file with mode: 0644]
test/CodeGen/Mips/llvm-ir/indirectbr.ll [new file with mode: 0644]
test/CodeGen/Mips/llvm-ir/ret.ll [new file with mode: 0644]