[llvm] [AMDGPU][True16][CodeGen] S_PACK_XX_B32_B16 lowering for true16 mode (PR #162389)
Brox Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 9 12:15:01 PDT 2025
================
@@ -9115,6 +9115,63 @@ void SIInstrInfo::movePackToVALU(SIInstrWorklist &Worklist,
MachineOperand &Src1 = Inst.getOperand(2);
const DebugLoc &DL = Inst.getDebugLoc();
+ if (ST.useRealTrue16Insts()) {
+ Register SrcReg0 = Src0.getReg();
+ Register SrcReg1 = Src1.getReg();
+
+ if (!RI.isVGPR(MRI, SrcReg0)) {
----------------
broxigarchen wrote:
Yeah. The test could help to explain here https://github.com/llvm/llvm-project/pull/162389/files#diff-977d95c3f9cdc3cdc355bebaea7419fe196317fda4b3b0053183258f3d9982beR279
https://github.com/llvm/llvm-project/pull/162389
More information about the llvm-commits
mailing list