[LegalizeTypes] Add SoftenFloatResult support for STRICT_SINT_TO_FP/STRICT_UINT_TO_FP
authorAndrew Wei <weiwei64@huawei.com>
Mon, 13 Jan 2020 16:16:23 +0000 (00:16 +0800)
committerAndrew Wei <weiwei64@huawei.com>
Mon, 13 Jan 2020 17:01:56 +0000 (01:01 +0800)
commit05366870eed154c7eb48c7cc3873ea5188f54cc9
tree64f3ff2a1a5dafde905ec56de059a34773f7b08e
parent38e2c01221a9751c0b797417747200d2e9513b9f
[LegalizeTypes] Add SoftenFloatResult support for STRICT_SINT_TO_FP/STRICT_UINT_TO_FP

Some target like arm/riscv with soft-float will have compiling crash when using -fno-unsafe-math-optimization option.
This patch will add the missing strict FP support to SoftenFloatRes_XINT_TO_FP.

Differential Revision: https://reviews.llvm.org/D72277
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
llvm/test/CodeGen/ARM/fp-intrinsics.ll