[PATCH] D127530: [PowerPC] Extend GlobalISel implementation to emit and/or/xor.
Kai Nacke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 5 11:17:55 PDT 2022
Kai marked 3 inline comments as done.
Kai added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/GISel/PPCCallLowering.cpp:41
+ MIB.addUse(PhysReg, RegState::Implicit);
+ Register ExtReg = extendRegister(ValVReg, VA);
+ MIRBuilder.buildCopy(PhysReg, ExtReg);
----------------
nemanjai wrote:
> Is it not possible to add tests at this time that actually extend the return value from `i32` (for both `sixgnext, zeroext`)?
It's not yet possible. `signext` requires a legal `G_SEXT` instruction.
`zeroext` either requires handling `G_CONSTANT` (to clear the upper bits), or a combiner (`redundant_and`) to remove the and instruction used to clear the bits.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127530/new/
https://reviews.llvm.org/D127530
More information about the llvm-commits
mailing list