[mips] Fix two patterns that select i32's (for MIPS32r6) / i64's (for MIPS64r6)
authorSasa Stankovic <Sasa.Stankovic@imgtec.com>
Tue, 22 Jul 2014 13:36:02 +0000 (13:36 +0000)
committerSasa Stankovic <Sasa.Stankovic@imgtec.com>
Tue, 22 Jul 2014 13:36:02 +0000 (13:36 +0000)
commit319f0ff3b72f8d32c75edd1b5ef68fd9d776c7fa
tree47a4a3ea914e8d48bfe67caa2d9eb5cf4b2157e1
parentc763b1bdd19682d471866b783c7ef7bc8207acc7
[mips] Fix two patterns that select i32's (for MIPS32r6) / i64's (for MIPS64r6)
from setne comparison with an i32.

The patterns that are fixed:
  * (select (i32 (setne i32, immZExt16)), i32, i32) (for MIPS32r6)
  * (select (i32 (setne i32, immZExt16)), i64, i64) (for MIPS64r6)

llvm-svn: 213653
llvm/lib/Target/Mips/Mips32r6InstrInfo.td
llvm/lib/Target/Mips/Mips64r6InstrInfo.td
llvm/test/CodeGen/Mips/cmov.ll