[SelectionDAGBuilder] Support llvm.flt.rounds on targets where i32 is not legal
authorHal Finkel <hfinkel@anl.gov>
Mon, 10 Oct 2016 20:45:15 +0000 (20:45 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 10 Oct 2016 20:45:15 +0000 (20:45 +0000)
commitfcd2421667582cdceff8bf30d65b262998d3cd59
treea1d67f9b2b240227c6a4356c5df916039c3cc480
parent0705d8e98b739c26b7ebb7bbd1293e222548e41e
[SelectionDAGBuilder] Support llvm.flt.rounds on targets where i32 is not legal

Add integer expansion for FLT_ROUNDS_ for targets where i32 is not a legal
type.

Patch by Edward Jones, thanks!

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

llvm-svn: 283797
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
llvm/test/CodeGen/MSP430/flt_rounds.ll [new file with mode: 0644]