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.
Paths
| Differential D139174
[PowerPC][GISEL]support for float point and integer convertion ClosedPublic Authored by shchenz on Dec 2 2022, 12:45 AM.
Details
Summary 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.
Diff Detail
Event Timelineshchenz added a child revision: D134792: [PowerPC][GISel] support 64 bit load/store.Dec 2 2022, 1:32 AM Comment Actions Seems a shame to have to have all that manual selection for such a simple instruction
This revision is now accepted and ready to land.Dec 2 2022, 8:20 AM Comment Actions
Thanks for review. Yeah, we can improve this at least for simple patterns when direct move and fpcvt are available on the targets in future. This revision was landed with ongoing or failed builds.Dec 4 2022, 7:22 PM Closed by commit rG0a9b1c59f000: [PowerPC][GISel]support for float point and integer convertion (authored by shchenz). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 479540 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
|
Typo inteter