[llvm] [X86] Fix decoding for vinsertps immediate operand (PR #117009)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 09:28:17 PST 2024
================
@@ -1122,15 +1122,21 @@ bool llvm::EmitAnyX86InstComments(const MCInst *MI, raw_ostream &OS,
case X86::VINSERTPSrri:
case X86::VINSERTPSZrri:
Src2Name = getRegName(MI->getOperand(2).getReg());
- [[fallthrough]];
+ DestName = getRegName(MI->getOperand(0).getReg());
+ Src1Name = getRegName(MI->getOperand(1).getReg());
+ if (MI->getOperand(NumOperands - 1).isImm())
+ DecodeINSERTPSMask(MI->getOperand(NumOperands - 1).getImm(),
+ ShuffleMask, false);
----------------
RKSimon wrote:
`/*SrcIsMem=*/false`
https://github.com/llvm/llvm-project/pull/117009
More information about the llvm-commits
mailing list