OSDN Git Service

[Legalizer] Promote result type in expanding FP_TO_XINT
authorQiu Chaofan <qiucofan@cn.ibm.com>
Mon, 18 Jan 2021 03:56:11 +0000 (11:56 +0800)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Mon, 18 Jan 2021 03:56:11 +0000 (11:56 +0800)
commitf776d8b12f0ec19cfff60c967565788ce4f926e6
tree5b1d0c283339b1846ead53a3e153077053c4b6d6
parent2d9890775f523a7a7ed2d7d064273bf7e28ebf20
[Legalizer] Promote result type in expanding FP_TO_XINT

This patch promotes result integer type of FP_TO_XINT in expanding.
So crash in conversion from ppc_fp128 to i1 will be fixed.

Reviewed By: steven.zhang

Differential Revision: https://reviews.llvm.org/D92473
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
llvm/test/CodeGen/PowerPC/ppcf128-constrained-fp-intrinsics.ll