2017-09-19 14:19:27 +08:00
|
|
|
//=- X86SchedSkylake.td - X86 Skylake Client Scheduling ------*- tablegen -*-=//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines the machine model for Skylake Client to support
|
|
|
|
// instruction scheduling and other instruction cost heuristics.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def SkylakeClientModel : SchedMachineModel {
|
|
|
|
// All x86 instructions are modeled as a single micro-op, and SKylake can
|
|
|
|
// decode 6 instructions per cycle.
|
|
|
|
let IssueWidth = 6;
|
|
|
|
let MicroOpBufferSize = 224; // Based on the reorder buffer.
|
|
|
|
let LoadLatency = 5;
|
|
|
|
let MispredictPenalty = 14;
|
2018-03-25 04:40:14 +08:00
|
|
|
|
2017-09-19 14:19:27 +08:00
|
|
|
// Based on the LSD (loop-stream detector) queue size and benchmarking data.
|
|
|
|
let LoopMicroOpBufferSize = 50;
|
|
|
|
|
|
|
|
// This flag is set to allow the scheduler to assign a default model to
|
|
|
|
// unrecognized opcodes.
|
|
|
|
let CompleteModel = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
let SchedModel = SkylakeClientModel in {
|
|
|
|
|
|
|
|
// Skylake Client can issue micro-ops to 8 different ports in one cycle.
|
|
|
|
|
|
|
|
// Ports 0, 1, 5, and 6 handle all computation.
|
|
|
|
// Port 4 gets the data half of stores. Store data can be available later than
|
|
|
|
// the store address, but since we don't model the latency of stores, we can
|
|
|
|
// ignore that.
|
|
|
|
// Ports 2 and 3 are identical. They handle loads and the address half of
|
|
|
|
// stores. Port 7 can handle address calculations.
|
|
|
|
def SKLPort0 : ProcResource<1>;
|
|
|
|
def SKLPort1 : ProcResource<1>;
|
|
|
|
def SKLPort2 : ProcResource<1>;
|
|
|
|
def SKLPort3 : ProcResource<1>;
|
|
|
|
def SKLPort4 : ProcResource<1>;
|
|
|
|
def SKLPort5 : ProcResource<1>;
|
|
|
|
def SKLPort6 : ProcResource<1>;
|
|
|
|
def SKLPort7 : ProcResource<1>;
|
|
|
|
|
|
|
|
// Many micro-ops are capable of issuing on multiple ports.
|
|
|
|
def SKLPort01 : ProcResGroup<[SKLPort0, SKLPort1]>;
|
|
|
|
def SKLPort23 : ProcResGroup<[SKLPort2, SKLPort3]>;
|
|
|
|
def SKLPort237 : ProcResGroup<[SKLPort2, SKLPort3, SKLPort7]>;
|
|
|
|
def SKLPort04 : ProcResGroup<[SKLPort0, SKLPort4]>;
|
|
|
|
def SKLPort05 : ProcResGroup<[SKLPort0, SKLPort5]>;
|
|
|
|
def SKLPort06 : ProcResGroup<[SKLPort0, SKLPort6]>;
|
|
|
|
def SKLPort15 : ProcResGroup<[SKLPort1, SKLPort5]>;
|
|
|
|
def SKLPort16 : ProcResGroup<[SKLPort1, SKLPort6]>;
|
|
|
|
def SKLPort56 : ProcResGroup<[SKLPort5, SKLPort6]>;
|
|
|
|
def SKLPort015 : ProcResGroup<[SKLPort0, SKLPort1, SKLPort5]>;
|
|
|
|
def SKLPort056 : ProcResGroup<[SKLPort0, SKLPort5, SKLPort6]>;
|
|
|
|
def SKLPort0156: ProcResGroup<[SKLPort0, SKLPort1, SKLPort5, SKLPort6]>;
|
|
|
|
|
2018-03-26 04:16:53 +08:00
|
|
|
def SKLDivider : ProcResource<1>; // Integer division issued on port 0.
|
2018-04-02 13:33:28 +08:00
|
|
|
// FP division and sqrt on port 0.
|
|
|
|
def SKLFPDivider : ProcResource<1>;
|
2018-03-26 04:16:53 +08:00
|
|
|
|
2017-09-19 14:19:27 +08:00
|
|
|
// 60 Entry Unified Scheduler
|
|
|
|
def SKLPortAny : ProcResGroup<[SKLPort0, SKLPort1, SKLPort2, SKLPort3, SKLPort4,
|
|
|
|
SKLPort5, SKLPort6, SKLPort7]> {
|
|
|
|
let BufferSize=60;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Loads are 5 cycles, so ReadAfterLd registers needn't be available until 5
|
|
|
|
// cycles after the memory operand.
|
|
|
|
def : ReadAdvance<ReadAfterLd, 5>;
|
|
|
|
|
|
|
|
// Many SchedWrites are defined in pairs with and without a folded load.
|
|
|
|
// Instructions with folded loads are usually micro-fused, so they only appear
|
|
|
|
// as two micro-ops when queued in the reservation station.
|
|
|
|
// This multiclass defines the resource usage for variants with and without
|
|
|
|
// folded loads.
|
|
|
|
multiclass SKLWriteResPair<X86FoldableSchedWrite SchedRW,
|
2018-03-19 22:46:07 +08:00
|
|
|
list<ProcResourceKind> ExePorts,
|
2018-03-25 18:21:19 +08:00
|
|
|
int Lat, list<int> Res = [1], int UOps = 1,
|
|
|
|
int LoadLat = 5> {
|
2017-09-19 14:19:27 +08:00
|
|
|
// Register variant is using a single cycle on ExePort.
|
2018-03-19 22:46:07 +08:00
|
|
|
def : WriteRes<SchedRW, ExePorts> {
|
|
|
|
let Latency = Lat;
|
|
|
|
let ResourceCycles = Res;
|
|
|
|
let NumMicroOps = UOps;
|
|
|
|
}
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-03-25 18:21:19 +08:00
|
|
|
// Memory variant also uses a cycle on port 2/3 and adds LoadLat cycles to
|
|
|
|
// the latency (default = 5).
|
2018-03-19 22:46:07 +08:00
|
|
|
def : WriteRes<SchedRW.Folded, !listconcat([SKLPort23], ExePorts)> {
|
2018-03-25 18:21:19 +08:00
|
|
|
let Latency = !add(Lat, LoadLat);
|
2018-03-19 22:46:07 +08:00
|
|
|
let ResourceCycles = !listconcat([1], Res);
|
2018-03-25 18:21:19 +08:00
|
|
|
let NumMicroOps = !add(UOps, 1);
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-07 00:16:46 +08:00
|
|
|
// A folded store needs a cycle on port 4 for the store data, and an extra port
|
|
|
|
// 2/3/7 cycle to recompute the address.
|
|
|
|
def : WriteRes<WriteRMW, [SKLPort237,SKLPort4]>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
|
|
|
// Arithmetic.
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : SKLWriteResPair<WriteALU, [SKLPort0156], 1>; // Simple integer ALU op.
|
|
|
|
defm : SKLWriteResPair<WriteIMul, [SKLPort1], 3>; // Integer multiplication.
|
2018-03-26 04:16:53 +08:00
|
|
|
defm : SKLWriteResPair<WriteIDiv, [SKLPort0, SKLDivider], 25, [1,10], 1, 4>; // Integer division.
|
2018-03-27 05:06:14 +08:00
|
|
|
defm : SKLWriteResPair<WriteCRC32, [SKLPort1], 3>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-03-26 04:16:53 +08:00
|
|
|
def : WriteRes<WriteIMulH, []> { let Latency = 3; } // Integer multiplication, high part.
|
2017-09-19 14:19:27 +08:00
|
|
|
def : WriteRes<WriteLEA, [SKLPort15]>; // LEA instructions can't fold loads.
|
|
|
|
|
2018-04-09 01:53:18 +08:00
|
|
|
defm : SKLWriteResPair<WriteCMOV, [SKLPort06], 1>; // Conditional move.
|
|
|
|
def : WriteRes<WriteSETCC, [SKLPort06]>; // Setcc.
|
|
|
|
def : WriteRes<WriteSETCCStore, [SKLPort06,SKLPort4,SKLPort237]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
}
|
|
|
|
|
2018-03-27 02:19:28 +08:00
|
|
|
// Bit counts.
|
|
|
|
defm : SKLWriteResPair<WriteBitScan, [SKLPort1], 3>;
|
|
|
|
defm : SKLWriteResPair<WriteLZCNT, [SKLPort1], 3>;
|
|
|
|
defm : SKLWriteResPair<WriteTZCNT, [SKLPort1], 3>;
|
|
|
|
defm : SKLWriteResPair<WritePOPCNT, [SKLPort1], 3>;
|
|
|
|
|
2017-09-19 14:19:27 +08:00
|
|
|
// Integer shifts and rotates.
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : SKLWriteResPair<WriteShift, [SKLPort06], 1>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-03-30 04:41:39 +08:00
|
|
|
// BMI1 BEXTR, BMI2 BZHI
|
|
|
|
defm : SKLWriteResPair<WriteBEXTR, [SKLPort06,SKLPort15], 2, [1,1], 2>;
|
|
|
|
defm : SKLWriteResPair<WriteBZHI, [SKLPort15], 1>;
|
|
|
|
|
2017-09-19 14:19:27 +08:00
|
|
|
// Loads, stores, and moves, not folded with other operations.
|
|
|
|
def : WriteRes<WriteLoad, [SKLPort23]> { let Latency = 5; }
|
|
|
|
def : WriteRes<WriteStore, [SKLPort237, SKLPort4]>;
|
|
|
|
def : WriteRes<WriteMove, [SKLPort0156]>;
|
|
|
|
|
|
|
|
// Idioms that clear a register, like xorps %xmm0, %xmm0.
|
|
|
|
// These can often bypass execution ports completely.
|
|
|
|
def : WriteRes<WriteZero, []>;
|
|
|
|
|
|
|
|
// Branches don't produce values, so they have no latency, but they still
|
|
|
|
// consume resources. Indirect branches can fold loads.
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : SKLWriteResPair<WriteJump, [SKLPort06], 1>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
|
|
|
// Floating point. This covers both scalar and vector operations.
|
2018-03-15 22:45:30 +08:00
|
|
|
def : WriteRes<WriteFLoad, [SKLPort23]> { let Latency = 6; }
|
|
|
|
def : WriteRes<WriteFStore, [SKLPort237, SKLPort4]>;
|
|
|
|
def : WriteRes<WriteFMove, [SKLPort015]>;
|
|
|
|
|
2018-04-17 15:22:44 +08:00
|
|
|
defm : SKLWriteResPair<WriteFAdd, [SKLPort1], 3>; // Floating point add/sub.
|
|
|
|
defm : SKLWriteResPair<WriteFCmp, [SKLPort01], 4, [1], 1, 6>; // Floating point compare.
|
|
|
|
defm : SKLWriteResPair<WriteFCom, [SKLPort0], 2>; // Floating point compare to flags.
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : SKLWriteResPair<WriteFMul, [SKLPort0], 5>; // Floating point multiplication.
|
|
|
|
defm : SKLWriteResPair<WriteFDiv, [SKLPort0], 12>; // 10-14 cycles. // Floating point division.
|
|
|
|
defm : SKLWriteResPair<WriteFSqrt, [SKLPort0], 15>; // Floating point square root.
|
2018-04-21 23:16:59 +08:00
|
|
|
defm : SKLWriteResPair<WriteFRcp, [SKLPort0], 4>; // Floating point reciprocal estimate.
|
|
|
|
defm : SKLWriteResPair<WriteFRsqrt, [SKLPort0], 4>; // Floating point reciprocal square root estimate.
|
2018-04-25 21:07:58 +08:00
|
|
|
defm : SKLWriteResPair<WriteFMA, [SKLPort01], 4, [1], 1, 6>; // Fused Multiply Add.
|
|
|
|
defm : SKLWriteResPair<WriteFMAS, [SKLPort01], 4, [1], 1, 5>; // Fused Multiply Add (Scalar).
|
|
|
|
defm : SKLWriteResPair<WriteFMAY, [SKLPort01], 4, [1], 1, 7>; // Fused Multiply Add (YMM/ZMM).
|
2018-04-21 05:16:05 +08:00
|
|
|
defm : SKLWriteResPair<WriteFSign, [SKLPort0], 1>; // Floating point fabs/fchs.
|
2018-04-27 23:50:33 +08:00
|
|
|
defm : SKLWriteResPair<WriteFLogic, [SKLPort015], 1, [1], 1, 6>; // Floating point and/or/xor logicals.
|
|
|
|
defm : SKLWriteResPair<WriteFLogicY, [SKLPort015], 1, [1], 1, 7>; // Floating point and/or/xor logicals (YMM/ZMM).
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : SKLWriteResPair<WriteFShuffle, [SKLPort5], 1>; // Floating point vector shuffles.
|
2018-04-11 21:49:19 +08:00
|
|
|
defm : SKLWriteResPair<WriteFVarShuffle, [SKLPort5], 1>; // Floating point vector shuffles.
|
2018-04-28 02:19:48 +08:00
|
|
|
defm : SKLWriteResPair<WriteFVarShuffleY, [SKLPort5], 1>; // Floating point vector shuffles.
|
2018-04-23 02:35:53 +08:00
|
|
|
defm : SKLWriteResPair<WriteFBlend, [SKLPort015], 1, [1], 1, 6>; // Floating point vector blends.
|
2018-04-28 02:19:48 +08:00
|
|
|
defm : SKLWriteResPair<WriteFBlendY, [SKLPort015], 1, [1], 1, 7>; // Floating point vector blends.
|
2018-04-22 22:43:12 +08:00
|
|
|
defm : SKLWriteResPair<WriteFVarBlend, [SKLPort015], 2, [2], 2, 6>; // Fp vector variable blends.
|
2018-04-28 02:19:48 +08:00
|
|
|
defm : SKLWriteResPair<WriteFVarBlendY,[SKLPort015], 2, [2], 2, 7>; // Fp vector variable blends.
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-04-25 00:43:07 +08:00
|
|
|
def : WriteRes<WriteCvtF2FSt, [SKLPort4,SKLPort5,SKLPort237,SKLPort01]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
|
|
|
|
2017-09-19 14:19:27 +08:00
|
|
|
// FMA Scheduling helper class.
|
|
|
|
// class FMASC { X86FoldableSchedWrite Sched = WriteFAdd; }
|
|
|
|
|
|
|
|
// Vector integer operations.
|
2018-03-15 22:45:30 +08:00
|
|
|
def : WriteRes<WriteVecLoad, [SKLPort23]> { let Latency = 6; }
|
|
|
|
def : WriteRes<WriteVecStore, [SKLPort237, SKLPort4]>;
|
|
|
|
def : WriteRes<WriteVecMove, [SKLPort015]>;
|
|
|
|
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : SKLWriteResPair<WriteVecALU, [SKLPort15], 1>; // Vector integer ALU op, no logicals.
|
2018-04-21 05:16:05 +08:00
|
|
|
defm : SKLWriteResPair<WriteVecLogic, [SKLPort015], 1, [1], 1, 6>; // Vector integer and/or/xor.
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : SKLWriteResPair<WriteVecShift, [SKLPort0], 1>; // Vector integer shifts.
|
|
|
|
defm : SKLWriteResPair<WriteVecIMul, [SKLPort0], 5>; // Vector integer multiply.
|
2018-03-31 12:54:32 +08:00
|
|
|
defm : SKLWriteResPair<WritePMULLD, [SKLPort01], 10, [2], 2, 6>;
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : SKLWriteResPair<WriteShuffle, [SKLPort5], 1>; // Vector shuffles.
|
2018-04-11 21:49:19 +08:00
|
|
|
defm : SKLWriteResPair<WriteVarShuffle, [SKLPort5], 1>; // Vector shuffles.
|
2018-04-23 02:35:53 +08:00
|
|
|
defm : SKLWriteResPair<WriteBlend, [SKLPort5], 1, [1], 1, 6>; // Vector blends.
|
2018-04-22 22:43:12 +08:00
|
|
|
defm : SKLWriteResPair<WriteVarBlend, [SKLPort015], 2, [2], 2, 6>; // Vector variable blends.
|
2018-04-22 18:39:16 +08:00
|
|
|
defm : SKLWriteResPair<WriteMPSAD, [SKLPort5], 4, [2], 2, 6>; // Vector MPSAD.
|
2018-04-18 03:35:19 +08:00
|
|
|
defm : SKLWriteResPair<WritePSADBW, [SKLPort5], 3>; // Vector PSADBW.
|
2018-04-25 02:49:25 +08:00
|
|
|
defm : SKLWriteResPair<WritePHMINPOS, [SKLPort01], 4, [1], 1, 6>; // Vector PHMINPOS.
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-04-24 21:21:41 +08:00
|
|
|
// Vector insert/extract operations.
|
|
|
|
def : WriteRes<WriteVecInsert, [SKLPort5]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
|
|
|
def : WriteRes<WriteVecInsertLd, [SKLPort5,SKLPort23]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
def : WriteRes<WriteVecExtract, [SKLPort0,SKLPort5]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
}
|
|
|
|
def : WriteRes<WriteVecExtractSt, [SKLPort4,SKLPort5,SKLPort237]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
}
|
|
|
|
|
2017-09-19 14:19:27 +08:00
|
|
|
// Conversion between integer and float.
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : SKLWriteResPair<WriteCvtF2I, [SKLPort1], 3>; // Float -> Integer.
|
|
|
|
defm : SKLWriteResPair<WriteCvtI2F, [SKLPort1], 4>; // Integer -> Float.
|
|
|
|
defm : SKLWriteResPair<WriteCvtF2F, [SKLPort1], 3>; // Float -> Float size conversion.
|
2017-09-19 14:19:27 +08:00
|
|
|
|
|
|
|
// Strings instructions.
|
2018-03-22 22:56:18 +08:00
|
|
|
|
2017-09-19 14:19:27 +08:00
|
|
|
// Packed Compare Implicit Length Strings, Return Mask
|
|
|
|
def : WriteRes<WritePCmpIStrM, [SKLPort0]> {
|
|
|
|
let Latency = 10;
|
2018-03-22 22:56:18 +08:00
|
|
|
let NumMicroOps = 3;
|
2017-09-19 14:19:27 +08:00
|
|
|
let ResourceCycles = [3];
|
|
|
|
}
|
|
|
|
def : WriteRes<WritePCmpIStrMLd, [SKLPort0, SKLPort23]> {
|
2018-03-22 22:56:18 +08:00
|
|
|
let Latency = 16;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [3,1];
|
|
|
|
}
|
|
|
|
|
2017-09-19 14:19:27 +08:00
|
|
|
// Packed Compare Explicit Length Strings, Return Mask
|
2018-03-22 22:56:18 +08:00
|
|
|
def : WriteRes<WritePCmpEStrM, [SKLPort0, SKLPort5, SKLPort015, SKLPort0156]> {
|
|
|
|
let Latency = 19;
|
|
|
|
let NumMicroOps = 9;
|
|
|
|
let ResourceCycles = [4,3,1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 22:56:18 +08:00
|
|
|
def : WriteRes<WritePCmpEStrMLd, [SKLPort0, SKLPort5,SKLPort23, SKLPort015, SKLPort0156]> {
|
|
|
|
let Latency = 25;
|
|
|
|
let NumMicroOps = 10;
|
|
|
|
let ResourceCycles = [4,3,1,1,1];
|
|
|
|
}
|
|
|
|
|
|
|
|
// Packed Compare Implicit Length Strings, Return Index
|
2017-09-19 14:19:27 +08:00
|
|
|
def : WriteRes<WritePCmpIStrI, [SKLPort0]> {
|
2018-03-22 22:56:18 +08:00
|
|
|
let Latency = 10;
|
|
|
|
let NumMicroOps = 3;
|
2017-09-19 14:19:27 +08:00
|
|
|
let ResourceCycles = [3];
|
|
|
|
}
|
|
|
|
def : WriteRes<WritePCmpIStrILd, [SKLPort0, SKLPort23]> {
|
2018-03-22 22:56:18 +08:00
|
|
|
let Latency = 16;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [3,1];
|
|
|
|
}
|
|
|
|
|
2017-09-19 14:19:27 +08:00
|
|
|
// Packed Compare Explicit Length Strings, Return Index
|
2018-03-22 22:56:18 +08:00
|
|
|
def : WriteRes<WritePCmpEStrI, [SKLPort0, SKLPort5, SKLPort0156]> {
|
|
|
|
let Latency = 18;
|
|
|
|
let NumMicroOps = 8;
|
|
|
|
let ResourceCycles = [4,3,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 22:56:18 +08:00
|
|
|
def : WriteRes<WritePCmpEStrILd, [SKLPort0, SKLPort5, SKLPort23, SKLPort0156]> {
|
|
|
|
let Latency = 24;
|
|
|
|
let NumMicroOps = 9;
|
|
|
|
let ResourceCycles = [4,3,1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
|
|
|
|
2018-03-28 04:38:54 +08:00
|
|
|
// MOVMSK Instructions.
|
|
|
|
def : WriteRes<WriteFMOVMSK, [SKLPort0]> { let Latency = 2; }
|
|
|
|
def : WriteRes<WriteVecMOVMSK, [SKLPort0]> { let Latency = 2; }
|
|
|
|
def : WriteRes<WriteMMXMOVMSK, [SKLPort0]> { let Latency = 2; }
|
|
|
|
|
2017-09-19 14:19:27 +08:00
|
|
|
// AES instructions.
|
2018-03-22 21:18:08 +08:00
|
|
|
def : WriteRes<WriteAESDecEnc, [SKLPort0]> { // Decryption, encryption.
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 1;
|
2017-09-19 14:19:27 +08:00
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 21:18:08 +08:00
|
|
|
def : WriteRes<WriteAESDecEncLd, [SKLPort0, SKLPort23]> {
|
|
|
|
let Latency = 10;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 21:18:08 +08:00
|
|
|
|
|
|
|
def : WriteRes<WriteAESIMC, [SKLPort0]> { // InvMixColumn.
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 2;
|
2017-09-19 14:19:27 +08:00
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
2018-03-22 21:18:08 +08:00
|
|
|
def : WriteRes<WriteAESIMCLd, [SKLPort0, SKLPort23]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 14;
|
2018-03-22 21:18:08 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 21:18:08 +08:00
|
|
|
|
|
|
|
def : WriteRes<WriteAESKeyGen, [SKLPort0, SKLPort5, SKLPort015]> { // Key Generation.
|
|
|
|
let Latency = 20;
|
|
|
|
let NumMicroOps = 11;
|
|
|
|
let ResourceCycles = [3,6,2];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 21:18:08 +08:00
|
|
|
def : WriteRes<WriteAESKeyGenLd, [SKLPort0, SKLPort5, SKLPort23, SKLPort015]> {
|
|
|
|
let Latency = 25;
|
|
|
|
let NumMicroOps = 11;
|
|
|
|
let ResourceCycles = [3,6,1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Carry-less multiplication instructions.
|
2018-03-22 21:37:30 +08:00
|
|
|
def : WriteRes<WriteCLMul, [SKLPort5]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 21:37:30 +08:00
|
|
|
def : WriteRes<WriteCLMulLd, [SKLPort5, SKLPort23]> {
|
|
|
|
let Latency = 12;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Catch-all for expensive system instructions.
|
|
|
|
def : WriteRes<WriteSystem, [SKLPort0156]> { let Latency = 100; } // def WriteSystem : SchedWrite;
|
|
|
|
|
|
|
|
// AVX2.
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : SKLWriteResPair<WriteFShuffle256, [SKLPort5], 3>; // Fp 256-bit width vector shuffles.
|
2018-04-11 21:49:19 +08:00
|
|
|
defm : SKLWriteResPair<WriteFVarShuffle256, [SKLPort5], 3>; // Fp 256-bit width vector variable shuffles.
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : SKLWriteResPair<WriteShuffle256, [SKLPort5], 3>; // 256-bit width vector shuffles.
|
2018-04-11 21:49:19 +08:00
|
|
|
defm : SKLWriteResPair<WriteVarShuffle256, [SKLPort5], 3>; // 256-bit width vector variable shuffles.
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : SKLWriteResPair<WriteVarVecShift, [SKLPort0, SKLPort5], 2, [2, 1]>; // Variable vector shifts.
|
2017-09-19 14:19:27 +08:00
|
|
|
|
|
|
|
// Old microcoded instructions that nobody use.
|
|
|
|
def : WriteRes<WriteMicrocoded, [SKLPort0156]> { let Latency = 100; } // def WriteMicrocoded : SchedWrite;
|
|
|
|
|
|
|
|
// Fence instructions.
|
|
|
|
def : WriteRes<WriteFence, [SKLPort23, SKLPort4]>;
|
|
|
|
|
2018-04-22 02:07:36 +08:00
|
|
|
// Load/store MXCSR.
|
|
|
|
def : WriteRes<WriteLDMXCSR, [SKLPort0,SKLPort23,SKLPort0156]> { let Latency = 7; let NumMicroOps = 3; let ResourceCycles = [1,1,1]; }
|
|
|
|
def : WriteRes<WriteSTMXCSR, [SKLPort4,SKLPort5,SKLPort237]> { let Latency = 2; let NumMicroOps = 3; let ResourceCycles = [1,1,1]; }
|
|
|
|
|
2017-09-19 14:19:27 +08:00
|
|
|
// Nop, not very useful expect it provides a model for nops!
|
|
|
|
def : WriteRes<WriteNop, []>;
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Horizontal add/sub instructions.
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-04-28 00:11:57 +08:00
|
|
|
defm : SKLWriteResPair<WriteFHAdd, [SKLPort5,SKLPort01], 6, [2,1], 3, 6>;
|
|
|
|
defm : SKLWriteResPair<WriteFHAddY, [SKLPort5,SKLPort01], 6, [2,1], 3, 7>;
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : SKLWriteResPair<WritePHAdd, [SKLPort15], 1>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
|
|
|
// Remaining instrs.
|
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup1 : SchedWriteRes<[SKLPort0]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup1], (instregex "MMX_PADDSBirr",
|
|
|
|
"MMX_PADDSWirr",
|
|
|
|
"MMX_PADDUSBirr",
|
|
|
|
"MMX_PADDUSWirr",
|
|
|
|
"MMX_PAVGBirr",
|
|
|
|
"MMX_PAVGWirr",
|
|
|
|
"MMX_PCMPEQBirr",
|
|
|
|
"MMX_PCMPEQDirr",
|
|
|
|
"MMX_PCMPEQWirr",
|
|
|
|
"MMX_PCMPGTBirr",
|
|
|
|
"MMX_PCMPGTDirr",
|
|
|
|
"MMX_PCMPGTWirr",
|
|
|
|
"MMX_PMAXSWirr",
|
|
|
|
"MMX_PMAXUBirr",
|
|
|
|
"MMX_PMINSWirr",
|
|
|
|
"MMX_PMINUBirr",
|
|
|
|
"MMX_PSUBSBirr",
|
|
|
|
"MMX_PSUBSWirr",
|
|
|
|
"MMX_PSUBUSBirr",
|
|
|
|
"MMX_PSUBUSWirr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup3 : SchedWriteRes<[SKLPort5]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup3], (instregex "COMP_FST0r",
|
|
|
|
"COM_FST0r",
|
|
|
|
"MMX_MOVD64rr",
|
|
|
|
"MMX_MOVD64to64rr",
|
|
|
|
"UCOM_FPr",
|
|
|
|
"UCOM_Fr",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)MOV64toPQIrr",
|
|
|
|
"(V?)MOVDI2PDIrr",
|
|
|
|
"(V?)PSLLDQ(Y?)ri",
|
2018-04-22 03:11:55 +08:00
|
|
|
"(V?)PSRLDQ(Y?)ri")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup4 : SchedWriteRes<[SKLPort6]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup4], (instregex "JMP(16|32|64)r")>;
|
|
|
|
|
|
|
|
def SKLWriteResGroup5 : SchedWriteRes<[SKLPort01]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup5], (instregex "(V?)PABSB(Y?)rr",
|
|
|
|
"(V?)PABSD(Y?)rr",
|
|
|
|
"(V?)PABSW(Y?)rr",
|
|
|
|
"(V?)PADDSB(Y?)rr",
|
|
|
|
"(V?)PADDSW(Y?)rr",
|
|
|
|
"(V?)PADDUSB(Y?)rr",
|
|
|
|
"(V?)PADDUSW(Y?)rr",
|
|
|
|
"(V?)PAVGB(Y?)rr",
|
|
|
|
"(V?)PAVGW(Y?)rr",
|
|
|
|
"(V?)PCMPEQB(Y?)rr",
|
|
|
|
"(V?)PCMPEQD(Y?)rr",
|
|
|
|
"(V?)PCMPEQQ(Y?)rr",
|
|
|
|
"(V?)PCMPEQW(Y?)rr",
|
|
|
|
"(V?)PCMPGTB(Y?)rr",
|
|
|
|
"(V?)PCMPGTD(Y?)rr",
|
|
|
|
"(V?)PCMPGTW(Y?)rr",
|
|
|
|
"(V?)PMAXSB(Y?)rr",
|
|
|
|
"(V?)PMAXSD(Y?)rr",
|
|
|
|
"(V?)PMAXSW(Y?)rr",
|
|
|
|
"(V?)PMAXUB(Y?)rr",
|
|
|
|
"(V?)PMAXUD(Y?)rr",
|
|
|
|
"(V?)PMAXUW(Y?)rr",
|
|
|
|
"(V?)PMINSB(Y?)rr",
|
|
|
|
"(V?)PMINSD(Y?)rr",
|
|
|
|
"(V?)PMINSW(Y?)rr",
|
|
|
|
"(V?)PMINUB(Y?)rr",
|
|
|
|
"(V?)PMINUD(Y?)rr",
|
|
|
|
"(V?)PMINUW(Y?)rr",
|
|
|
|
"(V?)PSIGNB(Y?)rr",
|
|
|
|
"(V?)PSIGND(Y?)rr",
|
|
|
|
"(V?)PSIGNW(Y?)rr",
|
|
|
|
"(V?)PSLLD(Y?)ri",
|
|
|
|
"(V?)PSLLQ(Y?)ri",
|
|
|
|
"VPSLLVD(Y?)rr",
|
|
|
|
"VPSLLVQ(Y?)rr",
|
|
|
|
"(V?)PSLLW(Y?)ri",
|
|
|
|
"(V?)PSRAD(Y?)ri",
|
|
|
|
"VPSRAVD(Y?)rr",
|
|
|
|
"(V?)PSRAW(Y?)ri",
|
|
|
|
"(V?)PSRLD(Y?)ri",
|
|
|
|
"(V?)PSRLQ(Y?)ri",
|
|
|
|
"VPSRLVD(Y?)rr",
|
|
|
|
"VPSRLVQ(Y?)rr",
|
|
|
|
"(V?)PSRLW(Y?)ri",
|
|
|
|
"(V?)PSUBSB(Y?)rr",
|
|
|
|
"(V?)PSUBSW(Y?)rr",
|
|
|
|
"(V?)PSUBUSB(Y?)rr",
|
|
|
|
"(V?)PSUBUSW(Y?)rr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup6 : SchedWriteRes<[SKLPort05]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-04-24 00:10:50 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup6], (instrs FINCSTP, FNOP)>;
|
|
|
|
def: InstRW<[SKLWriteResGroup6], (instregex "MMX_MOVQ64rr",
|
2018-04-20 01:32:10 +08:00
|
|
|
"MMX_PABS(B|D|W)rr",
|
|
|
|
"MMX_PADD(B|D|Q|W)irr",
|
2018-03-22 12:23:41 +08:00
|
|
|
"MMX_PANDNirr",
|
|
|
|
"MMX_PANDirr",
|
|
|
|
"MMX_PORirr",
|
2018-04-20 01:32:10 +08:00
|
|
|
"MMX_PSIGN(B|D|W)rr",
|
|
|
|
"MMX_PSUB(B|D|Q|W)irr",
|
2018-03-22 12:23:41 +08:00
|
|
|
"MMX_PXORirr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup7 : SchedWriteRes<[SKLPort06]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-04-23 21:24:17 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup7], (instrs CDQ, CQO, CLAC, STAC)>;
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup7], (instregex "ADC(16|32|64)ri",
|
|
|
|
"ADC(16|32|64)i",
|
|
|
|
"ADC(8|16|32|64)rr",
|
|
|
|
"ADCX(32|64)rr",
|
|
|
|
"ADOX(32|64)rr",
|
|
|
|
"BT(16|32|64)ri8",
|
|
|
|
"BT(16|32|64)rr",
|
|
|
|
"BTC(16|32|64)ri8",
|
|
|
|
"BTC(16|32|64)rr",
|
|
|
|
"BTR(16|32|64)ri8",
|
|
|
|
"BTR(16|32|64)rr",
|
|
|
|
"BTS(16|32|64)ri8",
|
|
|
|
"BTS(16|32|64)rr",
|
|
|
|
"SBB(16|32|64)ri",
|
|
|
|
"SBB(16|32|64)i",
|
2018-04-28 23:32:19 +08:00
|
|
|
"SBB(8|16|32|64)rr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup8 : SchedWriteRes<[SKLPort15]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 1;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup8], (instregex "ANDN(32|64)rr",
|
|
|
|
"BLSI(32|64)rr",
|
|
|
|
"BLSMSK(32|64)rr",
|
2018-04-24 05:04:23 +08:00
|
|
|
"BLSR(32|64)rr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup9 : SchedWriteRes<[SKLPort015]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 1;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-04-22 05:59:36 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup9], (instregex "(V?)PADDB(Y?)rr",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)PADDD(Y?)rr",
|
|
|
|
"(V?)PADDQ(Y?)rr",
|
|
|
|
"(V?)PADDW(Y?)rr",
|
|
|
|
"VPBLENDD(Y?)rri",
|
|
|
|
"(V?)PSUBB(Y?)rr",
|
|
|
|
"(V?)PSUBD(Y?)rr",
|
|
|
|
"(V?)PSUBQ(Y?)rr",
|
2018-04-21 05:16:05 +08:00
|
|
|
"(V?)PSUBW(Y?)rr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup10 : SchedWriteRes<[SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 1;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-04-06 05:56:19 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup10], (instrs CBW, CWDE, CDQE)>;
|
2018-04-29 23:33:15 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup10], (instrs LAHF, SAHF)>; // TODO: This doesn't match Agner's data
|
2018-04-07 00:16:48 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup10], (instregex "CLC",
|
2018-03-22 12:23:41 +08:00
|
|
|
"CMC",
|
|
|
|
"NOOP",
|
|
|
|
"SGDT64m",
|
|
|
|
"SIDT64m",
|
|
|
|
"SMSW16m",
|
|
|
|
"STC",
|
|
|
|
"STRm",
|
2018-04-20 02:00:17 +08:00
|
|
|
"SYSCALL")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup11 : SchedWriteRes<[SKLPort4,SKLPort237]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup11], (instregex "FBSTPm",
|
|
|
|
"MMX_MOVD64from64rm",
|
|
|
|
"MMX_MOVD64mr",
|
|
|
|
"MMX_MOVNTQmr",
|
|
|
|
"MMX_MOVQ64mr",
|
|
|
|
"MOVNTI_64mr",
|
|
|
|
"MOVNTImr",
|
2018-04-28 05:14:19 +08:00
|
|
|
"ST_FP(32|64|80)m",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VEXTRACTF128mr",
|
|
|
|
"VEXTRACTI128mr",
|
2018-03-26 01:33:14 +08:00
|
|
|
"(V?)MOVAPDYmr",
|
|
|
|
"(V?)MOVAPS(Y?)mr",
|
|
|
|
"(V?)MOVDQA(Y?)mr",
|
|
|
|
"(V?)MOVDQU(Y?)mr",
|
|
|
|
"(V?)MOVHPDmr",
|
|
|
|
"(V?)MOVHPSmr",
|
|
|
|
"(V?)MOVLPDmr",
|
|
|
|
"(V?)MOVLPSmr",
|
|
|
|
"(V?)MOVNTDQ(Y?)mr",
|
|
|
|
"(V?)MOVNTPD(Y?)mr",
|
|
|
|
"(V?)MOVNTPS(Y?)mr",
|
|
|
|
"(V?)MOVPDI2DImr",
|
|
|
|
"(V?)MOVPQI2QImr",
|
|
|
|
"(V?)MOVPQIto64mr",
|
|
|
|
"(V?)MOVSDmr",
|
|
|
|
"(V?)MOVSSmr",
|
|
|
|
"(V?)MOVUPD(Y?)mr",
|
|
|
|
"(V?)MOVUPS(Y?)mr",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VMPTRSTm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup12 : SchedWriteRes<[SKLPort0]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup12], (instregex "MMX_MOVD64from64rr",
|
2018-03-22 12:23:41 +08:00
|
|
|
"MMX_MOVD64grr",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)MOVPDI2DIrr",
|
|
|
|
"(V?)MOVPQIto64rr",
|
|
|
|
"VTESTPD(Y?)rr",
|
2018-04-17 15:22:44 +08:00
|
|
|
"VTESTPS(Y?)rr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup13 : SchedWriteRes<[SKLPort5]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
2018-04-24 21:21:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup13], (instregex "MMX_MOVQ2DQrr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup14 : SchedWriteRes<[SKLPort05]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
2018-04-24 00:10:50 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup14], (instrs FDECSTP)>;
|
|
|
|
def: InstRW<[SKLWriteResGroup14], (instregex "MMX_MOVDQ2Qrr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup15 : SchedWriteRes<[SKLPort06]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup15], (instregex "CMOV(A|BE)(16|32|64)rr",
|
|
|
|
"ROL(8|16|32|64)r1",
|
|
|
|
"ROL(8|16|32|64)ri",
|
|
|
|
"ROR(8|16|32|64)r1",
|
|
|
|
"ROR(8|16|32|64)ri",
|
|
|
|
"SET(A|BE)r")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup17 : SchedWriteRes<[SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
2018-04-27 21:32:42 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup17], (instrs LFENCE,
|
|
|
|
WAIT,
|
|
|
|
XGETBV)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup18 : SchedWriteRes<[SKLPort0,SKLPort237]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup18], (instregex "VMASKMOVPD(Y?)mr",
|
|
|
|
"VMASKMOVPS(Y?)mr",
|
|
|
|
"VPMASKMOVD(Y?)mr",
|
|
|
|
"VPMASKMOVQ(Y?)mr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup19 : SchedWriteRes<[SKLPort5,SKLPort01]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup19], (instregex "(V?)PSLLDrr",
|
|
|
|
"(V?)PSLLQrr",
|
|
|
|
"(V?)PSLLWrr",
|
|
|
|
"(V?)PSRADrr",
|
|
|
|
"(V?)PSRAWrr",
|
|
|
|
"(V?)PSRLDrr",
|
|
|
|
"(V?)PSRLQrr",
|
|
|
|
"(V?)PSRLWrr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup20 : SchedWriteRes<[SKLPort6,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup20], (instregex "CLFLUSH")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup21 : SchedWriteRes<[SKLPort237,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup21], (instregex "SFENCE")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup22 : SchedWriteRes<[SKLPort06,SKLPort15]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-04-05 01:54:19 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup22], (instrs BSWAP64r)>;
|
|
|
|
|
|
|
|
def SKLWriteResGroup22_1 : SchedWriteRes<[SKLPort15]> {
|
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup22_1], (instrs BSWAP32r)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup23 : SchedWriteRes<[SKLPort06,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup23], (instrs CWD)>;
|
2018-03-20 03:00:32 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup23], (instrs JCXZ, JECXZ, JRCXZ)>;
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup23], (instregex "ADC8i8",
|
|
|
|
"ADC8ri",
|
|
|
|
"SBB8i8",
|
|
|
|
"SBB8ri")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup25 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort237]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup25], (instregex "FNSTCW16m")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup27 : SchedWriteRes<[SKLPort4,SKLPort237,SKLPort15]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup27], (instregex "MOVBE(16|32|64)mr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup28 : SchedWriteRes<[SKLPort4,SKLPort237,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-04-27 21:32:42 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup28], (instrs PUSH16r, PUSH32r, PUSH64r,
|
|
|
|
STOSB, STOSL, STOSQ, STOSW)>;
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup28], (instregex "PUSH(16|32|64)rmr",
|
2018-04-27 21:32:42 +08:00
|
|
|
"PUSH64i8")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup29 : SchedWriteRes<[SKLPort1]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-27 02:19:28 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup29], (instregex "PDEP(32|64)rr",
|
2018-03-22 12:23:41 +08:00
|
|
|
"PEXT(32|64)rr",
|
|
|
|
"SHLD(16|32|64)rri8",
|
2018-03-27 02:19:28 +08:00
|
|
|
"SHRD(16|32|64)rri8")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
[X86] Add IMUL scheduling info on sandybridge, fix it on >=haswell.
Summary:
Only IMUL16rri uses an extra P0156. IMUL32* and IMUL16rr only use
P1.
This was computed using https://github.com/google/EXEgesis/blob/master/exegesis/tools/compute_itineraries.cc
This can easily be validated by running perf on the following code:
```
int main(int argc, char**argv) {
int a = argc;
int b = argc;
int c = argc;
int d = argc;
for (int i = 0; i < LOOP_ITERATIONS; ++i) {
asm volatile(
R"(
.rept 10000
imull $0x2, %%edx, %%eax
imull $0x2, %%ecx, %%ebx
imull $0x2, %%eax, %%edx
imull $0x2, %%ebx, %%ecx
.endr
)"
: "+a"(a), "+b"(b), "+c"(c), "+d"(d)
:
:);
}
return a+b+c+d;
}
```
-> test.cc
perf stat -x, -e cycles --pfm-events=uops_executed_port:port_0:u,uops_executed_port:port_1:u,uops_executed_port:port_2:u,uops_executed_port:port_3:u,uops_executed_port:port_4:u,uops_executed_port:port_5:u,uops_executed_port:port_6:u,uops_executed_port:port_7:u test
Reviewers: craig.topper, RKSimon, gadi.haber
Subscribers: llvm-commits, gchatelet, chandlerc
Differential Revision: https://reviews.llvm.org/D43460
llvm-svn: 326877
2018-03-07 16:14:02 +08:00
|
|
|
def SKLWriteResGroup29_16i : SchedWriteRes<[SKLPort1, SKLPort0156]> {
|
2018-04-19 13:34:05 +08:00
|
|
|
let Latency = 4;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
[X86] Add IMUL scheduling info on sandybridge, fix it on >=haswell.
Summary:
Only IMUL16rri uses an extra P0156. IMUL32* and IMUL16rr only use
P1.
This was computed using https://github.com/google/EXEgesis/blob/master/exegesis/tools/compute_itineraries.cc
This can easily be validated by running perf on the following code:
```
int main(int argc, char**argv) {
int a = argc;
int b = argc;
int c = argc;
int d = argc;
for (int i = 0; i < LOOP_ITERATIONS; ++i) {
asm volatile(
R"(
.rept 10000
imull $0x2, %%edx, %%eax
imull $0x2, %%ecx, %%ebx
imull $0x2, %%eax, %%edx
imull $0x2, %%ebx, %%ecx
.endr
)"
: "+a"(a), "+b"(b), "+c"(c), "+d"(d)
:
:);
}
return a+b+c+d;
}
```
-> test.cc
perf stat -x, -e cycles --pfm-events=uops_executed_port:port_0:u,uops_executed_port:port_1:u,uops_executed_port:port_2:u,uops_executed_port:port_3:u,uops_executed_port:port_4:u,uops_executed_port:port_5:u,uops_executed_port:port_6:u,uops_executed_port:port_7:u test
Reviewers: craig.topper, RKSimon, gadi.haber
Subscribers: llvm-commits, gchatelet, chandlerc
Differential Revision: https://reviews.llvm.org/D43460
llvm-svn: 326877
2018-03-07 16:14:02 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup29_16i], (instrs IMUL16rri, IMUL16rri8)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup30 : SchedWriteRes<[SKLPort5]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup30], (instregex "(ADD|SUB|SUBR)_FPrST0",
|
|
|
|
"(ADD|SUB|SUBR)_FST0r",
|
|
|
|
"(ADD|SUB|SUBR)_FrST0",
|
2018-04-22 03:11:55 +08:00
|
|
|
"VPBROADCASTBrr",
|
2018-04-22 04:45:12 +08:00
|
|
|
"VPBROADCASTWrr",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)PCMPGTQ(Y?)rr",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VPMOVSXBDYrr",
|
|
|
|
"VPMOVSXBQYrr",
|
|
|
|
"VPMOVSXBWYrr",
|
|
|
|
"VPMOVSXDQYrr",
|
|
|
|
"VPMOVSXWDYrr",
|
|
|
|
"VPMOVSXWQYrr",
|
|
|
|
"VPMOVZXBDYrr",
|
|
|
|
"VPMOVZXBQYrr",
|
|
|
|
"VPMOVZXBWYrr",
|
|
|
|
"VPMOVZXDQYrr",
|
|
|
|
"VPMOVZXWDYrr",
|
2018-04-18 03:35:19 +08:00
|
|
|
"VPMOVZXWQYrr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup31 : SchedWriteRes<[SKLPort0,SKLPort5]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-04-24 21:21:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup31], (instregex "(V?)PTEST(Y?)rr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup32 : SchedWriteRes<[SKLPort0,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup32], (instregex "FNSTSW16r")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup33 : SchedWriteRes<[SKLPort06]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [3];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup33], (instregex "ROL(8|16|32|64)rCL",
|
|
|
|
"ROR(8|16|32|64)rCL",
|
|
|
|
"SAR(8|16|32|64)rCL",
|
|
|
|
"SHL(8|16|32|64)rCL",
|
|
|
|
"SHR(8|16|32|64)rCL")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup34 : SchedWriteRes<[SKLPort0156]> {
|
2018-04-20 02:00:17 +08:00
|
|
|
let Latency = 2;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [3];
|
|
|
|
}
|
2018-04-20 02:00:17 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup34], (instrs XADD8rr, XADD16rr, XADD32rr, XADD64rr,
|
|
|
|
XCHG8rr, XCHG16rr, XCHG32rr, XCHG64rr,
|
|
|
|
XCHG16ar, XCHG32ar, XCHG64ar)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup35 : SchedWriteRes<[SKLPort0,SKLPort5]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
2018-04-20 01:32:10 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup35], (instregex "MMX_PH(ADD|SUB)SWrr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup36 : SchedWriteRes<[SKLPort5,SKLPort01]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup36], (instregex "(V?)PHADDSW(Y?)rr",
|
|
|
|
"(V?)PHSUBSW(Y?)rr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup37 : SchedWriteRes<[SKLPort5,SKLPort05]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-04-20 01:32:10 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup37], (instregex "MMX_PH(ADD|SUB)(D|W)rr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup38 : SchedWriteRes<[SKLPort5,SKLPort015]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup38], (instregex "(V?)PHADDD(Y?)rr",
|
|
|
|
"(V?)PHADDW(Y?)rr",
|
|
|
|
"(V?)PHSUBD(Y?)rr",
|
|
|
|
"(V?)PHSUBW(Y?)rr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup39 : SchedWriteRes<[SKLPort5,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup39], (instregex "MMX_PACKSSDWirr",
|
|
|
|
"MMX_PACKSSWBirr",
|
|
|
|
"MMX_PACKUSWBirr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup40 : SchedWriteRes<[SKLPort6,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup40], (instregex "CLD")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup41 : SchedWriteRes<[SKLPort237,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
2018-04-27 21:32:42 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup41], (instrs MFENCE)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup42 : SchedWriteRes<[SKLPort06,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
2017-10-17 14:47:04 +08:00
|
|
|
let ResourceCycles = [1,2];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup42], (instregex "RCL(8|16|32|64)r1",
|
|
|
|
"RCL(8|16|32|64)ri",
|
|
|
|
"RCR(8|16|32|64)r1",
|
|
|
|
"RCR(8|16|32|64)ri")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup43 : SchedWriteRes<[SKLPort0,SKLPort4,SKLPort237]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup43], (instregex "FNSTSWm")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup44 : SchedWriteRes<[SKLPort4,SKLPort237,SKLPort06]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 4;
|
2017-10-17 14:47:04 +08:00
|
|
|
let ResourceCycles = [1,1,2];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-01-19 13:47:32 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup44], (instregex "SET(A|BE)m")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup45 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort237,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 4;
|
2017-10-17 14:47:04 +08:00
|
|
|
let ResourceCycles = [1,1,1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup45], (instregex "CALL(16|32|64)r")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup46 : SchedWriteRes<[SKLPort4,SKLPort237,SKLPort06,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 4;
|
2017-10-17 14:47:04 +08:00
|
|
|
let ResourceCycles = [1,1,1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup46], (instregex "CALL64pcrel32")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup47 : SchedWriteRes<[SKLPort0]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 21:18:08 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup47], (instregex "MMX_PMADDUBSWrr",
|
2018-03-22 12:23:41 +08:00
|
|
|
"MMX_PMADDWDirr",
|
|
|
|
"MMX_PMULHRSWrr",
|
|
|
|
"MMX_PMULHUWirr",
|
|
|
|
"MMX_PMULHWirr",
|
|
|
|
"MMX_PMULLWirr",
|
|
|
|
"MMX_PMULUDQirr",
|
|
|
|
"MUL_FPrST0",
|
|
|
|
"MUL_FST0r",
|
2018-04-21 23:16:59 +08:00
|
|
|
"MUL_FrST0")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup48 : SchedWriteRes<[SKLPort01]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup48], (instregex "(V?)ADDPD(Y?)rr",
|
|
|
|
"(V?)ADDPS(Y?)rr",
|
|
|
|
"(V?)ADDSDrr",
|
|
|
|
"(V?)ADDSSrr",
|
|
|
|
"(V?)ADDSUBPD(Y?)rr",
|
|
|
|
"(V?)ADDSUBPS(Y?)rr",
|
|
|
|
"(V?)CVTDQ2PS(Y?)rr",
|
|
|
|
"(V?)CVTPS2DQ(Y?)rr",
|
|
|
|
"(V?)CVTTPS2DQ(Y?)rr",
|
|
|
|
"(V?)MULPD(Y?)rr",
|
|
|
|
"(V?)MULPS(Y?)rr",
|
|
|
|
"(V?)MULSDrr",
|
|
|
|
"(V?)MULSSrr",
|
|
|
|
"(V?)PMADDUBSW(Y?)rr",
|
|
|
|
"(V?)PMADDWD(Y?)rr",
|
|
|
|
"(V?)PMULDQ(Y?)rr",
|
|
|
|
"(V?)PMULHRSW(Y?)rr",
|
|
|
|
"(V?)PMULHUW(Y?)rr",
|
|
|
|
"(V?)PMULHW(Y?)rr",
|
|
|
|
"(V?)PMULLW(Y?)rr",
|
|
|
|
"(V?)PMULUDQ(Y?)rr",
|
|
|
|
"(V?)SUBPD(Y?)rr",
|
|
|
|
"(V?)SUBPS(Y?)rr",
|
|
|
|
"(V?)SUBSDrr",
|
|
|
|
"(V?)SUBSSrr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup51 : SchedWriteRes<[SKLPort1,SKLPort5]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-04-19 13:34:05 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup51], (instrs IMUL64r, MUL64r, MULX64rr)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup51_16 : SchedWriteRes<[SKLPort1,SKLPort06,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 4;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 4;
|
2018-04-19 13:34:05 +08:00
|
|
|
let ResourceCycles = [1,1,2];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup51_16], (instrs IMUL16r, MUL16r)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup52 : SchedWriteRes<[SKLPort5,SKLPort01]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup52], (instregex "VPSLLDYrr",
|
|
|
|
"VPSLLQYrr",
|
|
|
|
"VPSLLWYrr",
|
|
|
|
"VPSRADYrr",
|
|
|
|
"VPSRAWYrr",
|
|
|
|
"VPSRLDYrr",
|
|
|
|
"VPSRLQYrr",
|
|
|
|
"VPSRLWYrr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup53 : SchedWriteRes<[SKLPort4,SKLPort5,SKLPort237]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup53], (instregex "IST(T?)_FP(16|32|64)m",
|
|
|
|
"IST_F(16|32)m")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup54 : SchedWriteRes<[SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [4];
|
|
|
|
}
|
2018-04-24 00:10:50 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup54], (instrs FNCLEX)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup55 : SchedWriteRes<[SKLPort6,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,3];
|
|
|
|
}
|
2018-04-29 23:33:15 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup55], (instrs PAUSE)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup56 : SchedWriteRes<[SKLPort015,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,3];
|
|
|
|
}
|
2018-04-27 21:32:42 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup56], (instrs VZEROUPPER)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup57 : SchedWriteRes<[SKLPort1,SKLPort6,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,2];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup57], (instregex "LAR(16|32|64)rr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup58 : SchedWriteRes<[SKLPort23]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-04-21 20:15:42 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup58], (instregex "MOVSX(16|32|64)rm16",
|
2018-03-22 12:23:41 +08:00
|
|
|
"MOVSX(16|32|64)rm32",
|
|
|
|
"MOVSX(16|32|64)rm8",
|
|
|
|
"MOVZX(16|32|64)rm16",
|
|
|
|
"MOVZX(16|32|64)rm8",
|
2018-04-22 05:59:36 +08:00
|
|
|
"(V?)MOVDDUPrm")>; // TODO: Should this be SKLWriteResGroup67?
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup59 : SchedWriteRes<[SKLPort0,SKLPort5]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup59], (instregex "MMX_CVTPI2PDirr",
|
|
|
|
"(V?)CVTDQ2PDrr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup60 : SchedWriteRes<[SKLPort5,SKLPort015]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup60], (instregex "MMX_CVTPD2PIirr",
|
2018-03-22 12:23:41 +08:00
|
|
|
"MMX_CVTPS2PIirr",
|
|
|
|
"MMX_CVTTPD2PIirr",
|
|
|
|
"MMX_CVTTPS2PIirr",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)CVTPD2DQrr",
|
|
|
|
"(V?)CVTPD2PSrr",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VCVTPH2PSrr",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)CVTPS2PDrr",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VCVTPS2PHrr",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)CVTSD2SSrr",
|
|
|
|
"(V?)CVTSI642SDrr",
|
|
|
|
"(V?)CVTSI2SDrr",
|
|
|
|
"(V?)CVTSI2SSrr",
|
|
|
|
"(V?)CVTSS2SDrr",
|
|
|
|
"(V?)CVTTPD2DQrr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup61 : SchedWriteRes<[SKLPort1,SKLPort6,SKLPort06]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup61], (instregex "STR(16|32|64)r")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup62 : SchedWriteRes<[SKLPort1,SKLPort06,SKLPort0156]> {
|
2018-03-23 03:22:51 +08:00
|
|
|
let Latency = 4;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-23 03:22:51 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup62], (instrs IMUL32r, MUL32r, MULX32rr)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup63 : SchedWriteRes<[SKLPort06,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,4];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup63], (instregex "XSETBV")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup64 : SchedWriteRes<[SKLPort06,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [2,3];
|
|
|
|
}
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup64], (instregex "CMPXCHG(8|16|32|64)rr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup65 : SchedWriteRes<[SKLPort4,SKLPort237,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 5;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 6;
|
|
|
|
let ResourceCycles = [1,1,4];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup65], (instregex "PUSHF16",
|
|
|
|
"PUSHF64")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup67 : SchedWriteRes<[SKLPort23]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup67], (instregex "VBROADCASTSSrm",
|
|
|
|
"(V?)MOVSHDUPrm",
|
|
|
|
"(V?)MOVSLDUPrm",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VPBROADCASTDrm",
|
|
|
|
"VPBROADCASTQrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup68 : SchedWriteRes<[SKLPort0]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup68], (instregex "MMX_CVTPI2PSirr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup69 : SchedWriteRes<[SKLPort0,SKLPort23]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup69], (instregex "MMX_PADDSBirm",
|
|
|
|
"MMX_PADDSWirm",
|
|
|
|
"MMX_PADDUSBirm",
|
|
|
|
"MMX_PADDUSWirm",
|
|
|
|
"MMX_PAVGBirm",
|
|
|
|
"MMX_PAVGWirm",
|
|
|
|
"MMX_PCMPEQBirm",
|
|
|
|
"MMX_PCMPEQDirm",
|
|
|
|
"MMX_PCMPEQWirm",
|
|
|
|
"MMX_PCMPGTBirm",
|
|
|
|
"MMX_PCMPGTDirm",
|
|
|
|
"MMX_PCMPGTWirm",
|
|
|
|
"MMX_PMAXSWirm",
|
|
|
|
"MMX_PMAXUBirm",
|
|
|
|
"MMX_PMINSWirm",
|
|
|
|
"MMX_PMINUBirm",
|
|
|
|
"MMX_PSUBSBirm",
|
|
|
|
"MMX_PSUBSWirm",
|
|
|
|
"MMX_PSUBUSBirm",
|
|
|
|
"MMX_PSUBUSWirm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup70 : SchedWriteRes<[SKLPort0,SKLPort01]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup70], (instregex "(V?)CVTSD2SI64rr",
|
|
|
|
"(V?)CVTSD2SIrr",
|
|
|
|
"(V?)CVTSS2SI64rr",
|
|
|
|
"(V?)CVTSS2SIrr",
|
|
|
|
"(V?)CVTTSD2SI64rr",
|
|
|
|
"(V?)CVTTSD2SIrr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup72 : SchedWriteRes<[SKLPort6,SKLPort23]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup72], (instregex "FARJMP64",
|
|
|
|
"JMP(16|32|64)m")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup73 : SchedWriteRes<[SKLPort23,SKLPort05]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-04-20 01:32:10 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup73], (instregex "MMX_PABS(B|D|W)rm",
|
|
|
|
"MMX_PADD(B|D|Q|W)irm",
|
2018-03-22 12:23:41 +08:00
|
|
|
"MMX_PANDNirm",
|
|
|
|
"MMX_PANDirm",
|
|
|
|
"MMX_PORirm",
|
2018-04-20 01:32:10 +08:00
|
|
|
"MMX_PSIGN(B|D|W)rm",
|
|
|
|
"MMX_PSUB(B|D|Q|W)irm",
|
2018-03-22 12:23:41 +08:00
|
|
|
"MMX_PXORirm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup74 : SchedWriteRes<[SKLPort23,SKLPort06]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-04-24 06:19:55 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup74], (instregex "BT(16|32|64)mi8")>;
|
2018-04-07 01:12:18 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup74, ReadAfterLd], (instrs ADC8rm, ADC16rm, ADC32rm, ADC64rm,
|
|
|
|
ADCX32rm, ADCX64rm,
|
|
|
|
ADOX32rm, ADOX64rm,
|
|
|
|
SBB8rm, SBB16rm, SBB32rm, SBB64rm)>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup75 : SchedWriteRes<[SKLPort23,SKLPort15]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup75], (instregex "ANDN(32|64)rm",
|
|
|
|
"BLSI(32|64)rm",
|
|
|
|
"BLSMSK(32|64)rm",
|
|
|
|
"BLSR(32|64)rm",
|
|
|
|
"MOVBE(16|32|64)rm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup76 : SchedWriteRes<[SKLPort23,SKLPort0156]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup76], (instrs POP16r, POP32r, POP64r)>;
|
2018-04-07 00:16:48 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup76], (instregex "POP(16|32|64)rmr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup78 : SchedWriteRes<[SKLPort5,SKLPort01]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup78], (instregex "(V?)CVTSI642SSrr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup79 : SchedWriteRes<[SKLPort1,SKLPort06,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 6;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,2,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup79], (instregex "SHLD(16|32|64)rrCL",
|
|
|
|
"SHRD(16|32|64)rrCL")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup80 : SchedWriteRes<[SKLPort1,SKLPort6,SKLPort06,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 6;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup80], (instregex "SLDT(16|32|64)r")>;
|
|
|
|
|
|
|
|
def SKLWriteResGroup82 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort06]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 4;
|
2017-10-17 14:47:04 +08:00
|
|
|
let ResourceCycles = [1,1,1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup82], (instregex "BTC(16|32|64)mi8",
|
|
|
|
"BTR(16|32|64)mi8",
|
|
|
|
"BTS(16|32|64)mi8",
|
|
|
|
"SAR(8|16|32|64)m1",
|
|
|
|
"SAR(8|16|32|64)mi",
|
|
|
|
"SHL(8|16|32|64)m1",
|
|
|
|
"SHL(8|16|32|64)mi",
|
|
|
|
"SHR(8|16|32|64)m1",
|
|
|
|
"SHR(8|16|32|64)mi")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup83 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
2018-04-07 00:16:48 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup83], (instregex "POP(16|32|64)rmm",
|
|
|
|
"PUSH(16|32|64)rmm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup84 : SchedWriteRes<[SKLPort6,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 6;
|
|
|
|
let ResourceCycles = [1,5];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup84], (instregex "STD")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup85 : SchedWriteRes<[SKLPort23]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup85], (instregex "LD_F(32|64|80)m",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VBROADCASTF128",
|
|
|
|
"VBROADCASTI128",
|
|
|
|
"VBROADCASTSDYrm",
|
|
|
|
"VBROADCASTSSYrm",
|
|
|
|
"VLDDQUYrm",
|
|
|
|
"VMOVAPDYrm",
|
|
|
|
"VMOVAPSYrm",
|
|
|
|
"VMOVDDUPYrm",
|
|
|
|
"VMOVDQAYrm",
|
|
|
|
"VMOVDQUYrm",
|
|
|
|
"VMOVNTDQAYrm",
|
|
|
|
"VMOVSHDUPYrm",
|
|
|
|
"VMOVSLDUPYrm",
|
|
|
|
"VMOVUPDYrm",
|
|
|
|
"VMOVUPSYrm",
|
|
|
|
"VPBROADCASTDYrm",
|
|
|
|
"VPBROADCASTQYrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup86 : SchedWriteRes<[SKLPort0,SKLPort5]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup86], (instregex "VCVTDQ2PDYrr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup88 : SchedWriteRes<[SKLPort5,SKLPort23]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup88], (instregex "(V?)INSERTPSrm",
|
|
|
|
"(V?)PACKSSDWrm",
|
|
|
|
"(V?)PACKSSWBrm",
|
|
|
|
"(V?)PACKUSDWrm",
|
|
|
|
"(V?)PACKUSWBrm",
|
|
|
|
"(V?)PALIGNRrmi",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VPBROADCASTBrm",
|
|
|
|
"VPBROADCASTWrm",
|
|
|
|
"VPERMILPDmi",
|
|
|
|
"VPERMILPDrm",
|
|
|
|
"VPERMILPSmi",
|
|
|
|
"VPERMILPSrm",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)PSHUFBrm",
|
|
|
|
"(V?)PSHUFDmi",
|
|
|
|
"(V?)PSHUFHWmi",
|
|
|
|
"(V?)PSHUFLWmi",
|
|
|
|
"(V?)PUNPCKHBWrm",
|
|
|
|
"(V?)PUNPCKHDQrm",
|
|
|
|
"(V?)PUNPCKHQDQrm",
|
|
|
|
"(V?)PUNPCKHWDrm",
|
|
|
|
"(V?)PUNPCKLBWrm",
|
|
|
|
"(V?)PUNPCKLDQrm",
|
|
|
|
"(V?)PUNPCKLQDQrm",
|
|
|
|
"(V?)PUNPCKLWDrm",
|
|
|
|
"(V?)SHUFPDrmi",
|
|
|
|
"(V?)SHUFPSrmi",
|
|
|
|
"(V?)UNPCKHPDrm",
|
|
|
|
"(V?)UNPCKHPSrm",
|
|
|
|
"(V?)UNPCKLPDrm",
|
|
|
|
"(V?)UNPCKLPSrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup89 : SchedWriteRes<[SKLPort5,SKLPort01]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup89], (instregex "VCVTPD2DQYrr",
|
|
|
|
"VCVTPD2PSYrr",
|
|
|
|
"VCVTPH2PSYrr",
|
|
|
|
"VCVTPS2PDYrr",
|
|
|
|
"VCVTPS2PHYrr",
|
|
|
|
"VCVTTPD2DQYrr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup90 : SchedWriteRes<[SKLPort01,SKLPort23]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup90], (instregex "(V?)PABSBrm",
|
|
|
|
"(V?)PABSDrm",
|
|
|
|
"(V?)PABSWrm",
|
|
|
|
"(V?)PADDSBrm",
|
|
|
|
"(V?)PADDSWrm",
|
|
|
|
"(V?)PADDUSBrm",
|
|
|
|
"(V?)PADDUSWrm",
|
|
|
|
"(V?)PAVGBrm",
|
|
|
|
"(V?)PAVGWrm",
|
|
|
|
"(V?)PCMPEQBrm",
|
|
|
|
"(V?)PCMPEQDrm",
|
|
|
|
"(V?)PCMPEQQrm",
|
|
|
|
"(V?)PCMPEQWrm",
|
|
|
|
"(V?)PCMPGTBrm",
|
|
|
|
"(V?)PCMPGTDrm",
|
|
|
|
"(V?)PCMPGTWrm",
|
|
|
|
"(V?)PMAXSBrm",
|
|
|
|
"(V?)PMAXSDrm",
|
|
|
|
"(V?)PMAXSWrm",
|
|
|
|
"(V?)PMAXUBrm",
|
|
|
|
"(V?)PMAXUDrm",
|
|
|
|
"(V?)PMAXUWrm",
|
|
|
|
"(V?)PMINSBrm",
|
|
|
|
"(V?)PMINSDrm",
|
|
|
|
"(V?)PMINSWrm",
|
|
|
|
"(V?)PMINUBrm",
|
|
|
|
"(V?)PMINUDrm",
|
|
|
|
"(V?)PMINUWrm",
|
|
|
|
"(V?)PSIGNBrm",
|
|
|
|
"(V?)PSIGNDrm",
|
|
|
|
"(V?)PSIGNWrm",
|
|
|
|
"(V?)PSLLDrm",
|
|
|
|
"(V?)PSLLQrm",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VPSLLVDrm",
|
|
|
|
"VPSLLVQrm",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)PSLLWrm",
|
|
|
|
"(V?)PSRADrm",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VPSRAVDrm",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)PSRAWrm",
|
|
|
|
"(V?)PSRLDrm",
|
|
|
|
"(V?)PSRLQrm",
|
|
|
|
"(V?)PSRLVDrm",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VPSRLVQrm",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)PSRLWrm",
|
|
|
|
"(V?)PSUBSBrm",
|
|
|
|
"(V?)PSUBSWrm",
|
|
|
|
"(V?)PSUBUSBrm",
|
|
|
|
"(V?)PSUBUSWrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup91 : SchedWriteRes<[SKLPort23,SKLPort015]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-04-23 02:35:53 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup91], (instregex "(V?)INSERTF128rm",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)INSERTI128rm",
|
|
|
|
"(V?)MASKMOVPDrm",
|
|
|
|
"(V?)MASKMOVPSrm",
|
|
|
|
"(V?)PADDBrm",
|
|
|
|
"(V?)PADDDrm",
|
|
|
|
"(V?)PADDQrm",
|
|
|
|
"(V?)PADDWrm",
|
|
|
|
"(V?)PBLENDDrmi",
|
|
|
|
"(V?)PMASKMOVDrm",
|
|
|
|
"(V?)PMASKMOVQrm",
|
|
|
|
"(V?)PSUBBrm",
|
|
|
|
"(V?)PSUBDrm",
|
|
|
|
"(V?)PSUBQrm",
|
2018-04-21 05:16:05 +08:00
|
|
|
"(V?)PSUBWrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup92 : SchedWriteRes<[SKLPort5,SKLPort23]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup92], (instregex "MMX_PACKSSDWirm",
|
|
|
|
"MMX_PACKSSWBirm",
|
|
|
|
"MMX_PACKUSWBirm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup93 : SchedWriteRes<[SKLPort23,SKLPort06]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
2018-01-19 13:47:32 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup93], (instregex "CMOV(A|BE)(16|32|64)rm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup94 : SchedWriteRes<[SKLPort23,SKLPort0156]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
2018-04-06 05:16:26 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup94], (instrs LEAVE, LEAVE64,
|
|
|
|
SCASB, SCASL, SCASQ, SCASW)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup95 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort01]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup95], (instregex "(V?)CVTTSS2SI64rr",
|
|
|
|
"(V?)CVTTSS2SIrr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup96 : SchedWriteRes<[SKLPort0,SKLPort23,SKLPort05]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup96], (instregex "FLDCW16m")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup98 : SchedWriteRes<[SKLPort6,SKLPort23,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 7;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup98], (instregex "LRETQ",
|
|
|
|
"RETQ")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup100 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort06]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,1,1,2];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup100], (instregex "ROL(8|16|32|64)m1",
|
|
|
|
"ROL(8|16|32|64)mi",
|
|
|
|
"ROR(8|16|32|64)m1",
|
|
|
|
"ROR(8|16|32|64)mi")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup101 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort0156]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,1,1,2];
|
|
|
|
}
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup101], (instregex "XADD(8|16|32|64)rm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup102 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort23,SKLPort237,SKLPort0156]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,1,1,1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup102], (instregex "CALL(16|32|64)m",
|
|
|
|
"FARCALL64")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup103 : SchedWriteRes<[SKLPort6,SKLPort06,SKLPort15,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 7;
|
|
|
|
let ResourceCycles = [1,3,1,2];
|
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup103], (instrs LOOP)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup105 : SchedWriteRes<[SKLPort01]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup105], (instregex "(V?)ROUNDPD(Y?)r",
|
|
|
|
"(V?)ROUNDPS(Y?)r",
|
|
|
|
"(V?)ROUNDSDr",
|
|
|
|
"(V?)ROUNDSSr")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup106 : SchedWriteRes<[SKLPort0,SKLPort23]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 8;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup106], (instregex "VTESTPDrm",
|
|
|
|
"VTESTPSrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup107 : SchedWriteRes<[SKLPort1,SKLPort23]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-27 02:19:28 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup107], (instregex "PDEP(32|64)rm",
|
|
|
|
"PEXT(32|64)rm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup107_16 : SchedWriteRes<[SKLPort1, SKLPort0156, SKLPort23]> {
|
2018-01-25 14:57:42 +08:00
|
|
|
let Latency = 8;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 3;
|
2018-03-25 04:40:14 +08:00
|
|
|
let ResourceCycles = [1,1,1];
|
2017-10-17 14:47:04 +08:00
|
|
|
}
|
2018-04-19 13:34:05 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup107_16], (instrs IMUL16rmi, IMUL16rmi8)>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-04-19 13:34:05 +08:00
|
|
|
def SKLWriteResGroup107_16_2 : SchedWriteRes<[SKLPort1, SKLPort06, SKLPort0156, SKLPort23]> {
|
|
|
|
let Latency = 9;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 5;
|
2018-04-19 13:34:05 +08:00
|
|
|
let ResourceCycles = [1,1,2,1];
|
2017-10-17 14:47:04 +08:00
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup107_16_2], (instrs IMUL16m, MUL16m)>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup108 : SchedWriteRes<[SKLPort5,SKLPort23]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup108], (instregex "FCOM32m",
|
|
|
|
"FCOM64m",
|
|
|
|
"FCOMP32m",
|
|
|
|
"FCOMP64m",
|
|
|
|
"VPACKSSDWYrm",
|
|
|
|
"VPACKSSWBYrm",
|
|
|
|
"VPACKUSDWYrm",
|
|
|
|
"VPACKUSWBYrm",
|
|
|
|
"VPALIGNRYrmi",
|
|
|
|
"VPBLENDWYrmi",
|
|
|
|
"VPBROADCASTBYrm",
|
|
|
|
"VPBROADCASTWYrm",
|
|
|
|
"VPERMILPDYmi",
|
|
|
|
"VPERMILPDYrm",
|
|
|
|
"VPERMILPSYmi",
|
|
|
|
"VPERMILPSYrm",
|
|
|
|
"VPMOVSXBDYrm",
|
|
|
|
"VPMOVSXBQYrm",
|
|
|
|
"VPMOVSXWQYrm",
|
|
|
|
"VPSHUFBYrm",
|
|
|
|
"VPSHUFDYmi",
|
|
|
|
"VPSHUFHWYmi",
|
|
|
|
"VPSHUFLWYmi",
|
|
|
|
"VPUNPCKHBWYrm",
|
|
|
|
"VPUNPCKHDQYrm",
|
|
|
|
"VPUNPCKHQDQYrm",
|
|
|
|
"VPUNPCKHWDYrm",
|
|
|
|
"VPUNPCKLBWYrm",
|
|
|
|
"VPUNPCKLDQYrm",
|
|
|
|
"VPUNPCKLQDQYrm",
|
|
|
|
"VPUNPCKLWDYrm",
|
|
|
|
"VSHUFPDYrmi",
|
|
|
|
"VSHUFPSYrmi",
|
|
|
|
"VUNPCKHPDYrm",
|
|
|
|
"VUNPCKHPSYrm",
|
|
|
|
"VUNPCKLPDYrm",
|
|
|
|
"VUNPCKLPSYrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup109 : SchedWriteRes<[SKLPort01,SKLPort23]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup109], (instregex "VPABSBYrm",
|
|
|
|
"VPABSDYrm",
|
|
|
|
"VPABSWYrm",
|
|
|
|
"VPADDSBYrm",
|
|
|
|
"VPADDSWYrm",
|
|
|
|
"VPADDUSBYrm",
|
|
|
|
"VPADDUSWYrm",
|
|
|
|
"VPAVGBYrm",
|
|
|
|
"VPAVGWYrm",
|
|
|
|
"VPCMPEQBYrm",
|
|
|
|
"VPCMPEQDYrm",
|
|
|
|
"VPCMPEQQYrm",
|
|
|
|
"VPCMPEQWYrm",
|
|
|
|
"VPCMPGTBYrm",
|
|
|
|
"VPCMPGTDYrm",
|
|
|
|
"VPCMPGTWYrm",
|
|
|
|
"VPMAXSBYrm",
|
|
|
|
"VPMAXSDYrm",
|
|
|
|
"VPMAXSWYrm",
|
|
|
|
"VPMAXUBYrm",
|
|
|
|
"VPMAXUDYrm",
|
|
|
|
"VPMAXUWYrm",
|
|
|
|
"VPMINSBYrm",
|
|
|
|
"VPMINSDYrm",
|
|
|
|
"VPMINSWYrm",
|
|
|
|
"VPMINUBYrm",
|
|
|
|
"VPMINUDYrm",
|
|
|
|
"VPMINUWYrm",
|
|
|
|
"VPSIGNBYrm",
|
|
|
|
"VPSIGNDYrm",
|
|
|
|
"VPSIGNWYrm",
|
|
|
|
"VPSLLDYrm",
|
|
|
|
"VPSLLQYrm",
|
|
|
|
"VPSLLVDYrm",
|
|
|
|
"VPSLLVQYrm",
|
|
|
|
"VPSLLWYrm",
|
|
|
|
"VPSRADYrm",
|
|
|
|
"VPSRAVDYrm",
|
|
|
|
"VPSRAWYrm",
|
|
|
|
"VPSRLDYrm",
|
|
|
|
"VPSRLQYrm",
|
|
|
|
"VPSRLVDYrm",
|
|
|
|
"VPSRLVQYrm",
|
|
|
|
"VPSRLWYrm",
|
|
|
|
"VPSUBSBYrm",
|
|
|
|
"VPSUBSWYrm",
|
|
|
|
"VPSUBUSBYrm",
|
|
|
|
"VPSUBUSWYrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup110 : SchedWriteRes<[SKLPort23,SKLPort015]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-04-28 02:19:48 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup110], (instregex "VMASKMOVPDYrm",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VMASKMOVPSYrm",
|
|
|
|
"VPADDBYrm",
|
|
|
|
"VPADDDYrm",
|
|
|
|
"VPADDQYrm",
|
|
|
|
"VPADDWYrm",
|
|
|
|
"VPANDNYrm",
|
|
|
|
"VPANDYrm",
|
|
|
|
"VPBLENDDYrmi",
|
|
|
|
"VPMASKMOVDYrm",
|
|
|
|
"VPMASKMOVQYrm",
|
|
|
|
"VPORYrm",
|
|
|
|
"VPSUBBYrm",
|
|
|
|
"VPSUBDYrm",
|
|
|
|
"VPSUBQYrm",
|
|
|
|
"VPSUBWYrm",
|
2018-04-27 23:50:33 +08:00
|
|
|
"VPXORYrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup112 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,2,1];
|
|
|
|
}
|
2018-04-20 01:32:10 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup112], (instregex "MMX_PH(ADD|SUB)SWrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup113 : SchedWriteRes<[SKLPort5,SKLPort23,SKLPort05]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [2,1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-04-20 01:32:10 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup113], (instregex "MMX_PH(ADD|SUB)(D|W)rm")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup114 : SchedWriteRes<[SKLPort4,SKLPort5,SKLPort237,SKLPort01]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 8;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup114], (instregex "VCVTPS2PHYmr")>;
|
|
|
|
|
|
|
|
def SKLWriteResGroup115 : SchedWriteRes<[SKLPort23,SKLPort237,SKLPort06]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,1,3];
|
|
|
|
}
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup115], (instregex "ROR(8|16|32|64)mCL")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup116 : SchedWriteRes<[SKLPort23,SKLPort237,SKLPort06,SKLPort0156]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,1,1,2];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup116], (instregex "RCL(8|16|32|64)m1",
|
|
|
|
"RCL(8|16|32|64)mi",
|
|
|
|
"RCR(8|16|32|64)m1",
|
|
|
|
"RCR(8|16|32|64)mi")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup117 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort06]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 6;
|
|
|
|
let ResourceCycles = [1,1,1,3];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup117], (instregex "ROL(8|16|32|64)mCL",
|
|
|
|
"SAR(8|16|32|64)mCL",
|
|
|
|
"SHL(8|16|32|64)mCL",
|
|
|
|
"SHR(8|16|32|64)mCL")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup119 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort06,SKLPort0156]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 6;
|
|
|
|
let ResourceCycles = [1,1,1,2,1];
|
|
|
|
}
|
2018-04-02 05:54:24 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup119], (instregex "ADC(8|16|32|64)mi",
|
2018-03-22 12:23:41 +08:00
|
|
|
"CMPXCHG(8|16|32|64)rm",
|
2018-04-07 01:12:18 +08:00
|
|
|
"SBB(8|16|32|64)mi")>;
|
|
|
|
def: InstRW<[SKLWriteResGroup119, ReadAfterLd], (instrs ADC8mr, ADC16mr, ADC32mr, ADC64mr,
|
|
|
|
SBB8mr, SBB16mr, SBB32mr, SBB64mr)>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup120 : SchedWriteRes<[SKLPort0,SKLPort23]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup120], (instregex "MMX_CVTPI2PSirm",
|
|
|
|
"MMX_PMADDUBSWrm",
|
|
|
|
"MMX_PMADDWDirm",
|
|
|
|
"MMX_PMULHRSWrm",
|
|
|
|
"MMX_PMULHUWirm",
|
|
|
|
"MMX_PMULHWirm",
|
|
|
|
"MMX_PMULLWirm",
|
|
|
|
"MMX_PMULUDQirm",
|
|
|
|
"VTESTPDYrm",
|
|
|
|
"VTESTPSYrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup121 : SchedWriteRes<[SKLPort5,SKLPort23]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup121], (instregex "(V?)PCMPGTQrm",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VPMOVSXBWYrm",
|
|
|
|
"VPMOVSXDQYrm",
|
|
|
|
"VPMOVSXWDYrm",
|
|
|
|
"VPMOVZXWDYrm",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)PSADBWrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup122 : SchedWriteRes<[SKLPort01,SKLPort23]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup122], (instregex "(V?)ADDSDrm",
|
|
|
|
"(V?)ADDSSrm",
|
|
|
|
"(V?)CMPSDrm",
|
|
|
|
"(V?)CMPSSrm",
|
|
|
|
"(V?)MAX(C?)SDrm",
|
|
|
|
"(V?)MAX(C?)SSrm",
|
|
|
|
"(V?)MIN(C?)SDrm",
|
|
|
|
"(V?)MIN(C?)SSrm",
|
|
|
|
"(V?)MULSDrm",
|
|
|
|
"(V?)MULSSrm",
|
|
|
|
"(V?)SUBSDrm",
|
|
|
|
"(V?)SUBSSrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup123 : SchedWriteRes<[SKLPort23,SKLPort01]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup123], (instregex "MMX_CVTPS2PIirm",
|
2018-03-22 12:23:41 +08:00
|
|
|
"MMX_CVTTPS2PIirm",
|
|
|
|
"VCVTPH2PSrm",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)CVTPS2PDrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup124 : SchedWriteRes<[SKLPort5,SKLPort01]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 9;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup124], (instregex "(V?)DPPDrri")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup126 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup126], (instregex "(V?)PTESTrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup127 : SchedWriteRes<[SKLPort1,SKLPort5,SKLPort23]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-23 03:22:51 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup127], (instrs IMUL64m, MUL64m, MULX64rm)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup128 : SchedWriteRes<[SKLPort5,SKLPort01,SKLPort23]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 4;
|
2017-10-17 14:47:04 +08:00
|
|
|
let ResourceCycles = [2,1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup128], (instregex "(V?)PHADDSWrm",
|
|
|
|
"(V?)PHSUBSWrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup129 : SchedWriteRes<[SKLPort5,SKLPort23,SKLPort015]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [2,1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup129], (instregex "(V?)PHADDDrm",
|
|
|
|
"(V?)PHADDWrm",
|
|
|
|
"(V?)PHSUBDrm",
|
|
|
|
"(V?)PHSUBWrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup130 : SchedWriteRes<[SKLPort1,SKLPort23,SKLPort237,SKLPort0156]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup130], (instregex "SHLD(16|32|64)mri8",
|
|
|
|
"SHRD(16|32|64)mri8")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup131 : SchedWriteRes<[SKLPort1,SKLPort6,SKLPort23,SKLPort0156]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,2,1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup131], (instregex "LAR(16|32|64)rm",
|
|
|
|
"LSL(16|32|64)rm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup132 : SchedWriteRes<[SKLPort0,SKLPort23]> {
|
|
|
|
let Latency = 10;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 21:18:08 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup132], (instregex "(V?)RCPPSm",
|
2018-03-22 12:23:41 +08:00
|
|
|
"(V?)RSQRTPSm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup133 : SchedWriteRes<[SKLPort5,SKLPort23]> {
|
|
|
|
let Latency = 10;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup133], (instregex "(ADD|SUB|SUBR)_F(32|64)m",
|
|
|
|
"ILD_F(16|32|64)m",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VPCMPGTQYrm",
|
|
|
|
"VPERM2F128rm",
|
|
|
|
"VPERM2I128rm",
|
|
|
|
"VPERMDYrm",
|
|
|
|
"VPERMPDYmi",
|
|
|
|
"VPERMPSYrm",
|
|
|
|
"VPERMQYmi",
|
|
|
|
"VPMOVZXBDYrm",
|
|
|
|
"VPMOVZXBQYrm",
|
|
|
|
"VPMOVZXBWYrm",
|
|
|
|
"VPMOVZXDQYrm",
|
|
|
|
"VPMOVZXWQYrm",
|
|
|
|
"VPSADBWYrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup134 : SchedWriteRes<[SKLPort01,SKLPort23]> {
|
|
|
|
let Latency = 10;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup134], (instregex "(V?)ADDPDrm",
|
|
|
|
"(V?)ADDPSrm",
|
|
|
|
"(V?)ADDSUBPDrm",
|
|
|
|
"(V?)ADDSUBPSrm",
|
|
|
|
"(V?)CVTDQ2PSrm",
|
|
|
|
"(V?)CVTPH2PSYrm",
|
|
|
|
"(V?)CVTPS2DQrm",
|
|
|
|
"(V?)CVTSS2SDrm",
|
|
|
|
"(V?)CVTTPS2DQrm",
|
|
|
|
"(V?)MULPDrm",
|
|
|
|
"(V?)MULPSrm",
|
|
|
|
"(V?)PMADDUBSWrm",
|
|
|
|
"(V?)PMADDWDrm",
|
|
|
|
"(V?)PMULDQrm",
|
|
|
|
"(V?)PMULHRSWrm",
|
|
|
|
"(V?)PMULHUWrm",
|
|
|
|
"(V?)PMULHWrm",
|
|
|
|
"(V?)PMULLWrm",
|
|
|
|
"(V?)PMULUDQrm",
|
|
|
|
"(V?)SUBPDrm",
|
|
|
|
"(V?)SUBPSrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup138 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
|
|
|
|
let Latency = 10;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup138], (instregex "MMX_CVTPI2PDirm",
|
|
|
|
"VPTESTYrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup139 : SchedWriteRes<[SKLPort5,SKLPort23,SKLPort01]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 10;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup139], (instregex "(V?)CVTSD2SSrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup140 : SchedWriteRes<[SKLPort5,SKLPort01,SKLPort23]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 10;
|
|
|
|
let NumMicroOps = 4;
|
2017-10-17 14:47:04 +08:00
|
|
|
let ResourceCycles = [2,1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup140], (instregex "VPHADDSWYrm",
|
|
|
|
"VPHSUBSWYrm")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup141 : SchedWriteRes<[SKLPort5,SKLPort23,SKLPort015]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 10;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [2,1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup141], (instregex "VPHADDDYrm",
|
|
|
|
"VPHADDWYrm",
|
|
|
|
"VPHSUBDYrm",
|
|
|
|
"VPHSUBWYrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup142 : SchedWriteRes<[SKLPort1,SKLPort23,SKLPort06,SKLPort0156]> {
|
2018-03-23 03:22:51 +08:00
|
|
|
let Latency = 9;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
2018-04-19 13:34:05 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup142], (instrs IMUL32m, MUL32m, MULX32rm)>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup143 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort23,SKLPort237,SKLPort06,SKLPort0156]> {
|
|
|
|
let Latency = 10;
|
|
|
|
let NumMicroOps = 8;
|
|
|
|
let ResourceCycles = [1,1,1,1,1,3];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup143], (instregex "XCHG(8|16|32|64)rm")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup144 : SchedWriteRes<[SKLPort05,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 10;
|
|
|
|
let NumMicroOps = 10;
|
2017-10-17 14:47:04 +08:00
|
|
|
let ResourceCycles = [9,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup144], (instregex "MMX_EMMS")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup145 : SchedWriteRes<[SKLPort0,SKLFPDivider]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 1;
|
2018-04-02 13:33:28 +08:00
|
|
|
let ResourceCycles = [1,3];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-04-02 13:33:28 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup145], (instregex "(V?)DIVPSrr",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)DIVSSrr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup145_1 : SchedWriteRes<[SKLPort0,SKLFPDivider]> {
|
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1,5];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup145_1], (instregex "VDIVPSYrr")>;
|
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup146 : SchedWriteRes<[SKLPort0,SKLPort23]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup146], (instregex "MUL_F(32|64)m",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VRCPPSYm",
|
|
|
|
"VRSQRTPSYm")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup147 : SchedWriteRes<[SKLPort01,SKLPort23]> {
|
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup147], (instregex "VADDPDYrm",
|
|
|
|
"VADDPSYrm",
|
|
|
|
"VADDSUBPDYrm",
|
|
|
|
"VADDSUBPSYrm",
|
2018-03-23 05:10:07 +08:00
|
|
|
"VCMPPDYrmi",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VCMPPSYrmi",
|
|
|
|
"VCVTDQ2PSYrm",
|
|
|
|
"VCVTPS2DQYrm",
|
|
|
|
"VCVTPS2PDYrm",
|
|
|
|
"VCVTTPS2DQYrm",
|
|
|
|
"VMAX(C?)PDYrm",
|
|
|
|
"VMAX(C?)PSYrm",
|
|
|
|
"VMIN(C?)PDYrm",
|
|
|
|
"VMIN(C?)PSYrm",
|
2018-03-23 05:10:07 +08:00
|
|
|
"VMULPDYrm",
|
|
|
|
"VMULPSYrm",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VPMADDUBSWYrm",
|
|
|
|
"VPMADDWDYrm",
|
|
|
|
"VPMULDQYrm",
|
|
|
|
"VPMULHRSWYrm",
|
|
|
|
"VPMULHUWYrm",
|
|
|
|
"VPMULHWYrm",
|
|
|
|
"VPMULLWYrm",
|
2018-03-23 05:10:07 +08:00
|
|
|
"VPMULUDQYrm",
|
|
|
|
"VSUBPDYrm",
|
|
|
|
"VSUBPSYrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup149 : SchedWriteRes<[SKLPort5,SKLPort23]> {
|
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup149], (instregex "FICOM16m",
|
|
|
|
"FICOM32m",
|
|
|
|
"FICOMP16m",
|
|
|
|
"FICOMP32m",
|
|
|
|
"VMPSADBWYrmi")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup150 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
|
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup150], (instregex "(V?)CVTDQ2PDrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup151 : SchedWriteRes<[SKLPort0,SKLPort23,SKLPort01]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup151], (instregex "(V?)CVTSD2SI64rm",
|
|
|
|
"(V?)CVTSD2SIrm",
|
|
|
|
"(V?)CVTSS2SI64rm",
|
|
|
|
"(V?)CVTSS2SIrm",
|
|
|
|
"(V?)CVTTSD2SI64rm",
|
|
|
|
"(V?)CVTTSD2SIrm",
|
2018-03-22 12:23:41 +08:00
|
|
|
"VCVTTSS2SI64rm",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)CVTTSS2SIrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup152 : SchedWriteRes<[SKLPort5,SKLPort23,SKLPort01]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup152], (instregex "CVTPD2DQrm",
|
|
|
|
"CVTPD2PSrm",
|
|
|
|
"CVTTPD2DQrm",
|
|
|
|
"MMX_CVTPD2PIirm",
|
|
|
|
"MMX_CVTTPD2PIirm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup153 : SchedWriteRes<[SKLPort1,SKLPort23,SKLPort237,SKLPort06,SKLPort0156]> {
|
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 6;
|
|
|
|
let ResourceCycles = [1,1,1,2,1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup153], (instregex "SHLD(16|32|64)mrCL",
|
|
|
|
"SHRD(16|32|64)mrCL")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup154 : SchedWriteRes<[SKLPort1,SKLPort06,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 7;
|
|
|
|
let ResourceCycles = [2,3,2];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup154], (instregex "RCL(16|32|64)rCL",
|
|
|
|
"RCR(16|32|64)rCL")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup155 : SchedWriteRes<[SKLPort1,SKLPort06,SKLPort15,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 9;
|
|
|
|
let ResourceCycles = [1,5,1,2];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup155], (instregex "RCL8rCL")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup156 : SchedWriteRes<[SKLPort06,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 11;
|
|
|
|
let ResourceCycles = [2,9];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup156], (instrs LOOPE, LOOPNE)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup157 : SchedWriteRes<[SKLPort0,SKLFPDivider]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 12;
|
|
|
|
let NumMicroOps = 1;
|
2018-04-02 13:33:28 +08:00
|
|
|
let ResourceCycles = [1,3];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-04-02 13:33:28 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup157], (instregex "(V?)SQRTPSr",
|
2018-03-26 13:05:10 +08:00
|
|
|
"(V?)SQRTSSr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup158 : SchedWriteRes<[SKLPort0,SKLFPDivider]> {
|
|
|
|
let Latency = 12;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1,6];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup158], (instregex "VSQRTPSYr")>;
|
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup160 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23,SKLPort01]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 12;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup160], (instregex "CVTTSS2SI64rm")>;
|
|
|
|
|
|
|
|
def SKLWriteResGroup162 : SchedWriteRes<[SKLPort5,SKLPort23]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 13;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup162], (instregex "(ADD|SUB|SUBR)_FI(16|32)m")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup163 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 13;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup163], (instregex "VCVTDQ2PDYrm")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup164 : SchedWriteRes<[SKLPort5,SKLPort01]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 13;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,3];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-25 04:40:14 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup164], (instregex "(V?)DPPS(Y?)rri")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup166 : SchedWriteRes<[SKLPort0,SKLFPDivider]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 14;
|
|
|
|
let NumMicroOps = 1;
|
2018-04-02 13:33:28 +08:00
|
|
|
let ResourceCycles = [1,3];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-04-02 13:33:28 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup166], (instregex "(V?)DIVPDrr",
|
2018-03-25 04:40:14 +08:00
|
|
|
"(V?)DIVSDrr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup166_1 : SchedWriteRes<[SKLPort0,SKLFPDivider]> {
|
|
|
|
let Latency = 14;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1,5];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup166_1], (instregex "VDIVPDYrr")>;
|
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup168 : SchedWriteRes<[SKLPort23,SKLPort01]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 14;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup168], (instregex "(V?)ROUNDPDm")>;
|
|
|
|
def: InstRW<[SKLWriteResGroup168], (instregex "(V?)ROUNDPSm")>;
|
|
|
|
def: InstRW<[SKLWriteResGroup168], (instregex "(V?)ROUNDSDm")>;
|
|
|
|
def: InstRW<[SKLWriteResGroup168], (instregex "(V?)ROUNDSSm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup169 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
|
|
|
|
let Latency = 14;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup169], (instregex "MUL_FI(16|32)m")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup170 : SchedWriteRes<[SKLPort1,SKLPort06,SKLPort15,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 14;
|
|
|
|
let NumMicroOps = 10;
|
|
|
|
let ResourceCycles = [2,4,1,3];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup170], (instregex "RCR8rCL")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup171 : SchedWriteRes<[SKLPort0]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 15;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup171], (instregex "DIVR_FPrST0",
|
|
|
|
"DIVR_FST0r",
|
|
|
|
"DIVR_FrST0")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup172 : SchedWriteRes<[SKLPort23,SKLPort01]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 15;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
2018-03-23 05:55:20 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup172], (instregex "VROUNDPDYm",
|
|
|
|
"VROUNDPSYm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-03-21 07:39:48 +08:00
|
|
|
def SKLWriteResGroup172_2 : SchedWriteRes<[SKLPort23,SKLPort01]> {
|
|
|
|
let Latency = 17;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup172_2], (instregex "VPMULLDYrm")>;
|
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup173 : SchedWriteRes<[SKLPort5,SKLPort23,SKLPort01]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 15;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,2];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup173], (instregex "(V?)DPPDrmi")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup174 : SchedWriteRes<[SKLPort1,SKLPort23,SKLPort237,SKLPort06,SKLPort15,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 15;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 10;
|
|
|
|
let ResourceCycles = [1,1,1,5,1,1];
|
|
|
|
}
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup174], (instregex "RCL(8|16|32|64)mCL")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup175 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 16;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 2;
|
2018-04-02 13:33:28 +08:00
|
|
|
let ResourceCycles = [1,1,3];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup175], (instregex "(V?)DIVSSrm")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup177 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort06,SKLPort15,SKLPort0156]> {
|
|
|
|
let Latency = 16;
|
|
|
|
let NumMicroOps = 14;
|
|
|
|
let ResourceCycles = [1,1,1,4,2,5];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup177], (instregex "CMPXCHG8B")>;
|
|
|
|
|
|
|
|
def SKLWriteResGroup178 : SchedWriteRes<[SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 16;
|
|
|
|
let NumMicroOps = 16;
|
|
|
|
let ResourceCycles = [16];
|
|
|
|
}
|
2018-04-27 21:32:42 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup178], (instrs VZEROALL)>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup179 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 17;
|
|
|
|
let NumMicroOps = 2;
|
2018-04-02 13:33:28 +08:00
|
|
|
let ResourceCycles = [1,1,5];
|
2017-10-17 14:47:04 +08:00
|
|
|
}
|
2018-04-02 13:33:28 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup179], (instregex "(V?)DIVPSrm")>;
|
|
|
|
|
|
|
|
def SKLWriteResGroup179_1 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
|
|
|
|
let Latency = 17;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1,3];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup179_1], (instregex "(V?)SQRTSSm")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup180 : SchedWriteRes<[SKLPort0,SKLPort1,SKLPort5,SKLPort6,SKLPort05,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 17;
|
|
|
|
let NumMicroOps = 15;
|
|
|
|
let ResourceCycles = [2,1,2,4,2,4];
|
|
|
|
}
|
2018-04-27 21:32:42 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup180], (instrs XCH_F)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup181 : SchedWriteRes<[SKLPort0,SKLFPDivider]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 18;
|
|
|
|
let NumMicroOps = 1;
|
2018-04-02 13:33:28 +08:00
|
|
|
let ResourceCycles = [1,6];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-04-02 13:33:28 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup181], (instregex "(V?)SQRTPDr",
|
2018-03-26 13:05:10 +08:00
|
|
|
"(V?)SQRTSDr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup181_1 : SchedWriteRes<[SKLPort0,SKLFPDivider]> {
|
|
|
|
let Latency = 18;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1,12];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup181_1], (instregex "VSQRTPDYr")>;
|
|
|
|
|
|
|
|
def SKLWriteResGroup182 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 18;
|
|
|
|
let NumMicroOps = 2;
|
2018-04-02 13:33:28 +08:00
|
|
|
let ResourceCycles = [1,1,5];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup182], (instregex "VDIVPSYrm")>;
|
|
|
|
|
|
|
|
def SKLWriteResGroup183 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
|
|
|
|
let Latency = 18;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1,3];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-04-02 13:33:28 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup183], (instregex "(V?)SQRTPSm")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup184 : SchedWriteRes<[SKLPort5,SKLPort6,SKLPort06,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 18;
|
|
|
|
let NumMicroOps = 8;
|
|
|
|
let ResourceCycles = [1,1,1,5];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup184], (instrs CPUID, RDTSC)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup185 : SchedWriteRes<[SKLPort1,SKLPort23,SKLPort237,SKLPort06,SKLPort15,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 18;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 11;
|
|
|
|
let ResourceCycles = [2,1,1,4,1,2];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup185], (instregex "RCR(8|16|32|64)mCL")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup186 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 19;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 2;
|
2018-04-02 13:33:28 +08:00
|
|
|
let ResourceCycles = [1,1,4];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup186], (instregex "(V?)DIVSDrm")>;
|
|
|
|
|
|
|
|
def SKLWriteResGroup186_1 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
|
|
|
|
let Latency = 19;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1,6];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-04-02 13:33:28 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup186_1], (instregex "VSQRTPSYm")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup187 : SchedWriteRes<[SKLPort5,SKLPort23,SKLPort01]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 19;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,1,3];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup187], (instregex "(V?)DPPSrmi")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup189 : SchedWriteRes<[SKLPort0]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 20;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup189], (instregex "DIV_FPrST0",
|
|
|
|
"DIV_FST0r",
|
2018-03-26 13:05:10 +08:00
|
|
|
"DIV_FrST0")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup190 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 20;
|
|
|
|
let NumMicroOps = 2;
|
2018-04-02 13:33:28 +08:00
|
|
|
let ResourceCycles = [1,1,4];
|
2017-09-19 14:19:27 +08:00
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup190], (instregex "(V?)DIVPDrm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-03-23 05:10:07 +08:00
|
|
|
def SKLWriteResGroup191 : SchedWriteRes<[SKLPort5,SKLPort23,SKLPort01]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 20;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,1,3];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup191], (instregex "VDPPSYrmi")>;
|
|
|
|
|
|
|
|
def SKLWriteResGroup192 : SchedWriteRes<[SKLPort4,SKLPort5,SKLPort6,SKLPort23,SKLPort237,SKLPort06,SKLPort0156]> {
|
|
|
|
let Latency = 20;
|
|
|
|
let NumMicroOps = 8;
|
|
|
|
let ResourceCycles = [1,1,1,1,1,1,2];
|
|
|
|
}
|
2018-04-27 21:32:42 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup192], (instrs INSB, INSL, INSW)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup193 : SchedWriteRes<[SKLPort5,SKLPort6,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 20;
|
|
|
|
let NumMicroOps = 10;
|
|
|
|
let ResourceCycles = [1,2,7];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup193], (instregex "MWAITrr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup195 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 21;
|
|
|
|
let NumMicroOps = 2;
|
2018-04-02 13:33:28 +08:00
|
|
|
let ResourceCycles = [1,1,8];
|
2017-10-17 14:47:04 +08:00
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup195], (instregex "VDIVPDYrm")>;
|
|
|
|
|
|
|
|
def SKLWriteResGroup196 : SchedWriteRes<[SKLPort0,SKLPort23]> {
|
|
|
|
let Latency = 22;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup196], (instregex "DIV_F(32|64)m")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup196_1 : SchedWriteRes<[SKLPort0, SKLPort23, SKLPort5, SKLPort015]> {
|
|
|
|
let Latency = 22;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,2,1,1];
|
|
|
|
}
|
2017-12-17 02:35:29 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup196_1], (instrs VGATHERDPSrm,
|
|
|
|
VGATHERDPDrm,
|
|
|
|
VGATHERQPDrm,
|
|
|
|
VGATHERQPSrm,
|
|
|
|
VPGATHERDDrm,
|
|
|
|
VPGATHERDQrm,
|
|
|
|
VPGATHERQDrm,
|
|
|
|
VPGATHERQQrm)>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup196_2 : SchedWriteRes<[SKLPort0, SKLPort23, SKLPort5, SKLPort015]> {
|
|
|
|
let Latency = 25;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,2,1,1];
|
|
|
|
}
|
2017-12-17 02:35:29 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup196_2], (instrs VGATHERDPSYrm,
|
|
|
|
VGATHERQPDYrm,
|
|
|
|
VGATHERQPSYrm,
|
|
|
|
VPGATHERDDYrm,
|
|
|
|
VPGATHERDQYrm,
|
|
|
|
VPGATHERQDYrm,
|
|
|
|
VPGATHERQQYrm,
|
|
|
|
VGATHERDPDYrm)>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup197 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 23;
|
|
|
|
let NumMicroOps = 2;
|
2018-04-02 13:33:28 +08:00
|
|
|
let ResourceCycles = [1,1,6];
|
2017-10-17 14:47:04 +08:00
|
|
|
}
|
2018-03-26 13:05:10 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup197], (instregex "(V?)SQRTSDm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup198 : SchedWriteRes<[SKLPort0,SKLPort4,SKLPort5,SKLPort23,SKLPort237,SKLPort06,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 23;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 19;
|
|
|
|
let ResourceCycles = [2,1,4,1,1,4,6];
|
|
|
|
}
|
|
|
|
def: InstRW<[SKLWriteResGroup198], (instregex "CMPXCHG16B")>;
|
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup199 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 24;
|
|
|
|
let NumMicroOps = 2;
|
2018-04-02 13:33:28 +08:00
|
|
|
let ResourceCycles = [1,1,6];
|
2017-10-17 14:47:04 +08:00
|
|
|
}
|
2018-03-26 13:05:10 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup199], (instregex "(V?)SQRTPDm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
2018-04-02 13:33:28 +08:00
|
|
|
def SKLWriteResGroup201 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
|
2017-10-17 14:47:04 +08:00
|
|
|
let Latency = 25;
|
|
|
|
let NumMicroOps = 2;
|
2018-04-02 13:33:28 +08:00
|
|
|
let ResourceCycles = [1,1,12];
|
2017-10-17 14:47:04 +08:00
|
|
|
}
|
2018-03-26 13:05:10 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup201], (instregex "VSQRTPDYm")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup202 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
|
|
|
|
let Latency = 25;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup202], (instregex "DIV_FI(16|32)m")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup206 : SchedWriteRes<[SKLPort0,SKLPort23]> {
|
|
|
|
let Latency = 27;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup206], (instregex "DIVR_F(32|64)m")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup207 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23,SKLPort0156]> {
|
|
|
|
let Latency = 28;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 8;
|
|
|
|
let ResourceCycles = [2,4,1,1];
|
|
|
|
}
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup207], (instregex "IDIV(8|16|32|64)m")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup208 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 30;
|
2017-10-17 14:47:04 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup208], (instregex "DIVR_FI(16|32)m")>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup209 : SchedWriteRes<[SKLPort5,SKLPort6,SKLPort23,SKLPort06,SKLPort0156]> {
|
|
|
|
let Latency = 35;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 23;
|
|
|
|
let ResourceCycles = [1,5,3,4,10];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup209], (instregex "IN(8|16|32)ri",
|
|
|
|
"IN(8|16|32)rr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup210 : SchedWriteRes<[SKLPort5,SKLPort6,SKLPort23,SKLPort237,SKLPort06,SKLPort0156]> {
|
|
|
|
let Latency = 35;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 23;
|
|
|
|
let ResourceCycles = [1,5,2,1,4,10];
|
|
|
|
}
|
2018-03-22 12:23:41 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup210], (instregex "OUT(8|16|32)ir",
|
|
|
|
"OUT(8|16|32)rr")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup211 : SchedWriteRes<[SKLPort1,SKLPort6,SKLPort23,SKLPort0156]> {
|
|
|
|
let Latency = 37;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 31;
|
|
|
|
let ResourceCycles = [1,8,1,21];
|
|
|
|
}
|
2017-12-10 09:24:08 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup211], (instregex "XRSTOR(64)?")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup212 : SchedWriteRes<[SKLPort1,SKLPort4,SKLPort5,SKLPort6,SKLPort23,SKLPort237,SKLPort15,SKLPort0156]> {
|
|
|
|
let Latency = 40;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 18;
|
|
|
|
let ResourceCycles = [1,1,2,3,1,1,1,8];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup212], (instregex "VMCLEARm")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup213 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort23,SKLPort237,SKLPort0156]> {
|
|
|
|
let Latency = 41;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 39;
|
|
|
|
let ResourceCycles = [1,10,1,1,26];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup213], (instregex "XSAVE64")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup214 : SchedWriteRes<[SKLPort5,SKLPort0156]> {
|
|
|
|
let Latency = 42;
|
|
|
|
let NumMicroOps = 22;
|
|
|
|
let ResourceCycles = [2,20];
|
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup214], (instrs RDTSCP)>;
|
2017-10-17 14:47:04 +08:00
|
|
|
|
|
|
|
def SKLWriteResGroup215 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort23,SKLPort237,SKLPort0156]> {
|
|
|
|
let Latency = 42;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 40;
|
|
|
|
let ResourceCycles = [1,11,1,1,26];
|
|
|
|
}
|
2017-12-10 09:24:08 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup215], (instregex "^XSAVE$", "XSAVEC", "XSAVES")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup216 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort23,SKLPort237,SKLPort0156]> {
|
|
|
|
let Latency = 46;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 44;
|
|
|
|
let ResourceCycles = [1,11,1,1,30];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup216], (instregex "XSAVEOPT")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup217 : SchedWriteRes<[SKLPort0,SKLPort23,SKLPort05,SKLPort06,SKLPort0156]> {
|
|
|
|
let Latency = 62;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 64;
|
|
|
|
let ResourceCycles = [2,8,5,10,39];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup217], (instregex "FLDENVm")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup218 : SchedWriteRes<[SKLPort0,SKLPort6,SKLPort23,SKLPort05,SKLPort06,SKLPort15,SKLPort0156]> {
|
|
|
|
let Latency = 63;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 88;
|
|
|
|
let ResourceCycles = [4,4,31,1,2,1,45];
|
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup218], (instrs FXRSTOR64)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup219 : SchedWriteRes<[SKLPort0,SKLPort6,SKLPort23,SKLPort05,SKLPort06,SKLPort15,SKLPort0156]> {
|
|
|
|
let Latency = 63;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 90;
|
|
|
|
let ResourceCycles = [4,2,33,1,2,1,47];
|
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup219], (instrs FXRSTOR)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup220 : SchedWriteRes<[SKLPort5,SKLPort05,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 75;
|
|
|
|
let NumMicroOps = 15;
|
|
|
|
let ResourceCycles = [6,3,6];
|
|
|
|
}
|
2018-04-24 00:10:50 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup220], (instrs FNINIT)>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup221 : SchedWriteRes<[SKLPort0,SKLPort1,SKLPort5,SKLPort6,SKLPort05,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 76;
|
|
|
|
let NumMicroOps = 32;
|
|
|
|
let ResourceCycles = [7,2,8,3,1,11];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup221], (instregex "DIV(16|32|64)r")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup222 : SchedWriteRes<[SKLPort0,SKLPort1,SKLPort5,SKLPort6,SKLPort06,SKLPort0156]> {
|
2017-09-19 14:19:27 +08:00
|
|
|
let Latency = 102;
|
|
|
|
let NumMicroOps = 66;
|
|
|
|
let ResourceCycles = [4,2,4,8,14,34];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup222], (instregex "IDIV(16|32|64)r")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
2017-10-17 14:47:04 +08:00
|
|
|
def SKLWriteResGroup223 : SchedWriteRes<[SKLPort0,SKLPort1,SKLPort4,SKLPort5,SKLPort6,SKLPort237,SKLPort06,SKLPort0156]> {
|
|
|
|
let Latency = 106;
|
2017-09-19 14:19:27 +08:00
|
|
|
let NumMicroOps = 100;
|
|
|
|
let ResourceCycles = [9,1,11,16,1,11,21,30];
|
|
|
|
}
|
2017-10-17 14:47:04 +08:00
|
|
|
def: InstRW<[SKLWriteResGroup223], (instregex "FSTENVm")>;
|
2017-09-19 14:19:27 +08:00
|
|
|
|
|
|
|
} // SchedModel
|