[PATCH] D131296: [PowerPC] Add support for extending and truncating values

Kai Nacke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 12:03:47 PST 2022


Kai updated this revision to Diff 482956.
Kai edited the summary of this revision.
Kai added a comment.

Completely reworked the change.

- Rebased on latest main which has partial implementation of G_ZEXT (Currently, G_ZEXT and G_SEXT are only implemented for extending 32 -> 64 bit.)
- Removed support for G_CONSTANT. I will have a more complete solution ready in a follow up change.
- Added a mir test case to check the generated code


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131296/new/

https://reviews.llvm.org/D131296

Files:
  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/select-exttrunc.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131296.482956.patch
Type: text/x-patch
Size: 13807 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221214/1b6de0bb/attachment.bin>


More information about the llvm-commits mailing list