[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)
commit20c82ee4fa954490df23f189411fb2229e7d18e2
tree4f9b253c2aed0e4028bfae88869eb90108172d41
parentb674c17deb160951448c94e206488afb258e9fa3
[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

llvm-svn: 212345
llvm/test/CodeGen/Mips/llvm-ir/call.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/llvm-ir/indirectbr.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/llvm-ir/ret.ll [new file with mode: 0644]