Add logical ops to Mips fast-isel
authorReed Kotler <rkotler@mips.com>
Mon, 9 Mar 2015 16:28:10 +0000 (16:28 +0000)
committerReed Kotler <rkotler@mips.com>
Mon, 9 Mar 2015 16:28:10 +0000 (16:28 +0000)
commit18afdb3210affedc347d95b204f8fe363953aecf
treed0de843ba40b0e238b8306f5c0ff0e4c25dd01e4
parent0df4e226029f6e3bdaed0d66282c38ca35867240
Add logical ops to Mips fast-isel

Summary:
Code is mostly copied from AArch64 port and modified where needed for Mips.

This handles the "non" legal cases of logical ops. Legal cases are handled by tablegen patterns.

Test Plan:
Make check test logopm.ll

All of test-suite passes at O0/O2 and mips32 r1/r2 with this new change.

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: echristo, llvm-commits, aemerson, rfuhler

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231665 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsFastISel.cpp
test/CodeGen/Mips/Fast-ISel/logopm.ll [new file with mode: 0644]