[MIPS][microMIPS] Add a pattern to match TruncIntFP
authorPetar Jovanovic <petar.jovanovic@mips.com>
Mon, 11 Mar 2019 14:13:31 +0000 (14:13 +0000)
committerPetar Jovanovic <petar.jovanovic@mips.com>
Mon, 11 Mar 2019 14:13:31 +0000 (14:13 +0000)
commit28e13eb0983ce6d15a363231edd9015636bc52da
treef22130aac8492c2dccc2b5da078befed1d9e58ef
parent7f5237bccc27103c2718139e8316f14028ca9a5e
[MIPS][microMIPS] Add a pattern to match TruncIntFP

A pattern needed to match TruncIntFP was missing. This was causing multiple
tests from llvm test suite to fail during compilation for micromips.

Patch by Mirko Brkusanin.

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

llvm-svn: 355825
llvm/lib/Target/Mips/MicroMips32r6InstrInfo.td
llvm/lib/Target/Mips/MicroMipsInstrFPU.td
llvm/test/CodeGen/Mips/llvm-ir/fptosi.ll [new file with mode: 0644]