[mips] Handle missing CondCodes
authorStefan Maksimovic <stefan.maksimovic@mips.com>
Wed, 22 Aug 2018 09:34:44 +0000 (09:34 +0000)
committerStefan Maksimovic <stefan.maksimovic@mips.com>
Wed, 22 Aug 2018 09:34:44 +0000 (09:34 +0000)
commit6ccbd16433dc535333479ec71cca2c1da55b2976
tree373a96d100727d9814a3263bd6cae0e37ad698d5
parenteb63256095dd57f2d8caaaed07d0190dfb27be8c
[mips] Handle missing CondCodes

Add patterns for unhandled CondCode enumerables:
SETEQ, SETGE, SETGT, SETLE, SETLT, SETNE.

Stated at the ISD::CondCode enum declaration:
`All of these (except for the 'always folded ops')
should be handled for floating point.`

Add patterns which use these nodes, same as corresponding
'ordered' CondCode nodes.

Referring to 'Ordered means that neither operand is a QNAN'
we assume it is safe to match ex. SETLT node to the same
instruction as SETOLT.

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

llvm-svn: 340392
llvm/lib/Target/Mips/MipsMSAInstrInfo.td
llvm/test/CodeGen/Mips/msa/cc_without_nan.ll [new file with mode: 0644]