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

Kai Nacke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 5 14:42:04 PDT 2022


Kai created this revision.
Kai added reviewers: nemanjai, saghir, tschuett, arsen, aemerson.
Herald added subscribers: shchenz, kbarton, hiraditya.
Herald added a project: All.
Kai requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Adds support for G_?EXT, G_TRUNC, and 32bit constants.

This addresses the comment D127530#3624440 <https://reviews.llvm.org/D127530#3624440> which asked to add tests including `signext` and `zext`.


Repository:
  rG LLVM Github Monorepo

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/ppc-isel-constant.ll
  llvm/test/CodeGen/PowerPC/GlobalISel/ppc-isel-logical.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131296.450411.patch
Type: text/x-patch
Size: 10211 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220805/737014c3/attachment.bin>


More information about the llvm-commits mailing list