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)
commit07d3a2f6b287906210307d86443511122852768f
treefe8c826512572b27d375f0911f0175dd3f25fa4d
parentf044d3f93b1068059a4cf13949440ad81f501278
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

llvm-svn: 231665
llvm/lib/Target/Mips/MipsFastISel.cpp
llvm/test/CodeGen/Mips/Fast-ISel/logopm.ll [new file with mode: 0644]