[mips] Add preliminary support for the MIPS II target.
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Tue, 11 Nov 2014 11:43:55 +0000 (11:43 +0000)
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Tue, 11 Nov 2014 11:43:55 +0000 (11:43 +0000)
commit328bc2f89e5bb60052dbbd2e1c388ea2d24ba77e
tree8e0695ecf5e1ed746fe55193d3c815a2c5032378
parentb001cb64231fb29a663ce4a97900796f549fbd2c
[mips] Add preliminary support for the MIPS II target.

Summary:
This patch enables code generation for the MIPS II target. Pre-Mips32
targets don't have the MUL instruction, so we add the correspondent
pattern that uses the MULT/MFLO combination in order to retrieve the
product.

This is WIP as we don't support code generation for select nodes due to
the lack of conditional-move instructions.

Reviewers: dsanders

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221686 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsInstrInfo.td
lib/Target/Mips/MipsSubtarget.cpp
lib/Target/Mips/MipsSubtarget.h
test/CodeGen/Mips/llvm-ir/mul.ll [new file with mode: 0644]