[PowerPC][GISel]support for float point and integer convertion
authorChen Zheng <czhengsz@cn.ibm.com>
Mon, 5 Dec 2022 02:53:59 +0000 (21:53 -0500)
committerChen Zheng <czhengsz@cn.ibm.com>
Mon, 5 Dec 2022 03:21:57 +0000 (22:21 -0500)
commit0a9b1c59f000cab21afc0c19df0f635445826422
tree6df461d69600276a3ff99aa0689be94da4cceee4
parent9e8787821f62bc7856d9a4cdf439aadbaf43ed64
[PowerPC][GISel]support for float point and integer convertion

Add support for fptosi,fptoui,sitofp,uitofp

For now only handle 64 bit integer to make it does not depend on
any other patches. 32 bit integer needs handling for G_SEXT/G_ZEXT.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D139174
llvm/lib/Target/PowerPC/GISel/PPCInstructionSelector.cpp
llvm/lib/Target/PowerPC/GISel/PPCLegalizerInfo.cpp
llvm/lib/Target/PowerPC/GISel/PPCRegisterBankInfo.cpp
llvm/test/CodeGen/PowerPC/GlobalISel/float-integer-conv.ll [new file with mode: 0644]