[PowerPC][GIsel] Materialize i64 constants.
authorKai Nacke <kai.peter.nacke@ibm.com>
Thu, 15 Dec 2022 20:26:32 +0000 (20:26 +0000)
committerKai Nacke <kai.peter.nacke@ibm.com>
Thu, 15 Dec 2022 21:22:58 +0000 (21:22 +0000)
commit110340c687ccdd894079e59e281bbee4191adbac
tree73bf0de8c21d81a4cadbb18dbd05c869a7f8d303
parentcb5ebfa2824b58ea28f431d529a8c0f0eb1cfb5e
[PowerPC][GIsel] Materialize i64 constants.

Adds support for i64 constant. It uses the same pattern-based
approach as in SDAG (see PPCISelDAGToDAG::selectI64ImmDirect(),
PPCISelDAGToDAG::selectI64Imm()). It does not support the
prefixed instructions.

Reviewed By: arsenm, tschuett

Differential Revision: https://reviews.llvm.org/D140119
llvm/lib/Target/PowerPC/GISel/PPCInstructionSelector.cpp
llvm/test/CodeGen/PowerPC/GlobalISel/ppc-isel-constant.ll [new file with mode: 0644]