]> granicus.if.org Git - llvm/commit
[mips] Correct the instruction predicates for microMIPSr3
authorSimon Dardis <simon.dardis@imgtec.com>
Tue, 10 Oct 2017 20:52:53 +0000 (20:52 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Tue, 10 Oct 2017 20:52:53 +0000 (20:52 +0000)
commit2788c957a5553b63a02bc480aae3832773696e5a
tree7fd8019f5dc1701a9431e97ce8b75d9c0cb2cc09
parent2d1082f2c000ac09d7aea70cf1fb300827049400
[mips] Correct the instruction predicates for microMIPSr3

Rather than using the AdditionalPredicates mechanism to guard
the microMIPS instructions, use the existing predicates to properly
guard those instructions.

This also resolves a case where an instruction pattern was incorrectly
available for microMIPS32R6, which caused a register allocation failure
as the registers specified in the pattern were not available.

Reviewers: nitesh.jain, atanasyan

Differential Revision: https://reviews.llvm.org/D38451

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315362 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MicroMipsInstrFPU.td
test/CodeGen/Mips/nmadd.ll