2013-03-29 06:34:46 +08:00
|
|
|
//=- X86SchedHaswell.td - X86 Haswell 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 Haswell to support instruction
|
|
|
|
// scheduling and other instruction cost heuristics.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def HaswellModel : SchedMachineModel {
|
|
|
|
// All x86 instructions are modeled as a single micro-op, and HW can decode 4
|
|
|
|
// instructions per cycle.
|
|
|
|
let IssueWidth = 4;
|
2013-06-15 12:50:02 +08:00
|
|
|
let MicroOpBufferSize = 192; // Based on the reorder buffer.
|
2017-12-08 17:48:44 +08:00
|
|
|
let LoadLatency = 5;
|
2013-03-29 06:34:46 +08:00
|
|
|
let MispredictPenalty = 16;
|
2013-09-26 02:14:12 +08:00
|
|
|
|
2014-05-08 17:14:44 +08:00
|
|
|
// Based on the LSD (loop-stream detector) queue size and benchmarking data.
|
|
|
|
let LoopMicroOpBufferSize = 50;
|
|
|
|
|
2018-03-25 02:36:01 +08:00
|
|
|
// This flag is set to allow the scheduler to assign a default model to
|
2017-08-28 18:04:16 +08:00
|
|
|
// unrecognized opcodes.
|
2013-09-26 02:14:12 +08:00
|
|
|
let CompleteModel = 0;
|
2013-03-29 06:34:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
let SchedModel = HaswellModel in {
|
|
|
|
|
|
|
|
// Haswell can issue micro-ops to 8 different ports in one cycle.
|
|
|
|
|
2014-01-30 02:26:59 +08:00
|
|
|
// Ports 0, 1, 5, and 6 handle all computation.
|
2013-03-29 06:34:46 +08:00
|
|
|
// 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 HWPort0 : ProcResource<1>;
|
|
|
|
def HWPort1 : ProcResource<1>;
|
|
|
|
def HWPort2 : ProcResource<1>;
|
|
|
|
def HWPort3 : ProcResource<1>;
|
|
|
|
def HWPort4 : ProcResource<1>;
|
|
|
|
def HWPort5 : ProcResource<1>;
|
|
|
|
def HWPort6 : ProcResource<1>;
|
|
|
|
def HWPort7 : ProcResource<1>;
|
|
|
|
|
|
|
|
// Many micro-ops are capable of issuing on multiple ports.
|
2014-08-19 01:55:26 +08:00
|
|
|
def HWPort01 : ProcResGroup<[HWPort0, HWPort1]>;
|
2013-03-29 06:34:46 +08:00
|
|
|
def HWPort23 : ProcResGroup<[HWPort2, HWPort3]>;
|
|
|
|
def HWPort237 : ProcResGroup<[HWPort2, HWPort3, HWPort7]>;
|
2014-08-19 01:55:36 +08:00
|
|
|
def HWPort04 : ProcResGroup<[HWPort0, HWPort4]>;
|
2013-03-29 06:34:46 +08:00
|
|
|
def HWPort05 : ProcResGroup<[HWPort0, HWPort5]>;
|
2014-08-19 01:56:01 +08:00
|
|
|
def HWPort06 : ProcResGroup<[HWPort0, HWPort6]>;
|
2013-03-29 06:34:46 +08:00
|
|
|
def HWPort15 : ProcResGroup<[HWPort1, HWPort5]>;
|
2014-02-25 03:33:51 +08:00
|
|
|
def HWPort16 : ProcResGroup<[HWPort1, HWPort6]>;
|
2014-08-19 01:56:01 +08:00
|
|
|
def HWPort56 : ProcResGroup<[HWPort5, HWPort6]>;
|
2013-03-29 06:34:46 +08:00
|
|
|
def HWPort015 : ProcResGroup<[HWPort0, HWPort1, HWPort5]>;
|
2014-08-19 01:56:01 +08:00
|
|
|
def HWPort056 : ProcResGroup<[HWPort0, HWPort5, HWPort6]>;
|
2013-03-29 06:34:46 +08:00
|
|
|
def HWPort0156: ProcResGroup<[HWPort0, HWPort1, HWPort5, HWPort6]>;
|
|
|
|
|
2013-06-15 12:50:06 +08:00
|
|
|
// 60 Entry Unified Scheduler
|
|
|
|
def HWPortAny : ProcResGroup<[HWPort0, HWPort1, HWPort2, HWPort3, HWPort4,
|
|
|
|
HWPort5, HWPort6, HWPort7]> {
|
|
|
|
let BufferSize=60;
|
|
|
|
}
|
|
|
|
|
2013-04-02 09:58:47 +08:00
|
|
|
// Integer division issued on port 0.
|
|
|
|
def HWDivider : ProcResource<1>;
|
2013-03-29 06:34:46 +08:00
|
|
|
|
2017-12-08 17:48:44 +08:00
|
|
|
// Loads are 5 cycles, so ReadAfterLd registers needn't be available until 5
|
2013-03-29 06:34:46 +08:00
|
|
|
// cycles after the memory operand.
|
2017-12-08 17:48:44 +08:00
|
|
|
def : ReadAdvance<ReadAfterLd, 5>;
|
2013-03-29 06:34:46 +08:00
|
|
|
|
|
|
|
// 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 HWWriteResPair<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> {
|
2013-03-29 06:34:46 +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;
|
|
|
|
}
|
2013-03-29 06:34:46 +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([HWPort23], 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);
|
2013-03-29 06:34:46 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// A folded store needs a cycle on port 4 for the store data, but it does not
|
|
|
|
// need an extra port 2/3 cycle to recompute the address.
|
|
|
|
def : WriteRes<WriteRMW, [HWPort4]>;
|
|
|
|
|
2014-01-30 02:26:59 +08:00
|
|
|
// Store_addr on 237.
|
|
|
|
// Store_data on 4.
|
2013-03-29 06:34:46 +08:00
|
|
|
def : WriteRes<WriteStore, [HWPort237, HWPort4]>;
|
2017-12-08 17:48:44 +08:00
|
|
|
def : WriteRes<WriteLoad, [HWPort23]> { let Latency = 5; }
|
2013-03-29 06:34:46 +08:00
|
|
|
def : WriteRes<WriteMove, [HWPort0156]>;
|
|
|
|
def : WriteRes<WriteZero, []>;
|
|
|
|
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : HWWriteResPair<WriteALU, [HWPort0156], 1>;
|
|
|
|
defm : HWWriteResPair<WriteIMul, [HWPort1], 3>;
|
2013-06-22 02:33:04 +08:00
|
|
|
def : WriteRes<WriteIMulH, []> { let Latency = 3; }
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : HWWriteResPair<WriteShift, [HWPort06], 1>;
|
|
|
|
defm : HWWriteResPair<WriteJump, [HWPort06], 1>;
|
2018-03-27 05:06:14 +08:00
|
|
|
defm : HWWriteResPair<WriteCRC32, [HWPort1], 3>;
|
2013-03-29 06:34:46 +08:00
|
|
|
|
|
|
|
// This is for simple LEAs with one or two input operands.
|
|
|
|
// The complex ones can only execute on port 1, and they require two cycles on
|
|
|
|
// the port to read all inputs. We don't model that.
|
|
|
|
def : WriteRes<WriteLEA, [HWPort15]>;
|
|
|
|
|
2018-03-27 02:19:28 +08:00
|
|
|
// Bit counts.
|
|
|
|
defm : HWWriteResPair<WriteBitScan, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteLZCNT, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteTZCNT, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WritePOPCNT, [HWPort1], 3>;
|
|
|
|
|
2013-03-29 06:34:46 +08:00
|
|
|
// This is quite rough, latency depends on the dividend.
|
2018-03-26 04:16:53 +08:00
|
|
|
defm : HWWriteResPair<WriteIDiv, [HWPort0, HWDivider], 25, [1,10], 1, 4>;
|
2013-03-29 06:34:46 +08:00
|
|
|
// Scalar and vector floating point.
|
2018-03-15 22:45:30 +08:00
|
|
|
def : WriteRes<WriteFStore, [HWPort237, HWPort4]>;
|
|
|
|
def : WriteRes<WriteFLoad, [HWPort23]> { let Latency = 5; }
|
|
|
|
def : WriteRes<WriteFMove, [HWPort5]>;
|
|
|
|
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : HWWriteResPair<WriteFAdd, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteFMul, [HWPort0], 5>;
|
|
|
|
defm : HWWriteResPair<WriteFDiv, [HWPort0], 12>; // 10-14 cycles.
|
|
|
|
defm : HWWriteResPair<WriteFRcp, [HWPort0], 5>;
|
|
|
|
defm : HWWriteResPair<WriteFRsqrt, [HWPort0], 5>;
|
|
|
|
defm : HWWriteResPair<WriteFSqrt, [HWPort0], 15>;
|
|
|
|
defm : HWWriteResPair<WriteCvtF2I, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteCvtI2F, [HWPort1], 4>;
|
|
|
|
defm : HWWriteResPair<WriteCvtF2F, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteFMA, [HWPort01], 5>;
|
|
|
|
defm : HWWriteResPair<WriteFShuffle, [HWPort5], 1>;
|
|
|
|
defm : HWWriteResPair<WriteFBlend, [HWPort015], 1>;
|
|
|
|
defm : HWWriteResPair<WriteFShuffle256, [HWPort5], 3>;
|
|
|
|
defm : HWWriteResPair<WriteFVarBlend, [HWPort5], 2, [2]>;
|
2013-03-29 06:34:46 +08:00
|
|
|
|
|
|
|
// Vector integer operations.
|
2018-03-15 22:45:30 +08:00
|
|
|
def : WriteRes<WriteVecStore, [HWPort237, HWPort4]>;
|
|
|
|
def : WriteRes<WriteVecLoad, [HWPort23]> { let Latency = 5; }
|
|
|
|
def : WriteRes<WriteVecMove, [HWPort015]>;
|
|
|
|
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : HWWriteResPair<WriteVecShift, [HWPort0], 1>;
|
|
|
|
defm : HWWriteResPair<WriteVecLogic, [HWPort015], 1>;
|
|
|
|
defm : HWWriteResPair<WriteVecALU, [HWPort15], 1>;
|
|
|
|
defm : HWWriteResPair<WriteVecIMul, [HWPort0], 5>;
|
|
|
|
defm : HWWriteResPair<WriteShuffle, [HWPort5], 1>;
|
|
|
|
defm : HWWriteResPair<WriteBlend, [HWPort15], 1>;
|
|
|
|
defm : HWWriteResPair<WriteShuffle256, [HWPort5], 3>;
|
|
|
|
defm : HWWriteResPair<WriteVarBlend, [HWPort5], 2, [2]>;
|
|
|
|
defm : HWWriteResPair<WriteVarVecShift, [HWPort0, HWPort5], 2, [2, 1]>;
|
|
|
|
defm : HWWriteResPair<WriteMPSAD, [HWPort0, HWPort5], 6, [1, 2]>;
|
2014-02-25 03:33:51 +08:00
|
|
|
|
|
|
|
// String instructions.
|
2018-03-22 22:56:18 +08:00
|
|
|
|
2014-02-25 03:33:51 +08:00
|
|
|
// Packed Compare Implicit Length Strings, Return Mask
|
|
|
|
def : WriteRes<WritePCmpIStrM, [HWPort0]> {
|
2018-03-22 22:56:18 +08:00
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 3;
|
2014-02-25 03:33:51 +08:00
|
|
|
let ResourceCycles = [3];
|
|
|
|
}
|
|
|
|
def : WriteRes<WritePCmpIStrMLd, [HWPort0, HWPort23]> {
|
2018-03-22 22:56:18 +08:00
|
|
|
let Latency = 17;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [3,1];
|
2014-02-25 03:33:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Packed Compare Explicit Length Strings, Return Mask
|
2018-03-22 22:56:18 +08:00
|
|
|
def : WriteRes<WritePCmpEStrM, [HWPort0, HWPort5, HWPort015, HWPort0156]> {
|
|
|
|
let Latency = 19;
|
|
|
|
let NumMicroOps = 9;
|
|
|
|
let ResourceCycles = [4,3,1,1];
|
2014-02-25 03:33:51 +08:00
|
|
|
}
|
2018-03-22 22:56:18 +08:00
|
|
|
def : WriteRes<WritePCmpEStrMLd, [HWPort0, HWPort5, HWPort23, HWPort015, HWPort0156]> {
|
|
|
|
let Latency = 25;
|
|
|
|
let NumMicroOps = 10;
|
|
|
|
let ResourceCycles = [4,3,1,1,1];
|
2014-02-25 03:33:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Packed Compare Implicit Length Strings, Return Index
|
|
|
|
def : WriteRes<WritePCmpIStrI, [HWPort0]> {
|
|
|
|
let Latency = 11;
|
2018-03-22 22:56:18 +08:00
|
|
|
let NumMicroOps = 3;
|
2014-02-25 03:33:51 +08:00
|
|
|
let ResourceCycles = [3];
|
|
|
|
}
|
|
|
|
def : WriteRes<WritePCmpIStrILd, [HWPort0, HWPort23]> {
|
2018-03-22 22:56:18 +08:00
|
|
|
let Latency = 17;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [3,1];
|
2014-02-25 03:33:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Packed Compare Explicit Length Strings, Return Index
|
2018-03-22 22:56:18 +08:00
|
|
|
def : WriteRes<WritePCmpEStrI, [HWPort0, HWPort5, HWPort0156]> {
|
|
|
|
let Latency = 18;
|
|
|
|
let NumMicroOps = 8;
|
|
|
|
let ResourceCycles = [4,3,1];
|
2014-02-25 03:33:51 +08:00
|
|
|
}
|
2018-03-22 22:56:18 +08:00
|
|
|
def : WriteRes<WritePCmpEStrILd, [HWPort0, HWPort5, HWPort23, HWPort0156]> {
|
|
|
|
let Latency = 24;
|
|
|
|
let NumMicroOps = 9;
|
|
|
|
let ResourceCycles = [4,3,1,1];
|
2014-02-25 03:33:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// AES Instructions.
|
|
|
|
def : WriteRes<WriteAESDecEnc, [HWPort5]> {
|
|
|
|
let Latency = 7;
|
2018-03-22 21:18:08 +08:00
|
|
|
let NumMicroOps = 1;
|
2014-02-25 03:33:51 +08:00
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
|
|
|
def : WriteRes<WriteAESDecEncLd, [HWPort5, HWPort23]> {
|
2018-03-22 21:18:08 +08:00
|
|
|
let Latency = 13;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
2014-02-25 03:33:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
def : WriteRes<WriteAESIMC, [HWPort5]> {
|
|
|
|
let Latency = 14;
|
2018-03-22 21:18:08 +08:00
|
|
|
let NumMicroOps = 2;
|
2014-02-25 03:33:51 +08:00
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
|
|
|
def : WriteRes<WriteAESIMCLd, [HWPort5, HWPort23]> {
|
2018-03-22 21:18:08 +08:00
|
|
|
let Latency = 20;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
2014-02-25 03:33:51 +08:00
|
|
|
}
|
|
|
|
|
2018-03-22 21:18:08 +08:00
|
|
|
def : WriteRes<WriteAESKeyGen, [HWPort0,HWPort5,HWPort015]> {
|
|
|
|
let Latency = 29;
|
|
|
|
let NumMicroOps = 11;
|
|
|
|
let ResourceCycles = [2,7,2];
|
2014-02-25 03:33:51 +08:00
|
|
|
}
|
2018-03-22 21:18:08 +08:00
|
|
|
def : WriteRes<WriteAESKeyGenLd, [HWPort0,HWPort5,HWPort23,HWPort015]> {
|
|
|
|
let Latency = 34;
|
|
|
|
let NumMicroOps = 11;
|
|
|
|
let ResourceCycles = [2,7,1,1];
|
2014-02-25 03:33:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Carry-less multiplication instructions.
|
|
|
|
def : WriteRes<WriteCLMul, [HWPort0, HWPort5]> {
|
2018-03-22 21:37:30 +08:00
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
2014-02-25 03:33:51 +08:00
|
|
|
}
|
|
|
|
def : WriteRes<WriteCLMulLd, [HWPort0, HWPort5, HWPort23]> {
|
2018-03-22 21:37:30 +08:00
|
|
|
let Latency = 17;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [2,1,1];
|
2014-02-25 03:33:51 +08:00
|
|
|
}
|
2013-03-29 06:34:46 +08:00
|
|
|
|
|
|
|
def : WriteRes<WriteSystem, [HWPort0156]> { let Latency = 100; }
|
|
|
|
def : WriteRes<WriteMicrocoded, [HWPort0156]> { let Latency = 100; }
|
2014-02-25 03:33:51 +08:00
|
|
|
def : WriteRes<WriteFence, [HWPort23, HWPort4]>;
|
|
|
|
def : WriteRes<WriteNop, []>;
|
2014-08-19 01:55:08 +08:00
|
|
|
|
2017-06-28 19:23:31 +08:00
|
|
|
//================ Exceptions ================//
|
2014-08-19 01:55:36 +08:00
|
|
|
|
2017-06-28 19:23:31 +08:00
|
|
|
//-- Specific Scheduling Models --//
|
2014-08-19 01:55:08 +08:00
|
|
|
|
2017-06-28 19:23:31 +08:00
|
|
|
// Starting with P0.
|
|
|
|
def WriteP0 : SchedWriteRes<[HWPort0]>;
|
2014-08-19 01:55:26 +08:00
|
|
|
|
2017-06-28 19:23:31 +08:00
|
|
|
def WriteP01 : SchedWriteRes<[HWPort01]>;
|
2014-08-19 01:55:36 +08:00
|
|
|
|
2017-06-28 19:23:31 +08:00
|
|
|
def Write2P01 : SchedWriteRes<[HWPort01]> {
|
2014-08-19 01:55:36 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
}
|
2017-06-28 19:23:31 +08:00
|
|
|
def Write3P01 : SchedWriteRes<[HWPort01]> {
|
|
|
|
let NumMicroOps = 3;
|
2014-08-19 01:55:13 +08:00
|
|
|
}
|
|
|
|
|
2017-06-28 19:23:31 +08:00
|
|
|
def WriteP0156_P23 : SchedWriteRes<[HWPort0156, HWPort23]> {
|
|
|
|
let NumMicroOps = 2;
|
2014-08-19 01:55:13 +08:00
|
|
|
}
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
def Write2P0156_P23 : SchedWriteRes<[HWPort0156, HWPort23]> {
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2, 1];
|
2014-08-19 01:55:19 +08:00
|
|
|
}
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// Starting with P1.
|
|
|
|
def WriteP1 : SchedWriteRes<[HWPort1]>;
|
|
|
|
|
2014-08-19 01:55:49 +08:00
|
|
|
|
2017-06-28 19:23:31 +08:00
|
|
|
def Write2P1 : SchedWriteRes<[HWPort1]> {
|
2017-06-27 23:05:13 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
2014-08-19 01:55:49 +08:00
|
|
|
}
|
2014-08-19 01:55:08 +08:00
|
|
|
|
2017-06-28 19:23:31 +08:00
|
|
|
// Notation:
|
|
|
|
// - r: register.
|
|
|
|
// - mm: 64 bit mmx register.
|
|
|
|
// - x = 128 bit xmm register.
|
|
|
|
// - (x)mm = mmx or xmm register.
|
|
|
|
// - y = 256 bit ymm register.
|
|
|
|
// - v = any vector register.
|
|
|
|
// - m = memory.
|
|
|
|
|
|
|
|
//=== Integer Instructions ===//
|
|
|
|
//-- Move instructions --//
|
|
|
|
|
|
|
|
// XLAT.
|
|
|
|
def WriteXLAT : SchedWriteRes<[]> {
|
|
|
|
let Latency = 7;
|
2017-06-27 23:05:13 +08:00
|
|
|
let NumMicroOps = 3;
|
2014-08-19 01:55:08 +08:00
|
|
|
}
|
2017-06-28 19:23:31 +08:00
|
|
|
def : InstRW<[WriteXLAT], (instregex "XLAT")>;
|
2014-08-19 01:55:08 +08:00
|
|
|
|
2017-06-28 19:23:31 +08:00
|
|
|
// PUSHA.
|
|
|
|
def WritePushA : SchedWriteRes<[]> {
|
|
|
|
let NumMicroOps = 19;
|
2014-08-19 01:55:08 +08:00
|
|
|
}
|
2017-06-28 19:23:31 +08:00
|
|
|
def : InstRW<[WritePushA], (instregex "PUSHA(16|32)")>;
|
2014-08-19 01:55:08 +08:00
|
|
|
|
2017-06-28 19:23:31 +08:00
|
|
|
// POPA.
|
|
|
|
def WritePopA : SchedWriteRes<[]> {
|
|
|
|
let NumMicroOps = 18;
|
2017-06-27 23:05:13 +08:00
|
|
|
}
|
2017-06-28 19:23:31 +08:00
|
|
|
def : InstRW<[WritePopA], (instregex "POPA(16|32)")>;
|
|
|
|
|
|
|
|
//-- Arithmetic instructions --//
|
|
|
|
|
|
|
|
// DIV.
|
|
|
|
// r8.
|
|
|
|
def WriteDiv8 : SchedWriteRes<[HWPort0, HWPort1, HWPort5, HWPort6]> {
|
|
|
|
let Latency = 22;
|
|
|
|
let NumMicroOps = 9;
|
2014-08-19 01:55:11 +08:00
|
|
|
}
|
2017-06-28 19:23:31 +08:00
|
|
|
def : InstRW<[WriteDiv8], (instregex "DIV8r")>;
|
2014-08-19 01:55:11 +08:00
|
|
|
|
2017-06-28 19:23:31 +08:00
|
|
|
// IDIV.
|
|
|
|
// r8.
|
|
|
|
def WriteIDiv8 : SchedWriteRes<[HWPort0, HWPort1, HWPort5, HWPort6]> {
|
|
|
|
let Latency = 23;
|
|
|
|
let NumMicroOps = 9;
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteIDiv8], (instregex "IDIV8r")>;
|
|
|
|
|
|
|
|
// BT.
|
|
|
|
// m,r.
|
|
|
|
def WriteBTmr : SchedWriteRes<[]> {
|
|
|
|
let NumMicroOps = 10;
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteBTmr], (instregex "BT(16|32|64)mr")>;
|
|
|
|
|
|
|
|
// BTR BTS BTC.
|
|
|
|
// m,r.
|
|
|
|
def WriteBTRSCmr : SchedWriteRes<[]> {
|
|
|
|
let NumMicroOps = 11;
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteBTRSCmr], (instregex "BT(R|S|C)(16|32|64)mr")>;
|
|
|
|
|
|
|
|
//-- Control transfer instructions --//
|
|
|
|
|
|
|
|
// CALL.
|
|
|
|
// i.
|
|
|
|
def WriteRETI : SchedWriteRes<[HWPort23, HWPort6, HWPort015]> {
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1, 2, 1];
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteRETI], (instregex "RETI(L|Q|W)", "LRETI(L|Q|W)")>;
|
|
|
|
|
|
|
|
// BOUND.
|
|
|
|
// r,m.
|
|
|
|
def WriteBOUND : SchedWriteRes<[]> {
|
|
|
|
let NumMicroOps = 15;
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteBOUND], (instregex "BOUNDS(16|32)rm")>;
|
|
|
|
|
|
|
|
// INTO.
|
|
|
|
def WriteINTO : SchedWriteRes<[]> {
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteINTO], (instregex "INTO")>;
|
|
|
|
|
|
|
|
//-- String instructions --//
|
|
|
|
|
|
|
|
// LODSB/W.
|
|
|
|
def : InstRW<[Write2P0156_P23], (instregex "LODS(B|W)")>;
|
|
|
|
|
|
|
|
// LODSD/Q.
|
|
|
|
def : InstRW<[WriteP0156_P23], (instregex "LODS(L|Q)")>;
|
|
|
|
|
|
|
|
// MOVS.
|
|
|
|
def WriteMOVS : SchedWriteRes<[HWPort23, HWPort4, HWPort0156]> {
|
2014-08-19 01:55:19 +08:00
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 5;
|
2017-06-28 19:23:31 +08:00
|
|
|
let ResourceCycles = [2, 1, 2];
|
2014-08-19 01:55:19 +08:00
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def : InstRW<[WriteMOVS], (instrs MOVSB, MOVSL, MOVSQ, MOVSW)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// CMPS.
|
|
|
|
def WriteCMPS : SchedWriteRes<[HWPort23, HWPort0156]> {
|
2014-08-19 01:55:19 +08:00
|
|
|
let Latency = 4;
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [2, 3];
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteCMPS], (instregex "CMPS(B|L|Q|W)")>;
|
|
|
|
|
|
|
|
//-- Other --//
|
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
// RDPMC.f
|
2017-06-28 19:23:31 +08:00
|
|
|
def WriteRDPMC : SchedWriteRes<[]> {
|
|
|
|
let NumMicroOps = 34;
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteRDPMC], (instregex "RDPMC")>;
|
|
|
|
|
|
|
|
// RDRAND.
|
|
|
|
def WriteRDRAND : SchedWriteRes<[HWPort23, HWPort015]> {
|
|
|
|
let NumMicroOps = 17;
|
|
|
|
let ResourceCycles = [1, 16];
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteRDRAND], (instregex "RDRAND(16|32|64)r")>;
|
|
|
|
|
|
|
|
//=== Floating Point x87 Instructions ===//
|
|
|
|
//-- Move instructions --//
|
|
|
|
|
|
|
|
// FLD.
|
|
|
|
// m80.
|
|
|
|
def : InstRW<[WriteP01], (instregex "LD_Frr")>;
|
|
|
|
|
|
|
|
// FBLD.
|
|
|
|
// m80.
|
|
|
|
def WriteFBLD : SchedWriteRes<[]> {
|
|
|
|
let Latency = 47;
|
|
|
|
let NumMicroOps = 43;
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteFBLD], (instregex "FBLDm")>;
|
|
|
|
|
|
|
|
// FST(P).
|
|
|
|
// r.
|
|
|
|
def : InstRW<[WriteP01], (instregex "ST_(F|FP)rr")>;
|
|
|
|
|
|
|
|
// FLDZ.
|
|
|
|
def : InstRW<[WriteP01], (instregex "LD_F0")>;
|
|
|
|
|
|
|
|
// FLDPI FLDL2E etc.
|
2018-03-20 23:44:47 +08:00
|
|
|
def : InstRW<[Write2P01], (instregex "FLDPI", "FLDL2(T|E)", "FLDL(G|N)2")>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FFREE.
|
|
|
|
def : InstRW<[WriteP01], (instregex "FFREE")>;
|
|
|
|
|
|
|
|
// FNSAVE.
|
|
|
|
def WriteFNSAVE : SchedWriteRes<[]> {
|
|
|
|
let NumMicroOps = 147;
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteFNSAVE], (instregex "FSAVEm")>;
|
|
|
|
|
|
|
|
// FRSTOR.
|
|
|
|
def WriteFRSTOR : SchedWriteRes<[]> {
|
|
|
|
let NumMicroOps = 90;
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteFRSTOR], (instregex "FRSTORm")>;
|
|
|
|
|
|
|
|
//-- Arithmetic instructions --//
|
|
|
|
|
|
|
|
// FABS.
|
|
|
|
def : InstRW<[WriteP0], (instregex "ABS_F")>;
|
|
|
|
|
|
|
|
// FCHS.
|
|
|
|
def : InstRW<[WriteP0], (instregex "CHS_F")>;
|
|
|
|
|
|
|
|
// FCOMPP FUCOMPP.
|
|
|
|
// r.
|
|
|
|
def : InstRW<[Write2P01], (instregex "FCOMPP", "UCOM_FPPr")>;
|
|
|
|
|
|
|
|
// FCOMI(P) FUCOMI(P).
|
|
|
|
// m.
|
|
|
|
def : InstRW<[Write3P01], (instregex "COM_FIr", "COM_FIPr", "UCOM_FIr",
|
|
|
|
"UCOM_FIPr")>;
|
|
|
|
|
|
|
|
// FTST.
|
|
|
|
def : InstRW<[WriteP1], (instregex "TST_F")>;
|
|
|
|
|
|
|
|
// FXAM.
|
|
|
|
def : InstRW<[Write2P1], (instregex "FXAM")>;
|
|
|
|
|
|
|
|
// FPREM.
|
|
|
|
def WriteFPREM : SchedWriteRes<[]> {
|
|
|
|
let Latency = 19;
|
|
|
|
let NumMicroOps = 28;
|
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def : InstRW<[WriteFPREM], (instrs FPREM)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FPREM1.
|
|
|
|
def WriteFPREM1 : SchedWriteRes<[]> {
|
|
|
|
let Latency = 27;
|
|
|
|
let NumMicroOps = 41;
|
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def : InstRW<[WriteFPREM1], (instrs FPREM1)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FRNDINT.
|
|
|
|
def WriteFRNDINT : SchedWriteRes<[]> {
|
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 17;
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteFRNDINT], (instregex "FRNDINT")>;
|
|
|
|
|
|
|
|
//-- Math instructions --//
|
|
|
|
|
|
|
|
// FSCALE.
|
|
|
|
def WriteFSCALE : SchedWriteRes<[]> {
|
|
|
|
let Latency = 75; // 49-125
|
|
|
|
let NumMicroOps = 50; // 25-75
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteFSCALE], (instregex "FSCALE")>;
|
|
|
|
|
|
|
|
// FXTRACT.
|
|
|
|
def WriteFXTRACT : SchedWriteRes<[]> {
|
|
|
|
let Latency = 15;
|
|
|
|
let NumMicroOps = 17;
|
|
|
|
}
|
|
|
|
def : InstRW<[WriteFXTRACT], (instregex "FXTRACT")>;
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Horizontal add/sub instructions.
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-03-19 22:46:07 +08:00
|
|
|
defm : HWWriteResPair<WriteFHAdd, [HWPort1, HWPort5], 5, [1, 2], 3>;
|
|
|
|
defm : HWWriteResPair<WritePHAdd, [HWPort1, HWPort5], 3, [1, 2], 3>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
//=== Floating Point XMM and YMM Instructions ===//
|
2014-08-19 01:55:46 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
// Remaining instrs.
|
2017-06-28 19:23:31 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup0 : SchedWriteRes<[HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 6;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup0], (instregex "VBROADCASTSSrm",
|
|
|
|
"(V?)LDDQUrm",
|
|
|
|
"(V?)MOVAPDrm",
|
|
|
|
"(V?)MOVAPSrm",
|
|
|
|
"(V?)MOVDQArm",
|
|
|
|
"(V?)MOVDQUrm",
|
|
|
|
"(V?)MOVNTDQArm",
|
|
|
|
"(V?)MOVSHDUPrm",
|
|
|
|
"(V?)MOVSLDUPrm",
|
|
|
|
"(V?)MOVUPDrm",
|
|
|
|
"(V?)MOVUPSrm",
|
|
|
|
"VPBROADCASTDrm",
|
|
|
|
"VPBROADCASTQrm",
|
2018-03-23 05:55:20 +08:00
|
|
|
"(V?)ROUNDPD(Y?)r",
|
|
|
|
"(V?)ROUNDPS(Y?)r",
|
2018-03-22 00:19:03 +08:00
|
|
|
"(V?)ROUNDSDr",
|
|
|
|
"(V?)ROUNDSSr")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup0_1 : SchedWriteRes<[HWPort23]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup0_1], (instregex "LD_F32m",
|
|
|
|
"LD_F64m",
|
|
|
|
"LD_F80m",
|
|
|
|
"VBROADCASTF128",
|
|
|
|
"VBROADCASTI128",
|
|
|
|
"VBROADCASTSDYrm",
|
|
|
|
"VBROADCASTSSYrm",
|
|
|
|
"VLDDQUYrm",
|
|
|
|
"VMOVAPDYrm",
|
|
|
|
"VMOVAPSYrm",
|
|
|
|
"VMOVDDUPYrm",
|
|
|
|
"VMOVDQAYrm",
|
|
|
|
"VMOVDQUYrm",
|
|
|
|
"VMOVNTDQAYrm",
|
|
|
|
"VMOVSHDUPYrm",
|
|
|
|
"VMOVSLDUPYrm",
|
|
|
|
"VMOVUPDYrm",
|
|
|
|
"VMOVUPSYrm",
|
|
|
|
"VPBROADCASTDYrm",
|
|
|
|
"VPBROADCASTQYrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup0_2 : SchedWriteRes<[HWPort23]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup0_2], (instregex "MMX_MOVD64rm",
|
|
|
|
"MMX_MOVD64to64rm",
|
|
|
|
"MMX_MOVQ64rm",
|
|
|
|
"MOV(8|16|32|64)rm",
|
|
|
|
"MOVSX(16|32|64)rm16",
|
|
|
|
"MOVSX(16|32|64)rm32",
|
|
|
|
"MOVSX(16|32|64)rm8",
|
|
|
|
"MOVZX(16|32|64)rm16",
|
|
|
|
"MOVZX(16|32|64)rm8",
|
|
|
|
"PREFETCHNTA",
|
|
|
|
"PREFETCHT0",
|
|
|
|
"PREFETCHT1",
|
|
|
|
"PREFETCHT2",
|
|
|
|
"(V?)MOV64toPQIrm",
|
|
|
|
"(V?)MOVDDUPrm",
|
|
|
|
"(V?)MOVDI2PDIrm",
|
|
|
|
"(V?)MOVQI2PQIrm",
|
|
|
|
"(V?)MOVSDrm",
|
|
|
|
"(V?)MOVSSrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup1 : SchedWriteRes<[HWPort4,HWPort237]> {
|
|
|
|
let Latency = 1;
|
2014-08-19 01:55:49 +08:00
|
|
|
let NumMicroOps = 2;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup1], (instregex "FBSTPm",
|
|
|
|
"MMX_MOVD64from64rm",
|
|
|
|
"MMX_MOVD64mr",
|
|
|
|
"MMX_MOVNTQmr",
|
|
|
|
"MMX_MOVQ64mr",
|
|
|
|
"MOV(16|32|64)mr",
|
|
|
|
"MOV8mi",
|
|
|
|
"MOV8mr",
|
|
|
|
"MOVNTI_64mr",
|
|
|
|
"MOVNTImr",
|
|
|
|
"ST_FP32m",
|
|
|
|
"ST_FP64m",
|
|
|
|
"ST_FP80m",
|
|
|
|
"VEXTRACTF128mr",
|
|
|
|
"VEXTRACTI128mr",
|
|
|
|
"(V?)MOVAPD(Y?)mr",
|
|
|
|
"(V?)MOVAPS(V?)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",
|
|
|
|
"VMPTRSTm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup2 : SchedWriteRes<[HWPort0]> {
|
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
2014-08-19 01:55:49 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup2], (instregex "MMX_MOVD64from64rr",
|
|
|
|
"MMX_MOVD64grr",
|
|
|
|
"MMX_PMOVMSKBrr",
|
|
|
|
"MMX_PSLLDri",
|
|
|
|
"MMX_PSLLDrr",
|
|
|
|
"MMX_PSLLQri",
|
|
|
|
"MMX_PSLLQrr",
|
|
|
|
"MMX_PSLLWri",
|
|
|
|
"MMX_PSLLWrr",
|
|
|
|
"MMX_PSRADri",
|
|
|
|
"MMX_PSRADrr",
|
|
|
|
"MMX_PSRAWri",
|
|
|
|
"MMX_PSRAWrr",
|
|
|
|
"MMX_PSRLDri",
|
|
|
|
"MMX_PSRLDrr",
|
|
|
|
"MMX_PSRLQri",
|
|
|
|
"MMX_PSRLQrr",
|
|
|
|
"MMX_PSRLWri",
|
|
|
|
"MMX_PSRLWrr",
|
|
|
|
"(V?)MOVPDI2DIrr",
|
|
|
|
"(V?)MOVPQIto64rr",
|
|
|
|
"(V?)PSLLD(Y?)ri",
|
|
|
|
"(V?)PSLLQ(Y?)ri",
|
|
|
|
"VPSLLVQ(Y?)rr",
|
|
|
|
"(V?)PSLLW(Y?)ri",
|
|
|
|
"(V?)PSRAD(Y?)ri",
|
|
|
|
"(V?)PSRAW(Y?)ri",
|
|
|
|
"(V?)PSRLD(Y?)ri",
|
|
|
|
"(V?)PSRLQ(Y?)ri",
|
|
|
|
"VPSRLVQ(Y?)rr",
|
|
|
|
"(V?)PSRLW(Y?)ri",
|
2018-03-25 02:36:01 +08:00
|
|
|
"VTESTPD(Y?)rr",
|
|
|
|
"VTESTPS(Y?)rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup3 : SchedWriteRes<[HWPort1]> {
|
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
2014-08-19 01:55:49 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup3], (instregex "COMP_FST0r",
|
|
|
|
"COM_FST0r",
|
|
|
|
"UCOM_FPr",
|
|
|
|
"UCOM_Fr")>;
|
2014-08-19 01:55:49 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup4 : SchedWriteRes<[HWPort5]> {
|
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
2014-08-19 01:55:49 +08:00
|
|
|
}
|
2018-03-25 02:36:01 +08:00
|
|
|
def: InstRW<[HWWriteResGroup4], (instregex "MMX_MOVD64rr",
|
2018-03-22 00:19:03 +08:00
|
|
|
"MMX_MOVD64to64rr",
|
|
|
|
"MMX_MOVQ2DQrr",
|
|
|
|
"MMX_PALIGNRrri",
|
|
|
|
"MMX_PSHUFBrr",
|
|
|
|
"MMX_PSHUFWri",
|
|
|
|
"MMX_PUNPCKHBWirr",
|
|
|
|
"MMX_PUNPCKHDQirr",
|
|
|
|
"MMX_PUNPCKHWDirr",
|
|
|
|
"MMX_PUNPCKLBWirr",
|
|
|
|
"MMX_PUNPCKLDQirr",
|
|
|
|
"MMX_PUNPCKLWDirr",
|
2018-03-25 02:36:01 +08:00
|
|
|
"(V?)ANDNPD(Y?)rr",
|
|
|
|
"(V?)ANDNPS(Y?)rr",
|
|
|
|
"(V?)ANDPD(Y?)rr",
|
|
|
|
"(V?)ANDPS(Y?)rr",
|
2018-03-22 00:19:03 +08:00
|
|
|
"VBROADCASTSSrr",
|
2018-03-25 02:36:01 +08:00
|
|
|
"(V?)INSERTPSrr",
|
|
|
|
"(V?)MOV64toPQIrr",
|
|
|
|
"(V?)MOVAPD(Y?)rr",
|
|
|
|
"(V?)MOVAPS(Y?)rr",
|
|
|
|
"(V?)MOVDDUP(Y?)rr",
|
|
|
|
"(V?)MOVDI2PDIrr",
|
|
|
|
"(V?)MOVHLPSrr",
|
|
|
|
"(V?)MOVLHPSrr",
|
|
|
|
"(V?)MOVSDrr",
|
|
|
|
"(V?)MOVSHDUP(Y?)rr",
|
|
|
|
"(V?)MOVSLDUP(Y?)rr",
|
|
|
|
"(V?)MOVSSrr",
|
|
|
|
"(V?)MOVUPD(Y?)rr",
|
|
|
|
"(V?)MOVUPS(Y?)rr",
|
|
|
|
"(V?)ORPD(Y?)rr",
|
|
|
|
"(V?)ORPS(Y?)rr",
|
|
|
|
"(V?)PACKSSDW(Y?)rr",
|
|
|
|
"(V?)PACKSSWB(Y?)rr",
|
|
|
|
"(V?)PACKUSDW(Y?)rr",
|
|
|
|
"(V?)PACKUSWB(Y?)rr",
|
|
|
|
"(V?)PALIGNR(Y?)rri",
|
|
|
|
"(V?)PBLENDW(Y?)rri",
|
2018-03-22 00:19:03 +08:00
|
|
|
"VPBROADCASTDrr",
|
|
|
|
"VPBROADCASTQrr",
|
2018-03-25 02:36:01 +08:00
|
|
|
"VPERMILPD(Y?)ri",
|
|
|
|
"VPERMILPD(Y?)rr",
|
|
|
|
"VPERMILPS(Y?)ri",
|
|
|
|
"VPERMILPS(Y?)rr",
|
|
|
|
"(V?)PMOVSXBDrr",
|
|
|
|
"(V?)PMOVSXBQrr",
|
|
|
|
"(V?)PMOVSXBWrr",
|
|
|
|
"(V?)PMOVSXDQrr",
|
|
|
|
"(V?)PMOVSXWDrr",
|
|
|
|
"(V?)PMOVSXWQrr",
|
|
|
|
"(V?)PMOVZXBDrr",
|
|
|
|
"(V?)PMOVZXBQrr",
|
|
|
|
"(V?)PMOVZXBWrr",
|
|
|
|
"(V?)PMOVZXDQrr",
|
|
|
|
"(V?)PMOVZXWDrr",
|
|
|
|
"(V?)PMOVZXWQrr",
|
|
|
|
"(V?)PSHUFB(Y?)rr",
|
|
|
|
"(V?)PSHUFD(Y?)ri",
|
|
|
|
"(V?)PSHUFHW(Y?)ri",
|
|
|
|
"(V?)PSHUFLW(Y?)ri",
|
|
|
|
"(V?)PSLLDQ(Y?)ri",
|
|
|
|
"(V?)PSRLDQ(Y?)ri",
|
|
|
|
"(V?)PUNPCKHBW(Y?)rr",
|
|
|
|
"(V?)PUNPCKHDQ(Y?)rr",
|
|
|
|
"(V?)PUNPCKHQDQ(Y?)rr",
|
|
|
|
"(V?)PUNPCKHWD(Y?)rr",
|
|
|
|
"(V?)PUNPCKLBW(Y?)rr",
|
|
|
|
"(V?)PUNPCKLDQ(Y?)rr",
|
|
|
|
"(V?)PUNPCKLQDQ(Y?)rr",
|
|
|
|
"(V?)PUNPCKLWD(Y?)rr",
|
|
|
|
"(V?)SHUFPD(Y?)rri",
|
|
|
|
"(V?)SHUFPS(Y?)rri",
|
|
|
|
"(V?)UNPCKHPD(Y?)rr",
|
|
|
|
"(V?)UNPCKHPS(Y?)rr",
|
|
|
|
"(V?)UNPCKLPD(Y?)rr",
|
|
|
|
"(V?)UNPCKLPS(Y?)rr",
|
2018-03-22 00:19:03 +08:00
|
|
|
"(V?)XORPD(Y?)rr",
|
|
|
|
"(V?)XORPS(Y?)rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup5 : SchedWriteRes<[HWPort6]> {
|
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
2014-08-19 01:55:49 +08:00
|
|
|
}
|
2017-08-28 18:04:16 +08:00
|
|
|
def: InstRW<[HWWriteResGroup5], (instregex "JMP(16|32|64)r")>;
|
2014-08-19 01:55:49 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup6 : SchedWriteRes<[HWPort01]> {
|
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
2014-08-19 01:55:49 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup6], (instregex "FINCSTP",
|
|
|
|
"FNOP")>;
|
2014-08-19 01:55:49 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup7 : SchedWriteRes<[HWPort06]> {
|
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup7], (instregex "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",
|
|
|
|
"CDQ",
|
|
|
|
"CQO",
|
|
|
|
"J(A|AE|B|BE|E|G|GE|L|LE|NE|NO|NP|NS|O|P|S)_1",
|
|
|
|
"J(A|AE|B|BE|E|G|GE|L|LE|NE|NO|NP|NS|O|P|S)_4",
|
|
|
|
"JMP_1",
|
|
|
|
"JMP_4",
|
|
|
|
"RORX(32|64)ri",
|
|
|
|
"SAR(8|16|32|64)r1",
|
|
|
|
"SAR(8|16|32|64)ri",
|
|
|
|
"SARX(32|64)rr",
|
|
|
|
"SET(AE|B|E|G|GE|L|LE|NE|NO|NP|NS|O|P|S)r",
|
|
|
|
"SHL(8|16|32|64)r1",
|
|
|
|
"SHL(8|16|32|64)ri",
|
|
|
|
"SHLX(32|64)rr",
|
|
|
|
"SHR(8|16|32|64)r1",
|
|
|
|
"SHR(8|16|32|64)ri",
|
|
|
|
"SHRX(32|64)rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup8 : SchedWriteRes<[HWPort15]> {
|
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup8], (instregex "ANDN(32|64)rr",
|
|
|
|
"BLSI(32|64)rr",
|
|
|
|
"BLSMSK(32|64)rr",
|
|
|
|
"BLSR(32|64)rr",
|
|
|
|
"BZHI(32|64)rr",
|
|
|
|
"LEA(16|32|64)(_32)?r",
|
|
|
|
"MMX_PABSBrr",
|
|
|
|
"MMX_PABSDrr",
|
|
|
|
"MMX_PABSWrr",
|
|
|
|
"MMX_PADDBirr",
|
|
|
|
"MMX_PADDDirr",
|
|
|
|
"MMX_PADDQirr",
|
|
|
|
"MMX_PADDSBirr",
|
|
|
|
"MMX_PADDSWirr",
|
|
|
|
"MMX_PADDUSBirr",
|
|
|
|
"MMX_PADDUSWirr",
|
|
|
|
"MMX_PADDWirr",
|
|
|
|
"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_PSIGNBrr",
|
|
|
|
"MMX_PSIGNDrr",
|
|
|
|
"MMX_PSIGNWrr",
|
|
|
|
"MMX_PSUBBirr",
|
|
|
|
"MMX_PSUBDirr",
|
|
|
|
"MMX_PSUBQirr",
|
|
|
|
"MMX_PSUBSBirr",
|
|
|
|
"MMX_PSUBSWirr",
|
|
|
|
"MMX_PSUBUSBirr",
|
|
|
|
"MMX_PSUBUSWirr",
|
|
|
|
"MMX_PSUBWirr",
|
2018-03-25 02:36:01 +08:00
|
|
|
"(V?)PABSB(Y?)rr",
|
|
|
|
"(V?)PABSD(Y?)rr",
|
|
|
|
"(V?)PABSW(Y?)rr",
|
|
|
|
"(V?)PADDB(Y?)rr",
|
|
|
|
"(V?)PADDD(Y?)rr",
|
|
|
|
"(V?)PADDQ(Y?)rr",
|
|
|
|
"(V?)PADDSB(Y?)rr",
|
|
|
|
"(V?)PADDSW(Y?)rr",
|
|
|
|
"(V?)PADDUSB(Y?)rr",
|
|
|
|
"(V?)PADDUSW(Y?)rr",
|
|
|
|
"(V?)PADDW(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?)PSUBB(Y?)rr",
|
|
|
|
"(V?)PSUBD(Y?)rr",
|
|
|
|
"(V?)PSUBQ(Y?)rr",
|
|
|
|
"(V?)PSUBSB(Y?)rr",
|
|
|
|
"(V?)PSUBSW(Y?)rr",
|
|
|
|
"(V?)PSUBUSB(Y?)rr",
|
|
|
|
"(V?)PSUBUSW(Y?)rr",
|
|
|
|
"(V?)PSUBW(Y?)rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup9 : SchedWriteRes<[HWPort015]> {
|
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup9], (instregex "MMX_MOVQ64rr",
|
|
|
|
"MMX_PANDNirr",
|
|
|
|
"MMX_PANDirr",
|
|
|
|
"MMX_PORirr",
|
|
|
|
"MMX_PXORirr",
|
|
|
|
"(V?)BLENDPD(Y?)rri",
|
|
|
|
"(V?)BLENDPS(Y?)rri",
|
|
|
|
"(V?)MOVDQA(Y?)rr",
|
|
|
|
"(V?)MOVDQU(Y?)rr",
|
|
|
|
"(V?)MOVPQI2QIrr",
|
|
|
|
"VMOVZPQILo2PQIrr",
|
|
|
|
"(V?)PANDN(Y?)rr",
|
|
|
|
"(V?)PAND(Y?)rr",
|
|
|
|
"VPBLENDD(Y?)rri",
|
|
|
|
"(V?)POR(Y?)rr",
|
|
|
|
"(V?)PXOR(Y?)rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup10 : SchedWriteRes<[HWPort0156]> {
|
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup10], (instrs CWDE)>;
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup10], (instregex "ADD(8|16|32|64)ri",
|
|
|
|
"ADD(8|16|32|64)rr",
|
|
|
|
"ADD(8|16|32|64)i",
|
|
|
|
"AND(8|16|32|64)ri",
|
|
|
|
"AND(8|16|32|64)rr",
|
|
|
|
"AND(8|16|32|64)i",
|
|
|
|
"CBW",
|
|
|
|
"CLC",
|
|
|
|
"CMC",
|
|
|
|
"CMP(8|16|32|64)ri",
|
|
|
|
"CMP(8|16|32|64)rr",
|
|
|
|
"CMP(8|16|32|64)i",
|
|
|
|
"DEC(8|16|32|64)r",
|
|
|
|
"INC(8|16|32|64)r",
|
|
|
|
"LAHF",
|
|
|
|
"MOV(8|16|32|64)rr",
|
|
|
|
"MOV(8|16|32|64)ri",
|
|
|
|
"MOVSX(16|32|64)rr16",
|
|
|
|
"MOVSX(16|32|64)rr32",
|
|
|
|
"MOVSX(16|32|64)rr8",
|
|
|
|
"MOVZX(16|32|64)rr16",
|
|
|
|
"MOVZX(16|32|64)rr8",
|
|
|
|
"NEG(8|16|32|64)r",
|
|
|
|
"NOOP",
|
|
|
|
"NOT(8|16|32|64)r",
|
|
|
|
"OR(8|16|32|64)ri",
|
|
|
|
"OR(8|16|32|64)rr",
|
|
|
|
"OR(8|16|32|64)i",
|
|
|
|
"SAHF",
|
|
|
|
"SGDT64m",
|
|
|
|
"SIDT64m",
|
|
|
|
"SLDT64m",
|
|
|
|
"SMSW16m",
|
|
|
|
"STC",
|
|
|
|
"STRm",
|
|
|
|
"SUB(8|16|32|64)ri",
|
|
|
|
"SUB(8|16|32|64)rr",
|
|
|
|
"SUB(8|16|32|64)i",
|
|
|
|
"SYSCALL",
|
|
|
|
"TEST(8|16|32|64)rr",
|
|
|
|
"TEST(8|16|32|64)i",
|
|
|
|
"TEST(8|16|32|64)ri",
|
|
|
|
"XCHG(16|32|64)rr",
|
|
|
|
"XOR(8|16|32|64)ri",
|
|
|
|
"XOR(8|16|32|64)rr",
|
|
|
|
"XOR(8|16|32|64)i")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup11 : SchedWriteRes<[HWPort0,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 6;
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 2;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup11], (instregex "MMX_PSLLDrm",
|
|
|
|
"MMX_PSLLQrm",
|
|
|
|
"MMX_PSLLWrm",
|
|
|
|
"MMX_PSRADrm",
|
|
|
|
"MMX_PSRAWrm",
|
|
|
|
"MMX_PSRLDrm",
|
|
|
|
"MMX_PSRLQrm",
|
|
|
|
"MMX_PSRLWrm",
|
|
|
|
"VCVTPH2PSrm",
|
|
|
|
"(V?)CVTPS2PDrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup11_1 : SchedWriteRes<[HWPort0,HWPort23]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup11_1], (instregex "VCVTPH2PSYrm",
|
|
|
|
"(V?)CVTSS2SDrm",
|
|
|
|
"VPSLLVQrm",
|
|
|
|
"VPSRLVQrm",
|
|
|
|
"VTESTPDrm",
|
|
|
|
"VTESTPSrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup11_2 : SchedWriteRes<[HWPort0,HWPort23]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup11_2], (instregex "VPSLLDYrm",
|
|
|
|
"VPSLLQYrm",
|
|
|
|
"VPSLLVQYrm",
|
|
|
|
"VPSLLWYrm",
|
|
|
|
"VPSRADYrm",
|
|
|
|
"VPSRAWYrm",
|
|
|
|
"VPSRLDYrm",
|
|
|
|
"VPSRLQYrm",
|
|
|
|
"VPSRLVQYrm",
|
|
|
|
"VPSRLWYrm",
|
|
|
|
"VTESTPDYrm",
|
|
|
|
"VTESTPSYrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup12 : SchedWriteRes<[HWPort1,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 8;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
2014-08-19 01:55:49 +08:00
|
|
|
}
|
2018-03-23 03:22:51 +08:00
|
|
|
def: InstRW<[HWWriteResGroup12], (instrs MUL8m, MUL16m,
|
|
|
|
IMUL8m, IMUL16m,
|
2018-03-22 00:19:03 +08:00
|
|
|
IMUL16rm, IMUL16rmi, IMUL16rmi8, IMUL32rm, IMUL32rmi, IMUL32rmi8, IMUL64rm, IMUL64rmi32, IMUL64rmi8)>;
|
2018-03-27 02:19:28 +08:00
|
|
|
def: InstRW<[HWWriteResGroup12], (instregex "FCOM32m",
|
2018-03-22 00:19:03 +08:00
|
|
|
"FCOM64m",
|
|
|
|
"FCOMP32m",
|
|
|
|
"FCOMP64m",
|
|
|
|
"MMX_CVTPI2PSirm",
|
|
|
|
"MMX_CVTPS2PIirm",
|
|
|
|
"MMX_CVTTPS2PIirm",
|
|
|
|
"PDEP(32|64)rm",
|
|
|
|
"PEXT(32|64)rm",
|
|
|
|
"(V?)ADDSDrm",
|
|
|
|
"(V?)ADDSSrm",
|
|
|
|
"(V?)CMPSDrm",
|
|
|
|
"(V?)CMPSSrm",
|
|
|
|
"(V?)COMISDrm",
|
|
|
|
"(V?)COMISSrm",
|
|
|
|
"(V?)MAX(C?)SDrm",
|
|
|
|
"(V?)MAX(C?)SSrm",
|
|
|
|
"(V?)MIN(C?)SDrm",
|
|
|
|
"(V?)MIN(C?)SSrm",
|
|
|
|
"(V?)SUBSDrm",
|
|
|
|
"(V?)SUBSSrm",
|
|
|
|
"(V?)UCOMISDrm",
|
|
|
|
"(V?)UCOMISSrm")>;
|
2014-08-19 01:55:51 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup13 : SchedWriteRes<[HWPort5,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 7;
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 2;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup13], (instregex "PUNPCKLWDrm",
|
|
|
|
"(V?)ANDNPDrm",
|
|
|
|
"(V?)ANDNPSrm",
|
|
|
|
"(V?)ANDPDrm",
|
|
|
|
"(V?)ANDPSrm",
|
|
|
|
"(V?)INSERTPSrm",
|
|
|
|
"(V?)ORPDrm",
|
|
|
|
"(V?)ORPSrm",
|
|
|
|
"(V?)PACKSSDWrm",
|
|
|
|
"(V?)PACKSSWBrm",
|
|
|
|
"(V?)PACKUSDWrm",
|
|
|
|
"(V?)PACKUSWBrm",
|
|
|
|
"(V?)PALIGNRrmi",
|
|
|
|
"(V?)PBLENDWrmi",
|
|
|
|
"VPERMILPDmi",
|
|
|
|
"VPERMILPDrm",
|
|
|
|
"VPERMILPSmi",
|
|
|
|
"VPERMILPSrm",
|
|
|
|
"(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",
|
|
|
|
"(V?)XORPDrm",
|
|
|
|
"(V?)XORPSrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
2017-12-08 17:48:44 +08:00
|
|
|
def HWWriteResGroup13_1 : SchedWriteRes<[HWPort5,HWPort23]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup13_1], (instregex "VANDNPDYrm",
|
|
|
|
"VANDNPSYrm",
|
|
|
|
"VANDPDYrm",
|
|
|
|
"VANDPSYrm",
|
|
|
|
"VORPDYrm",
|
|
|
|
"VORPSYrm",
|
|
|
|
"VPACKSSDWYrm",
|
|
|
|
"VPACKSSWBYrm",
|
|
|
|
"VPACKUSDWYrm",
|
|
|
|
"VPACKUSWBYrm",
|
|
|
|
"VPALIGNRYrmi",
|
|
|
|
"VPBLENDWYrmi",
|
|
|
|
"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",
|
|
|
|
"VXORPDYrm",
|
|
|
|
"VXORPSYrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup13_2 : SchedWriteRes<[HWPort5,HWPort23]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup13_2], (instregex "MMX_PALIGNRrmi",
|
|
|
|
"MMX_PINSRWrm",
|
|
|
|
"MMX_PSHUFBrm",
|
|
|
|
"MMX_PSHUFWmi",
|
|
|
|
"MMX_PUNPCKHBWirm",
|
|
|
|
"MMX_PUNPCKHDQirm",
|
|
|
|
"MMX_PUNPCKHWDirm",
|
|
|
|
"MMX_PUNPCKLBWirm",
|
|
|
|
"MMX_PUNPCKLDQirm",
|
|
|
|
"MMX_PUNPCKLWDirm",
|
|
|
|
"(V?)MOVHPDrm",
|
|
|
|
"(V?)MOVHPSrm",
|
|
|
|
"(V?)MOVLPDrm",
|
|
|
|
"(V?)MOVLPSrm",
|
|
|
|
"(V?)PINSRBrm",
|
|
|
|
"(V?)PINSRDrm",
|
|
|
|
"(V?)PINSRQrm",
|
|
|
|
"(V?)PINSRWrm",
|
|
|
|
"(V?)PMOVSXBDrm",
|
|
|
|
"(V?)PMOVSXBQrm",
|
|
|
|
"(V?)PMOVSXBWrm",
|
|
|
|
"(V?)PMOVSXDQrm",
|
|
|
|
"(V?)PMOVSXWDrm",
|
|
|
|
"(V?)PMOVSXWQrm",
|
|
|
|
"(V?)PMOVZXBDrm",
|
|
|
|
"(V?)PMOVZXBQrm",
|
|
|
|
"(V?)PMOVZXBWrm",
|
|
|
|
"(V?)PMOVZXDQrm",
|
|
|
|
"(V?)PMOVZXWDrm",
|
|
|
|
"(V?)PMOVZXWQrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup14 : SchedWriteRes<[HWPort6,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 6;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
2014-08-19 01:55:51 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup14], (instregex "FARJMP64",
|
|
|
|
"JMP(16|32|64)m")>;
|
2014-08-19 01:55:51 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup15 : SchedWriteRes<[HWPort23,HWPort06]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 6;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup15], (instregex "BT(16|32|64)mi8",
|
|
|
|
"RORX(32|64)mi",
|
|
|
|
"SARX(32|64)rm",
|
|
|
|
"SHLX(32|64)rm",
|
|
|
|
"SHRX(32|64)rm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup16 : SchedWriteRes<[HWPort23,HWPort15]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 6;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup16], (instregex "ANDN(32|64)rm",
|
|
|
|
"BLSI(32|64)rm",
|
|
|
|
"BLSMSK(32|64)rm",
|
|
|
|
"BLSR(32|64)rm",
|
|
|
|
"BZHI(32|64)rm",
|
|
|
|
"MMX_PABSBrm",
|
|
|
|
"MMX_PABSDrm",
|
|
|
|
"MMX_PABSWrm",
|
|
|
|
"MMX_PADDBirm",
|
|
|
|
"MMX_PADDDirm",
|
|
|
|
"MMX_PADDQirm",
|
|
|
|
"MMX_PADDSBirm",
|
|
|
|
"MMX_PADDSWirm",
|
|
|
|
"MMX_PADDUSBirm",
|
|
|
|
"MMX_PADDUSWirm",
|
|
|
|
"MMX_PADDWirm",
|
|
|
|
"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_PSIGNBrm",
|
|
|
|
"MMX_PSIGNDrm",
|
|
|
|
"MMX_PSIGNWrm",
|
|
|
|
"MMX_PSUBBirm",
|
|
|
|
"MMX_PSUBDirm",
|
|
|
|
"MMX_PSUBQirm",
|
|
|
|
"MMX_PSUBSBirm",
|
|
|
|
"MMX_PSUBSWirm",
|
|
|
|
"MMX_PSUBUSBirm",
|
|
|
|
"MMX_PSUBUSWirm",
|
|
|
|
"MMX_PSUBWirm",
|
|
|
|
"MOVBE(16|32|64)rm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup16_1 : SchedWriteRes<[HWPort23,HWPort15]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup16_1], (instregex "(V?)PABSBrm",
|
|
|
|
"(V?)PABSDrm",
|
|
|
|
"(V?)PABSWrm",
|
|
|
|
"(V?)PADDBrm",
|
|
|
|
"(V?)PADDDrm",
|
|
|
|
"(V?)PADDQrm",
|
|
|
|
"(V?)PADDSBrm",
|
|
|
|
"(V?)PADDSWrm",
|
|
|
|
"(V?)PADDUSBrm",
|
|
|
|
"(V?)PADDUSWrm",
|
|
|
|
"(V?)PADDWrm",
|
|
|
|
"(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?)PSUBBrm",
|
|
|
|
"(V?)PSUBDrm",
|
|
|
|
"(V?)PSUBQrm",
|
|
|
|
"(V?)PSUBSBrm",
|
|
|
|
"(V?)PSUBSWrm",
|
|
|
|
"(V?)PSUBUSBrm",
|
|
|
|
"(V?)PSUBUSWrm",
|
|
|
|
"(V?)PSUBWrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup16_2 : SchedWriteRes<[HWPort23,HWPort15]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup16_2], (instregex "VPABSBYrm",
|
|
|
|
"VPABSDYrm",
|
|
|
|
"VPABSWYrm",
|
|
|
|
"VPADDBYrm",
|
|
|
|
"VPADDDYrm",
|
|
|
|
"VPADDQYrm",
|
|
|
|
"VPADDSBYrm",
|
|
|
|
"VPADDSWYrm",
|
|
|
|
"VPADDUSBYrm",
|
|
|
|
"VPADDUSWYrm",
|
|
|
|
"VPADDWYrm",
|
|
|
|
"VPAVGBYrm",
|
|
|
|
"VPAVGWYrm",
|
|
|
|
"VPCMPEQBYrm",
|
|
|
|
"VPCMPEQDYrm",
|
|
|
|
"VPCMPEQQYrm",
|
|
|
|
"VPCMPEQWYrm",
|
|
|
|
"VPCMPGTBYrm",
|
|
|
|
"VPCMPGTDYrm",
|
|
|
|
"VPCMPGTWYrm",
|
|
|
|
"VPMAXSBYrm",
|
|
|
|
"VPMAXSDYrm",
|
|
|
|
"VPMAXSWYrm",
|
|
|
|
"VPMAXUBYrm",
|
|
|
|
"VPMAXUDYrm",
|
|
|
|
"VPMAXUWYrm",
|
|
|
|
"VPMINSBYrm",
|
|
|
|
"VPMINSDYrm",
|
|
|
|
"VPMINSWYrm",
|
|
|
|
"VPMINUBYrm",
|
|
|
|
"VPMINUDYrm",
|
|
|
|
"VPMINUWYrm",
|
|
|
|
"VPSIGNBYrm",
|
|
|
|
"VPSIGNDYrm",
|
|
|
|
"VPSIGNWYrm",
|
|
|
|
"VPSUBBYrm",
|
|
|
|
"VPSUBDYrm",
|
|
|
|
"VPSUBQYrm",
|
|
|
|
"VPSUBSBYrm",
|
|
|
|
"VPSUBSWYrm",
|
|
|
|
"VPSUBUSBYrm",
|
|
|
|
"VPSUBUSWYrm",
|
|
|
|
"VPSUBWYrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup17 : SchedWriteRes<[HWPort23,HWPort015]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 7;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup17], (instregex "(V?)BLENDPDrmi",
|
|
|
|
"(V?)BLENDPSrmi",
|
|
|
|
"VINSERTF128rm",
|
|
|
|
"VINSERTI128rm",
|
|
|
|
"(V?)PANDNrm",
|
|
|
|
"(V?)PANDrm",
|
|
|
|
"VPBLENDDrmi",
|
|
|
|
"(V?)PORrm",
|
|
|
|
"(V?)PXORrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
2017-12-08 17:48:44 +08:00
|
|
|
def HWWriteResGroup17_1 : SchedWriteRes<[HWPort23,HWPort015]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup17_1], (instregex "MMX_PANDNirm",
|
|
|
|
"MMX_PANDirm",
|
|
|
|
"MMX_PORirm",
|
|
|
|
"MMX_PXORirm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup17_2 : SchedWriteRes<[HWPort23,HWPort015]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup17_2], (instregex "VBLENDPDYrmi",
|
|
|
|
"VBLENDPSYrmi",
|
|
|
|
"VPANDNYrm",
|
|
|
|
"VPANDYrm",
|
|
|
|
"VPBLENDDYrmi",
|
|
|
|
"VPORYrm",
|
|
|
|
"VPXORYrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup18 : SchedWriteRes<[HWPort23,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 6;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup18], (instrs POP16r, POP32r, POP64r)>;
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup18], (instregex "ADD(8|16|32|64)rm",
|
|
|
|
"AND(8|16|32|64)rm",
|
|
|
|
"CMP(8|16|32|64)mi",
|
|
|
|
"CMP(8|16|32|64)mr",
|
|
|
|
"CMP(8|16|32|64)rm",
|
|
|
|
"OR(8|16|32|64)rm",
|
|
|
|
"POP(16|32|64)rmr",
|
|
|
|
"SUB(8|16|32|64)rm",
|
|
|
|
"TEST(8|16|32|64)mr",
|
|
|
|
"TEST(8|16|32|64)mi",
|
|
|
|
"XOR(8|16|32|64)rm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup19 : SchedWriteRes<[HWPort237,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 2;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup19], (instregex "SFENCE")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup20 : SchedWriteRes<[HWPort4,HWPort5,HWPort237]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 2;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup20], (instregex "(V?)EXTRACTPSmr",
|
|
|
|
"(V?)PEXTRBmr",
|
|
|
|
"(V?)PEXTRDmr",
|
|
|
|
"(V?)PEXTRQmr",
|
|
|
|
"(V?)PEXTRWmr",
|
|
|
|
"(V?)STMXCSR")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup21 : SchedWriteRes<[HWPort4,HWPort6,HWPort237]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 2;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup21], (instregex "FNSTCW16m")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup22 : SchedWriteRes<[HWPort4,HWPort237,HWPort06]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 2;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-01-19 13:47:32 +08:00
|
|
|
def: InstRW<[HWWriteResGroup22], (instregex "SET(AE|B|E|G|GE|L|LE|NE|NO|NP|NS|O|P|S)m")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup23 : SchedWriteRes<[HWPort4,HWPort237,HWPort15]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 2;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup23], (instregex "MOVBE(32|64)mr")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup23_16 : SchedWriteRes<[HWPort06, HWPort237, HWPort4]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 2;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup23_16], (instregex "MOVBE16mr")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup24 : SchedWriteRes<[HWPort4,HWPort237,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 2;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup24], (instrs PUSH16r, PUSH32r, PUSH64r)>;
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup24], (instregex "PUSH(16|32|64)rmr",
|
|
|
|
"PUSH64i8",
|
|
|
|
"STOSB",
|
|
|
|
"STOSL",
|
|
|
|
"STOSQ",
|
|
|
|
"STOSW")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup25 : SchedWriteRes<[HWPort4,HWPort23,HWPort237,HWPort06]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 7;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup25], (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-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup26 : SchedWriteRes<[HWPort4,HWPort23,HWPort237,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 7;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup26], (instregex "ADD(8|16|32|64)mi",
|
|
|
|
"ADD(8|16|32|64)mr",
|
|
|
|
"AND(8|16|32|64)mi",
|
|
|
|
"AND(8|16|32|64)mr",
|
|
|
|
"DEC(8|16|32|64)m",
|
|
|
|
"INC(8|16|32|64)m",
|
|
|
|
"NEG(8|16|32|64)m",
|
|
|
|
"NOT(8|16|32|64)m",
|
|
|
|
"OR(8|16|32|64)mi",
|
|
|
|
"OR(8|16|32|64)mr",
|
|
|
|
"POP(16|32|64)rmm",
|
|
|
|
"PUSH(16|32|64)rmm",
|
|
|
|
"SUB(8|16|32|64)mi",
|
|
|
|
"SUB(8|16|32|64)mr",
|
|
|
|
"XOR(8|16|32|64)mi",
|
|
|
|
"XOR(8|16|32|64)mr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup27 : SchedWriteRes<[HWPort5]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup27], (instregex "BLENDVPDrr0",
|
|
|
|
"BLENDVPSrr0",
|
|
|
|
"MMX_PINSRWrr",
|
|
|
|
"PBLENDVBrr0",
|
2018-03-25 02:36:01 +08:00
|
|
|
"VBLENDVPD(Y?)rr",
|
|
|
|
"VBLENDVPS(Y?)rr",
|
|
|
|
"VPBLENDVB(Y?)rr",
|
2018-03-22 00:19:03 +08:00
|
|
|
"(V?)PINSRBrr",
|
|
|
|
"(V?)PINSRDrr",
|
|
|
|
"(V?)PINSRQrr",
|
|
|
|
"(V?)PINSRWrr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup28 : SchedWriteRes<[HWPort01]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup28], (instregex "FDECSTP")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup29 : SchedWriteRes<[HWPort06]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup29], (instregex "ROL(8|16|32|64)r1",
|
|
|
|
"ROL(8|16|32|64)ri",
|
|
|
|
"ROR(8|16|32|64)r1",
|
|
|
|
"ROR(8|16|32|64)ri")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup30 : SchedWriteRes<[HWPort0156]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup30], (instregex "LFENCE")>;
|
|
|
|
def: InstRW<[HWWriteResGroup30], (instregex "MFENCE")>;
|
|
|
|
def: InstRW<[HWWriteResGroup30], (instregex "WAIT")>;
|
|
|
|
def: InstRW<[HWWriteResGroup30], (instregex "XGETBV")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup31 : SchedWriteRes<[HWPort0,HWPort5]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup31], (instregex "MMX_PEXTRWrr",
|
|
|
|
"VCVTPH2PSYrr",
|
|
|
|
"VCVTPH2PSrr",
|
|
|
|
"(V?)CVTPS2PDrr",
|
|
|
|
"(V?)CVTSS2SDrr",
|
|
|
|
"(V?)EXTRACTPSrr",
|
|
|
|
"(V?)PEXTRBrr",
|
|
|
|
"(V?)PEXTRDrr",
|
|
|
|
"(V?)PEXTRQrr",
|
|
|
|
"(V?)PEXTRWrr",
|
|
|
|
"(V?)PSLLDrr",
|
|
|
|
"(V?)PSLLQrr",
|
|
|
|
"(V?)PSLLWrr",
|
|
|
|
"(V?)PSRADrr",
|
|
|
|
"(V?)PSRAWrr",
|
|
|
|
"(V?)PSRLDrr",
|
|
|
|
"(V?)PSRLQrr",
|
|
|
|
"(V?)PSRLWrr",
|
|
|
|
"(V?)PTESTrr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup32 : SchedWriteRes<[HWPort6,HWPort0156]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup32], (instregex "CLFLUSH")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup33 : SchedWriteRes<[HWPort01,HWPort015]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup33], (instregex "MMX_MOVDQ2Qrr")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup34 : SchedWriteRes<[HWPort06,HWPort15]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup34], (instregex "BEXTR(32|64)rr",
|
|
|
|
"BSWAP(16|32|64)r")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup35 : SchedWriteRes<[HWPort06,HWPort0156]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup35], (instrs CWD, JCXZ, JECXZ, JRCXZ)>;
|
|
|
|
def: InstRW<[HWWriteResGroup35], (instregex "ADC(8|16|32|64)ri",
|
|
|
|
"ADC(8|16|32|64)rr",
|
|
|
|
"ADC(8|16|32|64)i",
|
|
|
|
"CMOV(AE|B|E|G|GE|L|LE|NE|NO|NP|NS|O|P|S)(16|32|64)rr",
|
|
|
|
"SBB(8|16|32|64)ri",
|
|
|
|
"SBB(8|16|32|64)rr",
|
|
|
|
"SBB(8|16|32|64)i",
|
|
|
|
"SET(A|BE)r")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup36 : SchedWriteRes<[HWPort5,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 8;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup36], (instregex "BLENDVPDrm0",
|
|
|
|
"BLENDVPSrm0",
|
|
|
|
"PBLENDVBrm0",
|
|
|
|
"VBLENDVPDrm",
|
|
|
|
"VBLENDVPSrm",
|
|
|
|
"VMASKMOVPDrm",
|
|
|
|
"VMASKMOVPSrm",
|
|
|
|
"VPBLENDVBrm",
|
|
|
|
"VPMASKMOVDrm",
|
|
|
|
"VPMASKMOVQrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
2017-12-08 17:48:44 +08:00
|
|
|
def HWWriteResGroup36_1 : SchedWriteRes<[HWPort5,HWPort23]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup36_1], (instregex "VBLENDVPDYrm",
|
|
|
|
"VBLENDVPSYrm",
|
|
|
|
"VMASKMOVPDYrm",
|
|
|
|
"VMASKMOVPSYrm",
|
|
|
|
"VPBLENDVBYrm",
|
|
|
|
"VPMASKMOVDYrm",
|
|
|
|
"VPMASKMOVQYrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup36_2 : SchedWriteRes<[HWPort5,HWPort23]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup36_2], (instregex "MMX_PACKSSDWirm",
|
|
|
|
"MMX_PACKSSWBirm",
|
|
|
|
"MMX_PACKUSWBirm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup37 : SchedWriteRes<[HWPort23,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 7;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup37], (instregex "LEAVE64",
|
|
|
|
"SCASB",
|
|
|
|
"SCASL",
|
|
|
|
"SCASQ",
|
|
|
|
"SCASW")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup38 : SchedWriteRes<[HWPort0,HWPort5,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 8;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup38], (instregex "(V?)PSLLDrm",
|
|
|
|
"(V?)PSLLQrm",
|
|
|
|
"(V?)PSLLWrm",
|
|
|
|
"(V?)PSRADrm",
|
|
|
|
"(V?)PSRAWrm",
|
|
|
|
"(V?)PSRLDrm",
|
|
|
|
"(V?)PSRLQrm",
|
|
|
|
"(V?)PSRLWrm",
|
|
|
|
"(V?)PTESTrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup39 : SchedWriteRes<[HWPort0,HWPort01,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 7;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup39], (instregex "FLDCW16m")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup40 : SchedWriteRes<[HWPort0,HWPort23,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 7;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup40], (instregex "(V?)LDMXCSR")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup41 : SchedWriteRes<[HWPort6,HWPort23,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 7;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup41], (instregex "LRETQ",
|
|
|
|
"RETL",
|
|
|
|
"RETQ")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup42 : SchedWriteRes<[HWPort23,HWPort06,HWPort15]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 7;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2017-12-17 02:35:31 +08:00
|
|
|
def: InstRW<[HWWriteResGroup42], (instregex "BEXTR(32|64)rm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup43 : SchedWriteRes<[HWPort23,HWPort06,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 7;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[HWWriteResGroup43], (instregex "ADC(8|16|32|64)rm")>;
|
2018-01-19 13:47:32 +08:00
|
|
|
def: InstRW<[HWWriteResGroup43], (instregex "CMOV(AE|B|E|G|GE|L|LE|NE|NO|NP|NS|O|P|S)(16|32|64)rm")>;
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[HWWriteResGroup43], (instregex "SBB(8|16|32|64)rm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup44 : SchedWriteRes<[HWPort4,HWPort6,HWPort237,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 3;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup44], (instregex "CALL(16|32|64)r")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup45 : SchedWriteRes<[HWPort4,HWPort237,HWPort06,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 3;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup45], (instregex "CALL64pcrel32",
|
|
|
|
"SET(A|BE)m")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup46 : SchedWriteRes<[HWPort4,HWPort23,HWPort237,HWPort06]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 8;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,1,1,2];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup46], (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-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup47 : SchedWriteRes<[HWPort4,HWPort23,HWPort237,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 8;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,1,1,2];
|
|
|
|
}
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[HWWriteResGroup47], (instregex "XADD(8|16|32|64)rm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup48 : SchedWriteRes<[HWPort4,HWPort6,HWPort23,HWPort237,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 8;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,1,1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup48], (instregex "CALL(16|32|64)m",
|
|
|
|
"FARCALL64")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup49 : SchedWriteRes<[HWPort0]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup49], (instregex "(V?)MOVMSKPD(Y?)rr",
|
|
|
|
"(V?)MOVMSKPS(Y?)rr",
|
|
|
|
"(V?)PMOVMSKB(Y?)rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup50 : SchedWriteRes<[HWPort1]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup50], (instrs MUL8r, IMUL8r, IMUL16rr, IMUL32rr, IMUL32rri, IMUL32rri8, IMUL64rr, IMUL64rri32, IMUL64rri8)>;
|
|
|
|
def: InstRW<[HWWriteResGroup50], (instregex "ADD_FPrST0",
|
|
|
|
"ADD_FST0r",
|
|
|
|
"ADD_FrST0",
|
|
|
|
"MMX_CVTPI2PSirr",
|
|
|
|
"PDEP(32|64)rr",
|
|
|
|
"PEXT(32|64)rr",
|
|
|
|
"SHLD(16|32|64)rri8",
|
|
|
|
"SHRD(16|32|64)rri8",
|
|
|
|
"SUBR_FPrST0",
|
|
|
|
"SUBR_FST0r",
|
|
|
|
"SUBR_FrST0",
|
|
|
|
"SUB_FPrST0",
|
|
|
|
"SUB_FST0r",
|
|
|
|
"SUB_FrST0",
|
|
|
|
"(V?)ADDPD(Y?)rr",
|
|
|
|
"(V?)ADDPS(Y?)rr",
|
|
|
|
"(V?)ADDSDrr",
|
|
|
|
"(V?)ADDSSrr",
|
|
|
|
"(V?)ADDSUBPD(Y?)rr",
|
|
|
|
"(V?)ADDSUBPS(Y?)rr",
|
|
|
|
"(V?)CMPPD(Y?)rri",
|
|
|
|
"(V?)CMPPS(Y?)rri",
|
|
|
|
"(V?)CMPSDrr",
|
|
|
|
"(V?)CMPSSrr",
|
|
|
|
"(V?)COMISDrr",
|
|
|
|
"(V?)COMISSrr",
|
|
|
|
"(V?)CVTDQ2PS(Y?)rr",
|
|
|
|
"(V?)CVTPS2DQ(Y?)rr",
|
|
|
|
"(V?)CVTTPS2DQ(Y?)rr",
|
|
|
|
"(V?)MAX(C?)PD(Y?)rr",
|
|
|
|
"(V?)MAX(C?)PS(Y?)rr",
|
|
|
|
"(V?)MAX(C?)SDrr",
|
|
|
|
"(V?)MAX(C?)SSrr",
|
|
|
|
"(V?)MIN(C?)PD(Y?)rr",
|
|
|
|
"(V?)MIN(C?)PS(Y?)rr",
|
|
|
|
"(V?)MIN(C?)SDrr",
|
|
|
|
"(V?)MIN(C?)SSrr",
|
|
|
|
"(V?)SUBPD(Y?)rr",
|
|
|
|
"(V?)SUBPS(Y?)rr",
|
|
|
|
"(V?)SUBSDrr",
|
|
|
|
"(V?)SUBSSrr",
|
|
|
|
"(V?)UCOMISDrr",
|
|
|
|
"(V?)UCOMISSrr")>;
|
2017-08-28 18:04:16 +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 HWWriteResGroup50_16i : SchedWriteRes<[HWPort1, HWPort0156]> {
|
2017-08-28 18:04:16 +08:00
|
|
|
let Latency = 3;
|
[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
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
2017-08-28 18:04:16 +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: InstRW<[HWWriteResGroup50_16i], (instrs IMUL16rri, IMUL16rri8)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup51 : SchedWriteRes<[HWPort5]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup51], (instregex "VBROADCASTSDYrr",
|
|
|
|
"VBROADCASTSSYrr",
|
|
|
|
"VEXTRACTF128rr",
|
|
|
|
"VEXTRACTI128rr",
|
|
|
|
"VINSERTF128rr",
|
|
|
|
"VINSERTI128rr",
|
|
|
|
"VPBROADCASTBYrr",
|
|
|
|
"VPBROADCASTBrr",
|
|
|
|
"VPBROADCASTDYrr",
|
|
|
|
"VPBROADCASTQYrr",
|
|
|
|
"VPBROADCASTWYrr",
|
|
|
|
"VPBROADCASTWrr",
|
|
|
|
"VPERM2F128rr",
|
|
|
|
"VPERM2I128rr",
|
|
|
|
"VPERMDYrr",
|
|
|
|
"VPERMPDYri",
|
|
|
|
"VPERMPSYrr",
|
|
|
|
"VPERMQYri",
|
|
|
|
"VPMOVSXBDYrr",
|
|
|
|
"VPMOVSXBQYrr",
|
|
|
|
"VPMOVSXBWYrr",
|
|
|
|
"VPMOVSXDQYrr",
|
|
|
|
"VPMOVSXWDYrr",
|
|
|
|
"VPMOVSXWQYrr",
|
|
|
|
"VPMOVZXBDYrr",
|
|
|
|
"VPMOVZXBQYrr",
|
|
|
|
"VPMOVZXBWYrr",
|
|
|
|
"VPMOVZXDQYrr",
|
|
|
|
"VPMOVZXWDYrr",
|
|
|
|
"VPMOVZXWQYrr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup52 : SchedWriteRes<[HWPort1,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 9;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup52], (instregex "(V?)ADDPDrm",
|
|
|
|
"(V?)ADDPSrm",
|
|
|
|
"(V?)ADDSUBPDrm",
|
|
|
|
"(V?)ADDSUBPSrm",
|
|
|
|
"(V?)CMPPDrmi",
|
|
|
|
"(V?)CMPPSrmi",
|
|
|
|
"(V?)CVTDQ2PSrm",
|
|
|
|
"(V?)CVTPS2DQrm",
|
|
|
|
"(V?)CVTTPS2DQrm",
|
|
|
|
"(V?)MAX(C?)PDrm",
|
|
|
|
"(V?)MAX(C?)PSrm",
|
|
|
|
"(V?)MIN(C?)PDrm",
|
|
|
|
"(V?)MIN(C?)PSrm",
|
|
|
|
"(V?)SUBPDrm",
|
|
|
|
"(V?)SUBPSrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
2017-12-08 17:48:44 +08:00
|
|
|
def HWWriteResGroup52_1 : SchedWriteRes<[HWPort1,HWPort23]> {
|
|
|
|
let Latency = 10;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
2017-08-28 18:04:16 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup52_1], (instregex "ADD_F32m",
|
|
|
|
"ADD_F64m",
|
|
|
|
"ILD_F16m",
|
|
|
|
"ILD_F32m",
|
|
|
|
"ILD_F64m",
|
|
|
|
"SUBR_F32m",
|
|
|
|
"SUBR_F64m",
|
|
|
|
"SUB_F32m",
|
|
|
|
"SUB_F64m",
|
|
|
|
"VADDPDYrm",
|
|
|
|
"VADDPSYrm",
|
|
|
|
"VADDSUBPDYrm",
|
|
|
|
"VADDSUBPSYrm",
|
|
|
|
"VCMPPDYrmi",
|
|
|
|
"VCMPPSYrmi",
|
|
|
|
"VCVTDQ2PSYrm",
|
|
|
|
"VCVTPS2DQYrm",
|
|
|
|
"VCVTTPS2DQYrm",
|
|
|
|
"VMAX(C?)PDYrm",
|
|
|
|
"VMAX(C?)PSYrm",
|
|
|
|
"VMIN(C?)PDYrm",
|
|
|
|
"VMIN(C?)PSYrm",
|
|
|
|
"VSUBPDYrm",
|
|
|
|
"VSUBPSYrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup53 : SchedWriteRes<[HWPort5,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 10;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup53], (instregex "VPERM2F128rm",
|
|
|
|
"VPERM2I128rm",
|
|
|
|
"VPERMDYrm",
|
|
|
|
"VPERMPDYmi",
|
|
|
|
"VPERMPSYrm",
|
|
|
|
"VPERMQYmi",
|
|
|
|
"VPMOVZXBDYrm",
|
|
|
|
"VPMOVZXBQYrm",
|
|
|
|
"VPMOVZXBWYrm",
|
|
|
|
"VPMOVZXDQYrm",
|
|
|
|
"VPMOVZXWQYrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
2017-12-08 17:48:44 +08:00
|
|
|
def HWWriteResGroup53_1 : SchedWriteRes<[HWPort5,HWPort23]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup53_1], (instregex "VPMOVSXBWYrm",
|
|
|
|
"VPMOVSXDQYrm",
|
|
|
|
"VPMOVSXWDYrm",
|
|
|
|
"VPMOVZXWDYrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup54 : SchedWriteRes<[HWPort0156]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [3];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup54], (instregex "XADD(8|16|32|64)rr",
|
|
|
|
"XCHG8rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup55 : SchedWriteRes<[HWPort0,HWPort5]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-25 02:36:01 +08:00
|
|
|
def: InstRW<[HWWriteResGroup55], (instregex "VPSLLVD(Y?)rr",
|
|
|
|
"VPSRAVD(Y?)rr",
|
|
|
|
"VPSRLVD(Y?)rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup56 : SchedWriteRes<[HWPort5,HWPort15]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup56], (instregex "MMX_PHADDDrr",
|
|
|
|
"MMX_PHADDSWrr",
|
|
|
|
"MMX_PHADDWrr",
|
|
|
|
"MMX_PHSUBDrr",
|
|
|
|
"MMX_PHSUBSWrr",
|
|
|
|
"MMX_PHSUBWrr",
|
|
|
|
"(V?)PHADDD(Y?)rr",
|
|
|
|
"(V?)PHADDSW(Y?)rr",
|
|
|
|
"(V?)PHADDW(Y?)rr",
|
|
|
|
"(V?)PHSUBD(Y?)rr",
|
|
|
|
"(V?)PHSUBSW(Y?)rr",
|
|
|
|
"(V?)PHSUBW(Y?)rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup57 : SchedWriteRes<[HWPort5,HWPort0156]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup57], (instregex "MMX_PACKSSDWirr",
|
|
|
|
"MMX_PACKSSWBirr",
|
|
|
|
"MMX_PACKUSWBirr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup58 : SchedWriteRes<[HWPort6,HWPort0156]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup58], (instregex "CLD")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup59 : SchedWriteRes<[HWPort06,HWPort0156]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup59], (instregex "CMOV(A|BE)(16|32|64)rr",
|
|
|
|
"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-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup60 : SchedWriteRes<[HWPort06,HWPort0156]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup60], (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-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup61 : SchedWriteRes<[HWPort0,HWPort4,HWPort237]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 4;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup61], (instregex "FNSTSWm")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup62 : SchedWriteRes<[HWPort1,HWPort4,HWPort237]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 4;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup62], (instregex "ISTT_FP16m",
|
|
|
|
"ISTT_FP32m",
|
|
|
|
"ISTT_FP64m",
|
|
|
|
"IST_F16m",
|
|
|
|
"IST_F32m",
|
|
|
|
"IST_FP16m",
|
|
|
|
"IST_FP32m",
|
|
|
|
"IST_FP64m")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup63 : SchedWriteRes<[HWPort0,HWPort5,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 10;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [2,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup63], (instregex "VPSLLVDYrm",
|
|
|
|
"VPSRAVDYrm",
|
|
|
|
"VPSRLVDYrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup63_1 : SchedWriteRes<[HWPort0,HWPort5,HWPort23]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [2,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup63_1], (instregex "VPSLLVDrm",
|
|
|
|
"VPSRAVDrm",
|
|
|
|
"VPSRLVDrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup64 : SchedWriteRes<[HWPort5,HWPort23,HWPort15]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 8;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [2,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup64], (instregex "MMX_PHADDDrm",
|
|
|
|
"MMX_PHADDSWrm",
|
|
|
|
"MMX_PHADDWrm",
|
|
|
|
"MMX_PHSUBDrm",
|
|
|
|
"MMX_PHSUBSWrm",
|
|
|
|
"MMX_PHSUBWrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup64_1 : SchedWriteRes<[HWPort5,HWPort23,HWPort15]> {
|
|
|
|
let Latency = 10;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [2,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup64_1], (instregex "VPHADDDYrm",
|
|
|
|
"VPHADDSWYrm",
|
|
|
|
"VPHADDWYrm",
|
|
|
|
"VPHSUBDYrm",
|
|
|
|
"VPHSUBSWYrm",
|
|
|
|
"VPHSUBWYrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup64_2 : SchedWriteRes<[HWPort5,HWPort23,HWPort15]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [2,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup64_2], (instregex "(V?)PHADDDrm",
|
|
|
|
"(V?)PHADDSWrm",
|
|
|
|
"(V?)PHADDWrm",
|
|
|
|
"(V?)PHSUBDrm",
|
|
|
|
"(V?)PHSUBSWrm",
|
|
|
|
"(V?)PHSUBWrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup65 : SchedWriteRes<[HWPort23,HWPort06,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 8;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,2];
|
|
|
|
}
|
2018-01-19 13:47:32 +08:00
|
|
|
def: InstRW<[HWWriteResGroup65], (instregex "CMOV(A|BE)(16|32|64)rm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup66 : SchedWriteRes<[HWPort23,HWPort237,HWPort06,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 9;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,1,1,2];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup66], (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-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup67 : SchedWriteRes<[HWPort23,HWPort237,HWPort06,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 9;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,1,2,1];
|
|
|
|
}
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[HWWriteResGroup67], (instregex "ROR(8|16|32|64)mCL")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup68 : SchedWriteRes<[HWPort4,HWPort23,HWPort237,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 9;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 6;
|
|
|
|
let ResourceCycles = [1,1,1,3];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup68], (instregex "ADC(8|16|32|64)mi",
|
|
|
|
"XCHG(8|16|32|64)rm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup69 : SchedWriteRes<[HWPort4,HWPort23,HWPort237,HWPort06,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 9;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 6;
|
|
|
|
let ResourceCycles = [1,1,1,2,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup69], (instregex "ADC(8|16|32|64)mr",
|
|
|
|
"CMPXCHG(8|16|32|64)rm",
|
|
|
|
"ROL(8|16|32|64)mCL",
|
|
|
|
"SAR(8|16|32|64)mCL",
|
|
|
|
"SBB(8|16|32|64)mi",
|
|
|
|
"SBB(8|16|32|64)mr",
|
|
|
|
"SHL(8|16|32|64)mCL",
|
|
|
|
"SHR(8|16|32|64)mCL")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup70 : SchedWriteRes<[HWPort0,HWPort1]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup70], (instregex "(V?)CVTSD2SI64rr",
|
|
|
|
"(V?)CVTSD2SIrr",
|
|
|
|
"(V?)CVTSS2SI64rr",
|
|
|
|
"(V?)CVTSS2SIrr",
|
|
|
|
"(V?)CVTTSD2SI64rr",
|
|
|
|
"(V?)CVTTSD2SIrr",
|
|
|
|
"(V?)CVTTSS2SI64rr",
|
|
|
|
"(V?)CVTTSS2SIrr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup71 : SchedWriteRes<[HWPort0,HWPort5]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup71], (instregex "VCVTPS2PDYrr",
|
|
|
|
"VPSLLDYrr",
|
|
|
|
"VPSLLQYrr",
|
|
|
|
"VPSLLWYrr",
|
|
|
|
"VPSRADYrr",
|
|
|
|
"VPSRAWYrr",
|
|
|
|
"VPSRLDYrr",
|
|
|
|
"VPSRLQYrr",
|
|
|
|
"VPSRLWYrr",
|
|
|
|
"VPTESTYrr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup72 : SchedWriteRes<[HWPort0,HWPort0156]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup72], (instregex "FNSTSW16r")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup73 : SchedWriteRes<[HWPort1,HWPort5]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup73], (instregex "MMX_CVTPD2PIirr",
|
|
|
|
"MMX_CVTPI2PDirr",
|
|
|
|
"MMX_CVTPS2PIirr",
|
|
|
|
"MMX_CVTTPD2PIirr",
|
|
|
|
"MMX_CVTTPS2PIirr",
|
|
|
|
"(V?)CVTDQ2PDrr",
|
|
|
|
"(V?)CVTPD2DQrr",
|
|
|
|
"(V?)CVTPD2PSrr",
|
|
|
|
"VCVTPS2PHrr",
|
|
|
|
"(V?)CVTSD2SSrr",
|
|
|
|
"(V?)CVTSI642SDrr",
|
|
|
|
"(V?)CVTSI2SDrr",
|
|
|
|
"(V?)CVTSI2SSrr",
|
|
|
|
"(V?)CVTTPD2DQrr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup74 : SchedWriteRes<[HWPort1,HWPort6]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup74], (instrs IMUL64r, MUL64r, MULX64rr)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup74_16 : SchedWriteRes<[HWPort1, HWPort0156]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup74_16], (instrs IMUL16r, MUL16r)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup75 : SchedWriteRes<[HWPort1,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 11;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup75], (instregex "FICOM16m",
|
|
|
|
"FICOM32m",
|
|
|
|
"FICOMP16m",
|
|
|
|
"FICOMP32m")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup76 : SchedWriteRes<[HWPort0,HWPort1,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 9;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup76], (instregex "(V?)CVTSD2SI64rm",
|
|
|
|
"(V?)CVTSD2SIrm",
|
|
|
|
"(V?)CVTSS2SI64rm",
|
|
|
|
"(V?)CVTSS2SIrm",
|
|
|
|
"(V?)CVTTSD2SI64rm",
|
|
|
|
"(V?)CVTTSD2SIrm",
|
|
|
|
"VCVTTSS2SI64rm",
|
|
|
|
"(V?)CVTTSS2SIrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup77 : SchedWriteRes<[HWPort0,HWPort5,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 10;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup77], (instregex "VCVTPS2PDYrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup77_1 : SchedWriteRes<[HWPort0,HWPort5,HWPort23]> {
|
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup77_1], (instregex "VPTESTYrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup78 : SchedWriteRes<[HWPort1,HWPort5,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 10;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup78], (instregex "CVTPD2DQrm",
|
|
|
|
"CVTPD2PSrm",
|
|
|
|
"CVTTPD2DQrm",
|
|
|
|
"MMX_CVTPD2PIirm",
|
|
|
|
"MMX_CVTTPD2PIirm",
|
|
|
|
"(V?)CVTDQ2PDrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup78_1 : SchedWriteRes<[HWPort1,HWPort5,HWPort23]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup78_1], (instregex "MMX_CVTPI2PDirm",
|
|
|
|
"(V?)CVTSD2SSrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup79 : SchedWriteRes<[HWPort1,HWPort6,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 9;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-23 03:22:51 +08:00
|
|
|
def: InstRW<[HWWriteResGroup79], (instrs IMUL64m, MUL64m, MULX64rm)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup80 : SchedWriteRes<[HWPort5,HWPort23,HWPort015]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 9;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup80], (instregex "VPBROADCASTBYrm",
|
|
|
|
"VPBROADCASTBrm",
|
|
|
|
"VPBROADCASTWYrm",
|
|
|
|
"VPBROADCASTWrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup81 : SchedWriteRes<[HWPort0156]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [4];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup81], (instregex "FNCLEX")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup82 : SchedWriteRes<[HWPort015,HWPort0156]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,3];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup82], (instregex "VZEROUPPER")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup83 : SchedWriteRes<[HWPort1,HWPort6,HWPort0156]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,2];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup83], (instregex "LAR(16|32|64)rr")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup84 : SchedWriteRes<[HWPort0,HWPort4,HWPort237,HWPort15]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 5;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
2018-03-25 02:36:01 +08:00
|
|
|
def: InstRW<[HWWriteResGroup84], (instregex "VMASKMOVPD(Y?)mr",
|
|
|
|
"VMASKMOVPS(Y?)mr",
|
|
|
|
"VPMASKMOVD(Y?)mr",
|
|
|
|
"VPMASKMOVQ(Y?)mr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup85 : SchedWriteRes<[HWPort1,HWPort4,HWPort5,HWPort237]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 5;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup85], (instregex "VCVTPS2PHmr")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup86 : SchedWriteRes<[HWPort1,HWPort23,HWPort237,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 10;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup86], (instregex "SHLD(16|32|64)mri8",
|
|
|
|
"SHRD(16|32|64)mri8")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup87 : SchedWriteRes<[HWPort1,HWPort6,HWPort23,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 9;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,2,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup87], (instregex "LAR(16|32|64)rm",
|
|
|
|
"LSL(16|32|64)rm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup88 : SchedWriteRes<[HWPort4,HWPort237,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 5;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 6;
|
|
|
|
let ResourceCycles = [1,1,4];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup88], (instregex "PUSHF16",
|
|
|
|
"PUSHF64")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup89 : SchedWriteRes<[HWPort0]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup89], (instregex "MMX_PMADDUBSWrr",
|
|
|
|
"MMX_PMADDWDirr",
|
|
|
|
"MMX_PMULHRSWrr",
|
|
|
|
"MMX_PMULHUWirr",
|
|
|
|
"MMX_PMULHWirr",
|
|
|
|
"MMX_PMULLWirr",
|
|
|
|
"MMX_PMULUDQirr",
|
|
|
|
"MMX_PSADBWirr",
|
|
|
|
"MUL_FPrST0",
|
|
|
|
"MUL_FST0r",
|
|
|
|
"MUL_FrST0",
|
|
|
|
"(V?)PCMPGTQ(Y?)rr",
|
|
|
|
"(V?)PHMINPOSUWrr",
|
|
|
|
"(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?)PSADBW(Y?)rr",
|
|
|
|
"(V?)RCPPSr",
|
|
|
|
"(V?)RCPSSr",
|
|
|
|
"(V?)RSQRTPSr",
|
|
|
|
"(V?)RSQRTSSr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup90 : SchedWriteRes<[HWPort01]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup90], (instregex "(V?)MULPD(Y?)rr",
|
|
|
|
"(V?)MULPS(Y?)rr",
|
|
|
|
"(V?)MULSDrr",
|
|
|
|
"(V?)MULSSrr",
|
|
|
|
"VF(N)?M(ADD|SUB|ADDSUB|SUBADD)(132|213|231)P(D|S)(Y)?r",
|
|
|
|
"VF(N)?M(ADD|SUB)(132|213|231)S(D|S)r")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup91 : SchedWriteRes<[HWPort0,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 10;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup91], (instregex "MMX_PMADDUBSWrm",
|
|
|
|
"MMX_PMADDWDirm",
|
|
|
|
"MMX_PMULHRSWrm",
|
|
|
|
"MMX_PMULHUWirm",
|
|
|
|
"MMX_PMULHWirm",
|
|
|
|
"MMX_PMULLWirm",
|
|
|
|
"MMX_PMULUDQirm",
|
|
|
|
"MMX_PSADBWirm",
|
|
|
|
"(V?)RCPSSm",
|
|
|
|
"(V?)RSQRTSSm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
2017-12-08 17:48:44 +08:00
|
|
|
def HWWriteResGroup91_1 : SchedWriteRes<[HWPort0,HWPort23]> {
|
2018-03-26 13:05:10 +08:00
|
|
|
let Latency = 16;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup91_1], (instregex "(V?)SQRTSSm")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup91_4 : SchedWriteRes<[HWPort0,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 18;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-26 13:05:10 +08:00
|
|
|
def: InstRW<[HWWriteResGroup91_4], (instregex "(V?)DIVSSrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup91_2 : SchedWriteRes<[HWPort0,HWPort23]> {
|
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup91_2], (instregex "(V?)PCMPGTQrm",
|
|
|
|
"(V?)PHMINPOSUWrm",
|
|
|
|
"(V?)PMADDUBSWrm",
|
|
|
|
"(V?)PMADDWDrm",
|
|
|
|
"(V?)PMULDQrm",
|
|
|
|
"(V?)PMULHRSWrm",
|
|
|
|
"(V?)PMULHUWrm",
|
|
|
|
"(V?)PMULHWrm",
|
|
|
|
"(V?)PMULLWrm",
|
|
|
|
"(V?)PMULUDQrm",
|
|
|
|
"(V?)PSADBWrm",
|
|
|
|
"(V?)RCPPSm",
|
|
|
|
"(V?)RSQRTPSm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup91_3 : SchedWriteRes<[HWPort0,HWPort23]> {
|
|
|
|
let Latency = 12;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup91_3], (instregex "MUL_F32m",
|
|
|
|
"MUL_F64m",
|
|
|
|
"VPCMPGTQYrm",
|
|
|
|
"VPMADDUBSWYrm",
|
|
|
|
"VPMADDWDYrm",
|
|
|
|
"VPMULDQYrm",
|
|
|
|
"VPMULHRSWYrm",
|
|
|
|
"VPMULHUWYrm",
|
|
|
|
"VPMULHWYrm",
|
|
|
|
"VPMULLWYrm",
|
|
|
|
"VPMULUDQYrm",
|
|
|
|
"VPSADBWYrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup92 : SchedWriteRes<[HWPort01,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 11;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup92], (instregex "(V?)MULPDrm",
|
|
|
|
"(V?)MULPSrm",
|
|
|
|
"VF(N)?M(ADD|SUB|ADDSUB|SUBADD)(132|213|231)P(D|S)m")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup92_1 : SchedWriteRes<[HWPort01,HWPort23]> {
|
|
|
|
let Latency = 12;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup92_1], (instregex "VMULPDYrm",
|
|
|
|
"VMULPSYrm",
|
|
|
|
"VF(N)?M(ADD|SUB|ADDSUB|SUBADD)(132|213|231)P(D|S)Ym")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup92_2 : SchedWriteRes<[HWPort01,HWPort23]> {
|
|
|
|
let Latency = 10;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup92_2], (instregex "(V?)MULSDrm",
|
|
|
|
"(V?)MULSSrm",
|
|
|
|
"VF(N)?M(ADD|SUB)(132|213|231)S(D|S)m")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup93 : SchedWriteRes<[HWPort1,HWPort5]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup93], (instregex "(V?)CVTSI642SSrr",
|
|
|
|
"(V?)HADDPD(Y?)rr",
|
|
|
|
"(V?)HADDPS(Y?)rr",
|
|
|
|
"(V?)HSUBPD(Y?)rr",
|
|
|
|
"(V?)HSUBPS(Y?)rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup94 : SchedWriteRes<[HWPort1,HWPort6,HWPort06]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup94], (instregex "STR(16|32|64)r")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup95 : SchedWriteRes<[HWPort1,HWPort06,HWPort0156]> {
|
2018-03-23 03:22:51 +08:00
|
|
|
let Latency = 4;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-23 03:22:51 +08:00
|
|
|
def: InstRW<[HWWriteResGroup95], (instrs IMUL32r, MUL32r, MULX32rr)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup96 : SchedWriteRes<[HWPort1,HWPort5,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 11;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,2,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup96], (instregex "(V?)HADDPDrm",
|
|
|
|
"(V?)HADDPSrm",
|
|
|
|
"(V?)HSUBPDrm",
|
|
|
|
"(V?)HSUBPSrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
2017-12-08 17:48:44 +08:00
|
|
|
def HWWriteResGroup96_1 : SchedWriteRes<[HWPort1,HWPort5,HWPort23]> {
|
|
|
|
let Latency = 12;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,2,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup96_1], (instregex "VHADDPDYrm",
|
|
|
|
"VHADDPSYrm",
|
|
|
|
"VHSUBPDYrm",
|
|
|
|
"VHSUBPSYrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup97 : SchedWriteRes<[HWPort0,HWPort1,HWPort5,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 10;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup97], (instregex "CVTTSS2SI64rm")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup98 : SchedWriteRes<[HWPort1,HWPort23,HWPort06,HWPort0156]> {
|
2018-03-23 03:22:51 +08:00
|
|
|
let Latency = 9;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
2018-03-23 03:22:51 +08:00
|
|
|
def: InstRW<[HWWriteResGroup98], (instrs IMUL32m, MUL32m, MULX32rm)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup99 : SchedWriteRes<[HWPort6,HWPort0156]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,4];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup99], (instregex "PAUSE")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup100 : SchedWriteRes<[HWPort06,HWPort0156]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,4];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup100], (instregex "XSETBV")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup101 : SchedWriteRes<[HWPort06,HWPort0156]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [2,3];
|
|
|
|
}
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[HWWriteResGroup101], (instregex "CMPXCHG(8|16|32|64)rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup102 : SchedWriteRes<[HWPort1,HWPort5]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup102], (instregex "VCVTDQ2PDYrr",
|
|
|
|
"VCVTPD2DQYrr",
|
|
|
|
"VCVTPD2PSYrr",
|
|
|
|
"VCVTPS2PHYrr",
|
|
|
|
"VCVTTPD2DQYrr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup103 : SchedWriteRes<[HWPort1,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 13;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup103], (instregex "ADD_FI16m",
|
|
|
|
"ADD_FI32m",
|
|
|
|
"SUBR_FI16m",
|
|
|
|
"SUBR_FI32m",
|
|
|
|
"SUB_FI16m",
|
|
|
|
"SUB_FI32m",
|
2018-03-23 05:55:20 +08:00
|
|
|
"VROUNDPDYm",
|
|
|
|
"VROUNDPSYm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
2017-12-08 17:48:44 +08:00
|
|
|
def HWWriteResGroup103_1 : SchedWriteRes<[HWPort1,HWPort23]> {
|
|
|
|
let Latency = 12;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup103_1], (instregex "(V?)ROUNDPDm",
|
|
|
|
"(V?)ROUNDPSm",
|
|
|
|
"(V?)ROUNDSDm",
|
|
|
|
"(V?)ROUNDSSm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup104 : SchedWriteRes<[HWPort1,HWPort5,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 12;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup104], (instregex "VCVTDQ2PDYrm")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup105 : SchedWriteRes<[HWPort1,HWPort06,HWPort0156]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,2];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup105], (instregex "SHLD(16|32|64)rrCL",
|
|
|
|
"SHRD(16|32|64)rrCL")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup106 : SchedWriteRes<[HWPort1,HWPort4,HWPort5,HWPort237]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 7;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup106], (instregex "VCVTPS2PHYmr")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup107 : SchedWriteRes<[HWPort1,HWPort6,HWPort06,HWPort0156]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup107], (instregex "SLDT(16|32|64)r")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup108 : SchedWriteRes<[HWPort6,HWPort0156]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 6;
|
|
|
|
let ResourceCycles = [1,5];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup108], (instregex "STD")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup109 : SchedWriteRes<[HWPort1,HWPort23,HWPort237,HWPort06,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 12;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 6;
|
|
|
|
let ResourceCycles = [1,1,1,1,2];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup109], (instregex "SHLD(16|32|64)mrCL",
|
|
|
|
"SHRD(16|32|64)mrCL")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup112 : SchedWriteRes<[HWPort0,HWPort5]> {
|
|
|
|
let Latency = 7;
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 3;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [1,2];
|
2014-08-19 01:55:51 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup112], (instregex "(V?)MPSADBW(Y?)rri")>;
|
2014-08-19 01:55:51 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup113 : SchedWriteRes<[HWPort0,HWPort5,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 13;
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 4;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [1,2,1];
|
2014-08-19 01:55:51 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup113], (instregex "(V?)MPSADBWrmi")>;
|
2014-08-19 01:55:51 +08:00
|
|
|
|
2017-12-08 17:48:44 +08:00
|
|
|
def HWWriteResGroup113_1 : SchedWriteRes<[HWPort0,HWPort5,HWPort23]> {
|
|
|
|
let Latency = 14;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,2,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup113_1], (instregex "VMPSADBWYrmi")>;
|
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup114 : SchedWriteRes<[HWPort6,HWPort06,HWPort15,HWPort0156]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 7;
|
|
|
|
let ResourceCycles = [2,2,1,2];
|
2014-08-19 01:55:51 +08:00
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup114], (instrs LOOP)>;
|
2014-08-19 01:55:51 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup115 : SchedWriteRes<[HWPort0,HWPort1,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 15;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup115], (instregex "MUL_FI16m",
|
|
|
|
"MUL_FI32m")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup116 : SchedWriteRes<[HWPort0,HWPort1,HWPort5]> {
|
|
|
|
let Latency = 9;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup116], (instregex "(V?)DPPDrri")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup117 : SchedWriteRes<[HWPort0,HWPort1,HWPort5,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 15;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup117], (instregex "(V?)DPPDrmi")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup118 : SchedWriteRes<[HWPort0]> {
|
|
|
|
let Latency = 10;
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 2;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [2];
|
2014-08-19 01:55:51 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup118], (instregex "(V?)PMULLD(Y?)rr")>;
|
2014-08-19 01:55:51 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup119 : SchedWriteRes<[HWPort0,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 16;
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 3;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [2,1];
|
2014-08-19 01:55:51 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup119], (instregex "(V?)PMULLDrm")>;
|
2014-08-19 01:55:51 +08:00
|
|
|
|
2017-12-08 17:48:44 +08:00
|
|
|
def HWWriteResGroup119_1 : SchedWriteRes<[HWPort0,HWPort23]> {
|
|
|
|
let Latency = 17;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup119_1], (instregex "VPMULLDYrm")>;
|
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup120 : SchedWriteRes<[HWPort1,HWPort23,HWPort237,HWPort06,HWPort15,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 16;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 10;
|
|
|
|
let ResourceCycles = [1,1,1,4,1,2];
|
|
|
|
}
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[HWWriteResGroup120], (instregex "RCL(8|16|32|64)mCL")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup121 : SchedWriteRes<[HWPort0]> {
|
2018-03-26 13:05:10 +08:00
|
|
|
let Latency = 13;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-26 13:05:10 +08:00
|
|
|
def: InstRW<[HWWriteResGroup121], (instregex "(V?)DIVPSrr",
|
|
|
|
"(V?)DIVSSrr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup125 : SchedWriteRes<[HWPort0,HWPort015]> {
|
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
2014-08-19 01:55:51 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup125], (instregex "VRCPPSYr",
|
|
|
|
"VRSQRTPSYr")>;
|
2014-08-19 01:55:51 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup128 : SchedWriteRes<[HWPort0,HWPort23,HWPort015]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 18;
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 4;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [2,1,1];
|
2017-06-27 23:05:13 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup128], (instregex "VRCPPSYm",
|
|
|
|
"VRSQRTPSYm")>;
|
2017-06-27 23:05:13 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup129 : SchedWriteRes<[HWPort1,HWPort06,HWPort0156]> {
|
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 7;
|
|
|
|
let ResourceCycles = [2,2,3];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup129], (instregex "RCL(16|32|64)rCL",
|
|
|
|
"RCR(16|32|64)rCL")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup130 : SchedWriteRes<[HWPort1,HWPort06,HWPort15,HWPort0156]> {
|
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 9;
|
|
|
|
let ResourceCycles = [1,4,1,3];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup130], (instregex "RCL8rCL")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup131 : SchedWriteRes<[HWPort06,HWPort0156]> {
|
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 11;
|
|
|
|
let ResourceCycles = [2,9];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup131], (instrs LOOPE, LOOPNE)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup132 : SchedWriteRes<[HWPort4,HWPort23,HWPort237,HWPort06,HWPort15,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 17;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 14;
|
|
|
|
let ResourceCycles = [1,1,1,4,2,5];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup132], (instregex "CMPXCHG8B")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup133 : SchedWriteRes<[HWPort0]> {
|
2018-03-26 13:05:10 +08:00
|
|
|
let Latency = 11;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-26 13:05:10 +08:00
|
|
|
def: InstRW<[HWWriteResGroup133], (instregex "(V?)SQRTPSr",
|
|
|
|
"(V?)SQRTSSr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup134 : SchedWriteRes<[HWPort0,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 19;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-26 13:05:10 +08:00
|
|
|
def: InstRW<[HWWriteResGroup134], (instregex "(V?)DIVPSrm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup135 : SchedWriteRes<[HWPort1,HWPort23,HWPort237,HWPort06,HWPort15,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 19;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 11;
|
|
|
|
let ResourceCycles = [2,1,1,3,1,3];
|
|
|
|
}
|
2018-03-19 08:56:09 +08:00
|
|
|
def: InstRW<[HWWriteResGroup135], (instregex "RCR(8|16|32|64)mCL")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup138 : SchedWriteRes<[HWPort0,HWPort23]> {
|
2018-03-26 13:05:10 +08:00
|
|
|
let Latency = 17;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-26 13:05:10 +08:00
|
|
|
def: InstRW<[HWWriteResGroup138], (instregex "(V?)SQRTPSm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup140 : SchedWriteRes<[HWPort0,HWPort1,HWPort5]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let Latency = 14;
|
2014-08-19 01:55:51 +08:00
|
|
|
let NumMicroOps = 4;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [2,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup140], (instregex "(V?)DPPS(Y?)rri")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup141 : SchedWriteRes<[HWPort0,HWPort1,HWPort5,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 20;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [2,1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup141], (instregex "(V?)DPPSrmi")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
2017-12-08 17:48:44 +08:00
|
|
|
def HWWriteResGroup141_1 : SchedWriteRes<[HWPort0,HWPort1,HWPort5,HWPort23]> {
|
|
|
|
let Latency = 21;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [2,1,1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup141_1], (instregex "VDPPSYrmi")>;
|
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup142 : SchedWriteRes<[HWPort1,HWPort06,HWPort15,HWPort0156]> {
|
|
|
|
let Latency = 14;
|
|
|
|
let NumMicroOps = 10;
|
|
|
|
let ResourceCycles = [2,3,1,4];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup142], (instregex "RCR8rCL")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup143 : SchedWriteRes<[HWPort23,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 19;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 15;
|
|
|
|
let ResourceCycles = [1,14];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup143], (instregex "POPF16")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup144 : SchedWriteRes<[HWPort4,HWPort5,HWPort6,HWPort23,HWPort237,HWPort06,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 21;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 8;
|
|
|
|
let ResourceCycles = [1,1,1,1,1,1,2];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup144], (instregex "INSB",
|
|
|
|
"INSL",
|
|
|
|
"INSW")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup145 : SchedWriteRes<[HWPort5]> {
|
|
|
|
let Latency = 16;
|
|
|
|
let NumMicroOps = 16;
|
|
|
|
let ResourceCycles = [16];
|
2014-08-19 01:55:51 +08:00
|
|
|
}
|
2017-08-28 18:04:16 +08:00
|
|
|
def: InstRW<[HWWriteResGroup145], (instregex "VZEROALL")>;
|
2014-08-19 01:55:51 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup146 : SchedWriteRes<[HWPort0,HWPort4,HWPort5,HWPort23,HWPort237,HWPort06,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 22;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 19;
|
|
|
|
let ResourceCycles = [2,1,4,1,1,4,6];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup146], (instregex "CMPXCHG16B")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup147 : SchedWriteRes<[HWPort0,HWPort1,HWPort5,HWPort6,HWPort01,HWPort0156]> {
|
|
|
|
let Latency = 17;
|
|
|
|
let NumMicroOps = 15;
|
|
|
|
let ResourceCycles = [2,1,2,4,2,4];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup147], (instregex "XCH_F")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup149 : SchedWriteRes<[HWPort5,HWPort6,HWPort06,HWPort0156]> {
|
|
|
|
let Latency = 18;
|
|
|
|
let NumMicroOps = 8;
|
|
|
|
let ResourceCycles = [1,1,1,5];
|
2014-08-19 01:55:51 +08:00
|
|
|
}
|
2017-08-28 18:04:16 +08:00
|
|
|
def: InstRW<[HWWriteResGroup149], (instregex "CPUID")>;
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup149], (instrs RDTSC)>;
|
2014-08-19 01:55:51 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup151 : SchedWriteRes<[HWPort6,HWPort23,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 23;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 19;
|
|
|
|
let ResourceCycles = [3,1,15];
|
|
|
|
}
|
2017-12-10 09:24:08 +08:00
|
|
|
def: InstRW<[HWWriteResGroup151], (instregex "XRSTOR(64)?")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup154 : SchedWriteRes<[HWPort0]> {
|
|
|
|
let Latency = 20;
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 1;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [1];
|
2017-06-28 19:23:31 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup154], (instregex "DIV_FPrST0",
|
|
|
|
"DIV_FST0r",
|
|
|
|
"DIV_FrST0",
|
2018-03-26 13:05:10 +08:00
|
|
|
"(V?)DIVPDrr",
|
|
|
|
"(V?)DIVSDrr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup155 : SchedWriteRes<[HWPort0,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 27;
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 2;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [1,1];
|
2017-06-28 19:23:31 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup155], (instregex "DIVR_F32m",
|
2018-03-26 13:05:10 +08:00
|
|
|
"DIVR_F64m")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup155_1 : SchedWriteRes<[HWPort0,HWPort23]> {
|
|
|
|
let Latency = 26;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-26 13:05:10 +08:00
|
|
|
def: InstRW<[HWWriteResGroup155_1], (instregex "(V?)DIVPDrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup155_2 : SchedWriteRes<[HWPort0,HWPort23]> {
|
2018-03-26 13:05:10 +08:00
|
|
|
let Latency = 21;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup155_2], (instregex "(V?)SQRTSDm")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup155_3 : SchedWriteRes<[HWPort0,HWPort23]> {
|
|
|
|
let Latency = 22;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup155_3], (instregex "(V?)SQRTPDm")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup155_4 : SchedWriteRes<[HWPort0,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 25;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-03-26 13:05:10 +08:00
|
|
|
def: InstRW<[HWWriteResGroup155_4], (instregex "(V?)DIVSDrm")>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup156 : SchedWriteRes<[HWPort5,HWPort6,HWPort0156]> {
|
|
|
|
let Latency = 20;
|
|
|
|
let NumMicroOps = 10;
|
|
|
|
let ResourceCycles = [1,2,7];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup156], (instregex "MWAITrr")>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup157 : SchedWriteRes<[HWPort0]> {
|
2018-03-26 13:05:10 +08:00
|
|
|
let Latency = 16;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
2014-08-19 01:55:53 +08:00
|
|
|
}
|
2018-03-26 13:05:10 +08:00
|
|
|
def: InstRW<[HWWriteResGroup157], (instregex "(V?)SQRTPDr",
|
|
|
|
"(V?)SQRTSDr")>;
|
2014-08-19 01:55:53 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup159 : SchedWriteRes<[HWPort0,HWPort015]> {
|
|
|
|
let Latency = 21;
|
2014-08-19 01:55:53 +08:00
|
|
|
let NumMicroOps = 3;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [2,1];
|
2014-08-19 01:55:53 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup159], (instregex "VDIVPSYrr",
|
|
|
|
"VSQRTPSYr")>;
|
2014-08-19 01:55:53 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup160 : SchedWriteRes<[HWPort0,HWPort23,HWPort015]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 28;
|
2014-08-19 01:55:53 +08:00
|
|
|
let NumMicroOps = 4;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [2,1,1];
|
2014-08-19 01:55:53 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup160], (instregex "VDIVPSYrm",
|
|
|
|
"VSQRTPSYm")>;
|
2014-08-19 01:55:53 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup161 : SchedWriteRes<[HWPort0,HWPort1,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 30;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
2014-08-19 01:55:53 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup161], (instregex "DIVR_FI16m",
|
|
|
|
"DIVR_FI32m")>;
|
2014-08-19 01:55:53 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup162 : SchedWriteRes<[HWPort0]> {
|
|
|
|
let Latency = 24;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup162], (instregex "DIVR_FPrST0",
|
|
|
|
"DIVR_FST0r",
|
|
|
|
"DIVR_FrST0")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup163 : SchedWriteRes<[HWPort0,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 31;
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 2;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [1,1];
|
2014-08-19 01:55:53 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup163], (instregex "DIV_F32m",
|
|
|
|
"DIV_F64m")>;
|
2014-08-19 01:55:53 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup164 : SchedWriteRes<[HWPort4,HWPort6,HWPort23,HWPort237,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 30;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 27;
|
|
|
|
let ResourceCycles = [1,5,1,1,19];
|
2014-08-19 01:55:53 +08:00
|
|
|
}
|
2017-08-28 18:04:16 +08:00
|
|
|
def: InstRW<[HWWriteResGroup164], (instregex "XSAVE64")>;
|
2014-08-19 01:55:53 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup165 : SchedWriteRes<[HWPort4,HWPort6,HWPort23,HWPort237,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 31;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 28;
|
|
|
|
let ResourceCycles = [1,6,1,1,19];
|
2014-08-19 01:55:53 +08:00
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup165], (instregex "^XSAVE$", "XSAVEC", "XSAVES", "XSAVEOPT")>;
|
2014-08-19 01:55:56 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup166 : SchedWriteRes<[HWPort0,HWPort1,HWPort23]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 34;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup166], (instregex "DIV_FI16m",
|
|
|
|
"DIV_FI32m")>;
|
2014-08-19 01:55:59 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup170 : SchedWriteRes<[HWPort5,HWPort6,HWPort23,HWPort06,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 35;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 23;
|
|
|
|
let ResourceCycles = [1,5,3,4,10];
|
2014-08-19 01:55:59 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup170], (instregex "IN(8|16|32)ri",
|
|
|
|
"IN(8|16|32)rr")>;
|
2014-08-19 01:55:59 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup171 : SchedWriteRes<[HWPort5,HWPort6,HWPort23,HWPort237,HWPort06,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 36;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 23;
|
|
|
|
let ResourceCycles = [1,5,2,1,4,10];
|
2014-08-19 01:55:59 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup171], (instregex "OUT(8|16|32)ir",
|
|
|
|
"OUT(8|16|32)rr")>;
|
2014-08-19 01:55:59 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup172 : SchedWriteRes<[HWPort01,HWPort15,HWPort015,HWPort0156]> {
|
|
|
|
let Latency = 31;
|
|
|
|
let NumMicroOps = 31;
|
|
|
|
let ResourceCycles = [8,1,21,1];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup172], (instregex "MMX_EMMS")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup173 : SchedWriteRes<[HWPort0,HWPort015]> {
|
|
|
|
let Latency = 35;
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 3;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [2,1];
|
2014-08-19 01:55:59 +08:00
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup173], (instregex "VDIVPDYrr",
|
|
|
|
"VSQRTPDYr")>;
|
2014-08-19 01:55:59 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup174 : SchedWriteRes<[HWPort0,HWPort23,HWPort015]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 42;
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 4;
|
2017-08-28 18:04:16 +08:00
|
|
|
let ResourceCycles = [2,1,1];
|
|
|
|
}
|
2018-03-22 00:19:03 +08:00
|
|
|
def: InstRW<[HWWriteResGroup174], (instregex "VDIVPDYrm",
|
|
|
|
"VSQRTPDYm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup175 : SchedWriteRes<[HWPort1,HWPort4,HWPort5,HWPort6,HWPort23,HWPort237,HWPort15,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 41;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 18;
|
|
|
|
let ResourceCycles = [1,1,2,3,1,1,1,8];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup175], (instregex "VMCLEARm")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup176 : SchedWriteRes<[HWPort5,HWPort0156]> {
|
|
|
|
let Latency = 42;
|
|
|
|
let NumMicroOps = 22;
|
|
|
|
let ResourceCycles = [2,20];
|
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup176], (instrs RDTSCP)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup177 : SchedWriteRes<[HWPort0,HWPort01,HWPort23,HWPort05,HWPort06,HWPort015,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 61;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 64;
|
|
|
|
let ResourceCycles = [2,2,8,1,10,2,39];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup177], (instregex "FLDENVm")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup178 : SchedWriteRes<[HWPort0,HWPort6,HWPort23,HWPort05,HWPort06,HWPort15,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 64;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 88;
|
|
|
|
let ResourceCycles = [4,4,31,1,2,1,45];
|
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup178], (instrs FXRSTOR64)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup179 : SchedWriteRes<[HWPort0,HWPort6,HWPort23,HWPort05,HWPort06,HWPort15,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 64;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 90;
|
|
|
|
let ResourceCycles = [4,2,33,1,2,1,47];
|
|
|
|
}
|
2018-03-18 16:38:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup179], (instrs FXRSTOR)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup180 : SchedWriteRes<[HWPort5,HWPort01,HWPort0156]> {
|
|
|
|
let Latency = 75;
|
|
|
|
let NumMicroOps = 15;
|
|
|
|
let ResourceCycles = [6,3,6];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup180], (instregex "FNINIT")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup181 : SchedWriteRes<[HWPort0,HWPort1,HWPort5,HWPort6,HWPort01,HWPort0156]> {
|
|
|
|
let Latency = 98;
|
|
|
|
let NumMicroOps = 32;
|
|
|
|
let ResourceCycles = [7,7,3,3,1,11];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup181], (instregex "DIV(16|32|64)r")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup182 : SchedWriteRes<[HWPort0,HWPort1,HWPort5,HWPort6,HWPort06,HWPort0156]> {
|
|
|
|
let Latency = 112;
|
|
|
|
let NumMicroOps = 66;
|
|
|
|
let ResourceCycles = [4,2,4,8,14,34];
|
|
|
|
}
|
|
|
|
def: InstRW<[HWWriteResGroup182], (instregex "IDIV(16|32|64)r")>;
|
|
|
|
|
|
|
|
def HWWriteResGroup183 : SchedWriteRes<[HWPort0,HWPort1,HWPort4,HWPort5,HWPort6,HWPort237,HWPort06,HWPort0156]> {
|
2017-12-08 17:48:44 +08:00
|
|
|
let Latency = 115;
|
2017-08-28 18:04:16 +08:00
|
|
|
let NumMicroOps = 100;
|
|
|
|
let ResourceCycles = [9,9,11,8,1,11,21,30];
|
2014-08-19 01:55:59 +08:00
|
|
|
}
|
2017-08-28 18:04:16 +08:00
|
|
|
def: InstRW<[HWWriteResGroup183], (instregex "FSTENVm")>;
|
2014-08-19 01:55:59 +08:00
|
|
|
|
2017-12-08 17:48:44 +08:00
|
|
|
def HWWriteResGroup184 : SchedWriteRes<[HWPort0, HWPort5, HWPort15, HWPort015, HWPort06, HWPort23]> {
|
|
|
|
let Latency = 26;
|
|
|
|
let NumMicroOps = 12;
|
|
|
|
let ResourceCycles = [2,2,1,3,2,2];
|
|
|
|
}
|
2017-12-17 02:35:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup184], (instrs VGATHERDPDrm,
|
|
|
|
VPGATHERDQrm,
|
|
|
|
VPGATHERDDrm)>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup185 : SchedWriteRes<[HWPort0, HWPort5, HWPort06, HWPort15, HWPort015, HWPort23]> {
|
|
|
|
let Latency = 24;
|
|
|
|
let NumMicroOps = 22;
|
|
|
|
let ResourceCycles = [5,3,4,1,5,4];
|
|
|
|
}
|
2017-12-17 02:35:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup185], (instrs VGATHERQPDYrm,
|
|
|
|
VPGATHERQQYrm)>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup186 : SchedWriteRes<[HWPort0, HWPort5, HWPort06, HWPort15, HWPort015, HWPort23]> {
|
|
|
|
let Latency = 28;
|
|
|
|
let NumMicroOps = 22;
|
|
|
|
let ResourceCycles = [5,3,4,1,5,4];
|
|
|
|
}
|
2017-12-17 02:35:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup186], (instrs VPGATHERQDYrm)>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup187 : SchedWriteRes<[HWPort0, HWPort5, HWPort06, HWPort15, HWPort015, HWPort23]> {
|
|
|
|
let Latency = 25;
|
|
|
|
let NumMicroOps = 22;
|
|
|
|
let ResourceCycles = [5,3,4,1,5,4];
|
|
|
|
}
|
2017-12-17 02:35:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup187], (instrs VPGATHERQDrm)>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup188 : SchedWriteRes<[HWPort0, HWPort5, HWPort06, HWPort15, HWPort015, HWPort23]> {
|
|
|
|
let Latency = 27;
|
|
|
|
let NumMicroOps = 20;
|
|
|
|
let ResourceCycles = [3,3,4,1,5,4];
|
|
|
|
}
|
2017-12-17 02:35:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup188], (instrs VGATHERDPDYrm,
|
|
|
|
VPGATHERDQYrm)>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup189 : SchedWriteRes<[HWPort0, HWPort5, HWPort06, HWPort15, HWPort015, HWPort23]> {
|
|
|
|
let Latency = 27;
|
|
|
|
let NumMicroOps = 34;
|
|
|
|
let ResourceCycles = [5,3,8,1,9,8];
|
|
|
|
}
|
2017-12-17 02:35:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup189], (instrs VGATHERDPSYrm,
|
|
|
|
VPGATHERDDYrm)>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup190 : SchedWriteRes<[HWPort0, HWPort5, HWPort06, HWPort15, HWPort015, HWPort23]> {
|
|
|
|
let Latency = 23;
|
|
|
|
let NumMicroOps = 14;
|
|
|
|
let ResourceCycles = [3,3,2,1,3,2];
|
|
|
|
}
|
2017-12-17 02:35:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup190], (instrs VGATHERQPDrm,
|
|
|
|
VPGATHERQQrm)>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup191 : SchedWriteRes<[HWPort0, HWPort5, HWPort06, HWPort15, HWPort015, HWPort23]> {
|
|
|
|
let Latency = 28;
|
|
|
|
let NumMicroOps = 15;
|
|
|
|
let ResourceCycles = [3,3,2,1,4,2];
|
|
|
|
}
|
2017-12-17 02:35:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup191], (instrs VGATHERQPSYrm)>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup192 : SchedWriteRes<[HWPort0, HWPort5, HWPort06, HWPort15, HWPort015, HWPort23]> {
|
|
|
|
let Latency = 25;
|
|
|
|
let NumMicroOps = 15;
|
|
|
|
let ResourceCycles = [3,3,2,1,4,2];
|
|
|
|
}
|
2017-12-17 02:35:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup192], (instrs VGATHERQPSrm,
|
|
|
|
VGATHERDPSrm)>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
2013-03-29 06:34:46 +08:00
|
|
|
} // SchedModel
|