Lines Matching refs:SrcOpIdx1
3408 unsigned &SrcOpIdx1,
3416 if (SrcOpIdx1 != CommuteAnyOperandIndex &&
3417 (SrcOpIdx1 < 1 || SrcOpIdx1 > RegOpsNum))
3425 if (SrcOpIdx1 == CommuteAnyOperandIndex ||
3427 unsigned CommutableOpIdx1 = SrcOpIdx1;
3432 if (SrcOpIdx1 == SrcOpIdx2)
3438 CommutableOpIdx2 = SrcOpIdx1;
3455 // Assign the found pair of commutable indices to SrcOpIdx1 and SrcOpidx2
3457 if (!fixCommutedOpIndices(SrcOpIdx1, SrcOpIdx2,
3464 return getFMA3OpcodeToCommuteOperands(MI, SrcOpIdx1, SrcOpIdx2) != 0;
3468 MachineInstr &MI, unsigned SrcOpIdx1, unsigned SrcOpIdx2) const {
3606 // Put the lowest index to SrcOpIdx1 to simplify the checks below.
3607 if (SrcOpIdx1 > SrcOpIdx2)
3608 std::swap(SrcOpIdx1, SrcOpIdx2);
3616 if (IsIntrinOpcode && SrcOpIdx1 == 1)
3620 if (SrcOpIdx1 == 1 && SrcOpIdx2 == 2)
3622 else if (SrcOpIdx1 == 1 && SrcOpIdx2 == 3)
3624 else if (SrcOpIdx1 == 2 && SrcOpIdx2 == 3)
3633 // 0: SrcOpIdx1 == 1 && SrcOpIdx2 == 2;
3638 // 1: SrcOpIdx1 == 1 && SrcOpIdx2 == 3;
3643 // 2: SrcOpIdx1 == 2 && SrcOpIdx2 == 3;
3655 bool X86InstrInfo::findCommutedOpIndices(MachineInstr &MI, unsigned &SrcOpIdx1,
3674 return fixCommutedOpIndices(SrcOpIdx1, SrcOpIdx2, 1, 2);
3680 return findFMA3CommutedOpIndices(MI, SrcOpIdx1, SrcOpIdx2);
3681 return TargetInstrInfo::findCommutedOpIndices(MI, SrcOpIdx1, SrcOpIdx2);