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.
|
|
|
|
//
|
2018-06-11 15:00:08 +08:00
|
|
|
// Note that we define some instructions here that are not supported by haswell,
|
|
|
|
// but we still have to define them because KNL uses the HSW model.
|
|
|
|
// They are currently tagged with a comment `Unsupported = 1`.
|
|
|
|
// FIXME: Use Unsupported = 1 once KNL has its own model.
|
|
|
|
//
|
2013-03-29 06:34:46 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
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>;
|
2018-04-02 13:33:28 +08:00
|
|
|
// FP division and sqrt on port 0.
|
|
|
|
def HWFPDivider : ProcResource<1>;
|
2013-03-29 06:34:46 +08:00
|
|
|
|
2018-10-06 01:57:29 +08:00
|
|
|
// Integer 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
|
|
|
|
2018-10-06 01:57:29 +08:00
|
|
|
// Vector loads are 5/6/7 cycles, so ReadAfterVec*Ld registers needn't be available
|
|
|
|
// until 5/6/7 cycles after the memory operand.
|
|
|
|
def : ReadAdvance<ReadAfterVecLd, 5>;
|
|
|
|
def : ReadAdvance<ReadAfterVecXLd, 6>;
|
|
|
|
def : ReadAdvance<ReadAfterVecYLd, 7>;
|
|
|
|
|
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,
|
2018-09-25 21:01:26 +08:00
|
|
|
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-09-25 21:01:26 +08:00
|
|
|
let NumMicroOps = !add(UOps, 1);
|
2013-03-29 06:34:46 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-07 00:16:46 +08:00
|
|
|
// A folded store needs a cycle on port 4 for the store data, and an extra port
|
|
|
|
// 2/3/7 cycle to recompute the address.
|
|
|
|
def : WriteRes<WriteRMW, [HWPort237,HWPort4]>;
|
2013-03-29 06:34:46 +08:00
|
|
|
|
2014-01-30 02:26:59 +08:00
|
|
|
// Store_addr on 237.
|
|
|
|
// Store_data on 4.
|
2018-05-15 02:37:19 +08:00
|
|
|
defm : X86WriteRes<WriteStore, [HWPort237, HWPort4], 1, [1,1], 1>;
|
|
|
|
defm : X86WriteRes<WriteStoreNT, [HWPort237, HWPort4], 1, [1,1], 2>;
|
|
|
|
defm : X86WriteRes<WriteLoad, [HWPort23], 5, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteMove, [HWPort0156], 1, [1], 1>;
|
|
|
|
def : WriteRes<WriteZero, []>;
|
2013-03-29 06:34:46 +08:00
|
|
|
|
2018-07-31 18:14:43 +08:00
|
|
|
// Arithmetic.
|
2018-05-08 22:55:16 +08:00
|
|
|
defm : HWWriteResPair<WriteALU, [HWPort0156], 1>;
|
2018-07-31 18:14:43 +08:00
|
|
|
defm : HWWriteResPair<WriteADC, [HWPort06, HWPort0156], 2, [1,1], 2>;
|
2018-09-24 23:21:57 +08:00
|
|
|
|
|
|
|
// Integer multiplication.
|
|
|
|
defm : HWWriteResPair<WriteIMul8, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteIMul16, [HWPort1,HWPort06,HWPort0156], 4, [1,1,2], 4>;
|
|
|
|
defm : X86WriteRes<WriteIMul16Imm, [HWPort1,HWPort0156], 4, [1,1], 2>;
|
|
|
|
defm : X86WriteRes<WriteIMul16ImmLd, [HWPort1,HWPort0156,HWPort23], 8, [1,1,1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteIMul16Reg, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteIMul32, [HWPort1,HWPort06,HWPort0156], 4, [1,1,1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteIMul32Imm, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteIMul32Reg, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteIMul64, [HWPort1,HWPort6], 4, [1,1], 2>;
|
|
|
|
defm : HWWriteResPair<WriteIMul64Imm, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteIMul64Reg, [HWPort1], 3>;
|
|
|
|
def : WriteRes<WriteIMulH, []> { let Latency = 3; }
|
2018-07-20 17:39:14 +08:00
|
|
|
|
2018-08-01 02:24:24 +08:00
|
|
|
defm : X86WriteRes<WriteBSWAP32, [HWPort15], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteBSWAP64, [HWPort06, HWPort15], 2, [1,1], 2>;
|
2018-08-30 14:26:00 +08:00
|
|
|
defm : X86WriteRes<WriteCMPXCHG,[HWPort06, HWPort0156], 5, [2,3], 5>;
|
|
|
|
defm : X86WriteRes<WriteCMPXCHGRMW,[HWPort23,HWPort06,HWPort0156,HWPort237,HWPort4], 9, [1,2,1,1,1], 6>;
|
2018-08-09 17:23:26 +08:00
|
|
|
defm : X86WriteRes<WriteXCHG, [HWPort0156], 2, [3], 3>;
|
2018-07-20 17:39:14 +08:00
|
|
|
|
2018-07-31 18:14:43 +08:00
|
|
|
// Integer shifts and rotates.
|
2018-09-24 05:19:15 +08:00
|
|
|
defm : HWWriteResPair<WriteShift, [HWPort06], 1>;
|
2018-09-25 21:01:26 +08:00
|
|
|
defm : HWWriteResPair<WriteShiftCL, [HWPort06, HWPort0156], 3, [2,1], 3>;
|
2018-09-24 05:19:15 +08:00
|
|
|
defm : HWWriteResPair<WriteRotate, [HWPort06], 2, [2], 2>;
|
2018-09-25 21:01:26 +08:00
|
|
|
defm : HWWriteResPair<WriteRotateCL, [HWPort06, HWPort0156], 3, [2,1], 3>;
|
2018-07-31 18:14:43 +08:00
|
|
|
|
|
|
|
// SHLD/SHRD.
|
|
|
|
defm : X86WriteRes<WriteSHDrri, [HWPort1], 3, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteSHDrrcl,[HWPort1, HWPort06, HWPort0156], 6, [1, 1, 2], 4>;
|
|
|
|
defm : X86WriteRes<WriteSHDmri, [HWPort1, HWPort23, HWPort237, HWPort0156], 10, [1, 1, 1, 1], 4>;
|
|
|
|
defm : X86WriteRes<WriteSHDmrcl,[HWPort1, HWPort23, HWPort237, HWPort06, HWPort0156], 12, [1, 1, 1, 1, 2], 6>;
|
|
|
|
|
2018-05-08 22:55:16 +08:00
|
|
|
defm : HWWriteResPair<WriteJump, [HWPort06], 1>;
|
|
|
|
defm : HWWriteResPair<WriteCRC32, [HWPort1], 3>;
|
2013-03-29 06:34:46 +08:00
|
|
|
|
2018-04-09 01:53:18 +08:00
|
|
|
defm : HWWriteResPair<WriteCMOV, [HWPort06,HWPort0156], 2, [1,1], 2>; // Conditional move.
|
2018-05-18 00:47:30 +08:00
|
|
|
defm : HWWriteResPair<WriteCMOV2, [HWPort06,HWPort0156], 3, [1,2], 3>; // Conditional (CF + ZF flag) move.
|
2018-05-13 02:07:07 +08:00
|
|
|
defm : X86WriteRes<WriteFCMOV, [HWPort1], 3, [1], 1>; // x87 conditional move.
|
2018-04-09 01:53:18 +08:00
|
|
|
def : WriteRes<WriteSETCC, [HWPort06]>; // Setcc.
|
|
|
|
def : WriteRes<WriteSETCCStore, [HWPort06,HWPort4,HWPort237]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
}
|
2018-10-01 22:23:37 +08:00
|
|
|
|
2018-10-02 00:12:44 +08:00
|
|
|
defm : X86WriteRes<WriteLAHFSAHF, [HWPort06], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteBitTest, [HWPort06], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteBitTestImmLd, [HWPort06,HWPort23], 6, [1,1], 2>;
|
|
|
|
defm : X86WriteRes<WriteBitTestRegLd, [], 1, [], 10>;
|
|
|
|
defm : X86WriteRes<WriteBitTestSet, [HWPort06], 1, [1], 1>;
|
2018-10-02 21:11:59 +08:00
|
|
|
defm : X86WriteRes<WriteBitTestSetImmLd, [HWPort06,HWPort23], 6, [1,1], 3>;
|
|
|
|
//defm : X86WriteRes<WriteBitTestSetRegLd, [], 1, [], 11>;
|
2018-04-09 01:53:18 +08:00
|
|
|
|
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.
|
2018-07-08 17:50:25 +08:00
|
|
|
defm : HWWriteResPair<WriteBSF, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteBSR, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteLZCNT, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteTZCNT, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WritePOPCNT, [HWPort1], 3>;
|
2018-03-27 02:19:28 +08:00
|
|
|
|
2018-09-14 21:09:56 +08:00
|
|
|
// BMI1 BEXTR/BLS, BMI2 BZHI
|
2018-03-30 04:41:39 +08:00
|
|
|
defm : HWWriteResPair<WriteBEXTR, [HWPort06,HWPort15], 2, [1,1], 2>;
|
2018-09-14 21:09:56 +08:00
|
|
|
defm : HWWriteResPair<WriteBLS, [HWPort15], 1>;
|
|
|
|
defm : HWWriteResPair<WriteBZHI, [HWPort15], 1>;
|
2018-03-30 04:41:39 +08:00
|
|
|
|
2018-09-25 00:58:26 +08:00
|
|
|
// TODO: Why isn't the HWDivider used?
|
|
|
|
defm : X86WriteRes<WriteDiv8, [HWPort0,HWPort1,HWPort5,HWPort6], 22, [], 9>;
|
|
|
|
defm : X86WriteRes<WriteDiv16, [HWPort0,HWPort1,HWPort5,HWPort6,HWPort01,HWPort0156], 98, [7,7,3,3,1,11], 32>;
|
|
|
|
defm : X86WriteRes<WriteDiv32, [HWPort0,HWPort1,HWPort5,HWPort6,HWPort01,HWPort0156], 98, [7,7,3,3,1,11], 32>;
|
|
|
|
defm : X86WriteRes<WriteDiv64, [HWPort0,HWPort1,HWPort5,HWPort6,HWPort01,HWPort0156], 98, [7,7,3,3,1,11], 32>;
|
|
|
|
defm : X86WriteRes<WriteDiv8Ld, [HWPort0,HWPort23,HWDivider], 29, [1,1,10], 2>;
|
|
|
|
defm : X86WriteRes<WriteDiv16Ld, [HWPort0,HWPort23,HWDivider], 29, [1,1,10], 2>;
|
|
|
|
defm : X86WriteRes<WriteDiv32Ld, [HWPort0,HWPort23,HWDivider], 29, [1,1,10], 2>;
|
|
|
|
defm : X86WriteRes<WriteDiv64Ld, [HWPort0,HWPort23,HWDivider], 29, [1,1,10], 2>;
|
|
|
|
|
|
|
|
defm : X86WriteRes<WriteIDiv8, [HWPort0,HWPort1,HWPort5,HWPort6], 23, [], 9>;
|
|
|
|
defm : X86WriteRes<WriteIDiv16, [HWPort0,HWPort1,HWPort5,HWPort6,HWPort06,HWPort0156], 112, [4,2,4,8,14,34], 66>;
|
|
|
|
defm : X86WriteRes<WriteIDiv32, [HWPort0,HWPort1,HWPort5,HWPort6,HWPort06,HWPort0156], 112, [4,2,4,8,14,34], 66>;
|
|
|
|
defm : X86WriteRes<WriteIDiv64, [HWPort0,HWPort1,HWPort5,HWPort6,HWPort06,HWPort0156], 112, [4,2,4,8,14,34], 66>;
|
|
|
|
defm : X86WriteRes<WriteIDiv8Ld, [HWPort0,HWPort23,HWDivider], 29, [1,1,10], 2>;
|
|
|
|
defm : X86WriteRes<WriteIDiv16Ld, [HWPort0,HWPort23,HWDivider], 29, [1,1,10], 2>;
|
|
|
|
defm : X86WriteRes<WriteIDiv32Ld, [HWPort0,HWPort23,HWDivider], 29, [1,1,10], 2>;
|
|
|
|
defm : X86WriteRes<WriteIDiv64Ld, [HWPort0,HWPort23,HWDivider], 29, [1,1,10], 2>;
|
2018-05-08 20:17:55 +08:00
|
|
|
|
2013-03-29 06:34:46 +08:00
|
|
|
// Scalar and vector floating point.
|
2018-05-31 19:41:27 +08:00
|
|
|
defm : X86WriteRes<WriteFLD0, [HWPort01], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteFLD1, [HWPort01], 1, [2], 2>;
|
[X86] Introduce WriteFLDC for x87 constant loads.
Summary:
{FLDL2E, FLDL2T, FLDLG2, FLDLN2, FLDPI} were using WriteMicrocoded.
- I've measured the values for Broadwell, Haswell, SandyBridge, Skylake.
- For ZnVer1 and Atom, values were transferred form InstRWs.
- For SLM and BtVer2, I've guessed some values :(
Reviewers: RKSimon, craig.topper, andreadb
Subscribers: gbedwell, llvm-commits
Differential Revision: https://reviews.llvm.org/D47585
llvm-svn: 333656
2018-05-31 22:22:01 +08:00
|
|
|
defm : X86WriteRes<WriteFLDC, [HWPort01], 1, [2], 2>;
|
2018-05-08 20:17:55 +08:00
|
|
|
defm : X86WriteRes<WriteFLoad, [HWPort23], 5, [1], 1>;
|
2018-05-11 22:30:54 +08:00
|
|
|
defm : X86WriteRes<WriteFLoadX, [HWPort23], 6, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteFLoadY, [HWPort23], 7, [1], 1>;
|
2018-05-08 20:17:55 +08:00
|
|
|
defm : X86WriteRes<WriteFMaskedLoad, [HWPort23,HWPort5], 8, [1,2], 3>;
|
|
|
|
defm : X86WriteRes<WriteFMaskedLoadY, [HWPort23,HWPort5], 9, [1,2], 3>;
|
2018-05-09 19:01:16 +08:00
|
|
|
defm : X86WriteRes<WriteFStore, [HWPort237,HWPort4], 1, [1,1], 2>;
|
2018-05-11 22:30:54 +08:00
|
|
|
defm : X86WriteRes<WriteFStoreX, [HWPort237,HWPort4], 1, [1,1], 2>;
|
|
|
|
defm : X86WriteRes<WriteFStoreY, [HWPort237,HWPort4], 1, [1,1], 2>;
|
2018-05-15 02:37:19 +08:00
|
|
|
defm : X86WriteRes<WriteFStoreNT, [HWPort237,HWPort4], 1, [1,1], 2>;
|
|
|
|
defm : X86WriteRes<WriteFStoreNTX, [HWPort237,HWPort4], 1, [1,1], 2>;
|
|
|
|
defm : X86WriteRes<WriteFStoreNTY, [HWPort237,HWPort4], 1, [1,1], 2>;
|
2018-05-08 20:17:55 +08:00
|
|
|
defm : X86WriteRes<WriteFMaskedStore, [HWPort0,HWPort4,HWPort237,HWPort15], 5, [1,1,1,1], 4>;
|
|
|
|
defm : X86WriteRes<WriteFMaskedStoreY, [HWPort0,HWPort4,HWPort237,HWPort15], 5, [1,1,1,1], 4>;
|
|
|
|
defm : X86WriteRes<WriteFMove, [HWPort5], 1, [1], 1>;
|
2018-05-11 22:30:54 +08:00
|
|
|
defm : X86WriteRes<WriteFMoveX, [HWPort5], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteFMoveY, [HWPort5], 1, [1], 1>;
|
2018-05-08 20:17:55 +08:00
|
|
|
defm : X86WriteRes<WriteEMMS, [HWPort01,HWPort15,HWPort015,HWPort0156], 31, [8,1,21,1], 31>;
|
2018-03-15 22:45:30 +08:00
|
|
|
|
2018-05-08 04:52:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFAdd, [HWPort1], 3, [1], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteFAddX, [HWPort1], 3, [1], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFAddY, [HWPort1], 3, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFAddZ, [HWPort1], 3, [1], 1, 7>; // Unsupported = 1
|
2018-05-08 04:52:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFAdd64, [HWPort1], 3, [1], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteFAdd64X, [HWPort1], 3, [1], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFAdd64Y, [HWPort1], 3, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFAdd64Z, [HWPort1], 3, [1], 1, 7>; // Unsupported = 1
|
2018-05-08 04:52:53 +08:00
|
|
|
|
|
|
|
defm : HWWriteResPair<WriteFCmp, [HWPort1], 3, [1], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteFCmpX, [HWPort1], 3, [1], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFCmpY, [HWPort1], 3, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFCmpZ, [HWPort1], 3, [1], 1, 7>; // Unsupported = 1
|
2018-05-08 04:52:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFCmp64, [HWPort1], 3, [1], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteFCmp64X, [HWPort1], 3, [1], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFCmp64Y, [HWPort1], 3, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFCmp64Z, [HWPort1], 3, [1], 1, 7>; // Unsupported = 1
|
2018-05-08 04:52:53 +08:00
|
|
|
|
|
|
|
defm : HWWriteResPair<WriteFCom, [HWPort1], 3>;
|
|
|
|
|
|
|
|
defm : HWWriteResPair<WriteFMul, [HWPort01], 5, [1], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteFMulX, [HWPort01], 5, [1], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFMulY, [HWPort01], 5, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFMulZ, [HWPort01], 5, [1], 1, 7>; // Unsupported = 1
|
2018-05-08 04:52:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFMul64, [HWPort01], 5, [1], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteFMul64X, [HWPort01], 5, [1], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFMul64Y, [HWPort01], 5, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFMul64Z, [HWPort01], 5, [1], 1, 7>; // Unsupported = 1
|
2018-05-08 00:15:46 +08:00
|
|
|
|
|
|
|
defm : HWWriteResPair<WriteFDiv, [HWPort0,HWFPDivider], 13, [1,7], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteFDivX, [HWPort0,HWFPDivider], 13, [1,7], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFDivY, [HWPort0,HWPort15,HWFPDivider], 21, [2,1,14], 3, 7>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : HWWriteResPair<WriteFDivZ, [HWPort0,HWPort15,HWFPDivider], 21, [2,1,14], 3, 7>; // Unsupported = 1
|
2018-05-08 00:15:46 +08:00
|
|
|
defm : HWWriteResPair<WriteFDiv64, [HWPort0,HWFPDivider], 20, [1,14], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteFDiv64X, [HWPort0,HWFPDivider], 20, [1,14], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFDiv64Y, [HWPort0,HWPort15,HWFPDivider], 35, [2,1,28], 3, 7>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : HWWriteResPair<WriteFDiv64Z, [HWPort0,HWPort15,HWFPDivider], 35, [2,1,28], 3, 7>; // Unsupported = 1
|
2018-05-07 19:50:44 +08:00
|
|
|
|
2018-05-02 02:06:07 +08:00
|
|
|
defm : HWWriteResPair<WriteFRcp, [HWPort0], 5, [1], 1, 5>;
|
2018-05-07 19:50:44 +08:00
|
|
|
defm : HWWriteResPair<WriteFRcpX, [HWPort0], 5, [1], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFRcpY, [HWPort0,HWPort015], 11, [2,1], 3, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFRcpZ, [HWPort0,HWPort015], 11, [2,1], 3, 7>; // Unsupported = 1
|
2018-05-07 19:50:44 +08:00
|
|
|
|
2018-05-02 02:06:07 +08:00
|
|
|
defm : HWWriteResPair<WriteFRsqrt, [HWPort0], 5, [1], 1, 5>;
|
2018-05-07 19:50:44 +08:00
|
|
|
defm : HWWriteResPair<WriteFRsqrtX,[HWPort0], 5, [1], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFRsqrtY,[HWPort0,HWPort015], 11, [2,1], 3, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFRsqrtZ,[HWPort0,HWPort015], 11, [2,1], 3, 7>; // Unsupported = 1
|
2018-05-07 19:50:44 +08:00
|
|
|
|
|
|
|
defm : HWWriteResPair<WriteFSqrt, [HWPort0,HWFPDivider], 11, [1,7], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteFSqrtX, [HWPort0,HWFPDivider], 11, [1,7], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFSqrtY, [HWPort0,HWPort15,HWFPDivider], 21, [2,1,14], 3, 7>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : HWWriteResPair<WriteFSqrtZ, [HWPort0,HWPort15,HWFPDivider], 21, [2,1,14], 3, 7>; // Unsupported = 1
|
2018-05-07 19:50:44 +08:00
|
|
|
defm : HWWriteResPair<WriteFSqrt64, [HWPort0,HWFPDivider], 16, [1,14], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteFSqrt64X, [HWPort0,HWFPDivider], 16, [1,14], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFSqrt64Y, [HWPort0,HWPort15,HWFPDivider], 35, [2,1,28], 3, 7>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : HWWriteResPair<WriteFSqrt64Z, [HWPort0,HWPort15,HWFPDivider], 35, [2,1,28], 3, 7>; // Unsupported = 1
|
2018-05-07 19:50:44 +08:00
|
|
|
defm : HWWriteResPair<WriteFSqrt80, [HWPort0,HWFPDivider], 23, [1,17]>;
|
|
|
|
|
2018-05-04 23:20:18 +08:00
|
|
|
defm : HWWriteResPair<WriteFMA, [HWPort01], 5, [1], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteFMAX, [HWPort01], 5, [1], 1, 6>;
|
2018-04-25 21:07:58 +08:00
|
|
|
defm : HWWriteResPair<WriteFMAY, [HWPort01], 5, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFMAZ, [HWPort01], 5, [1], 1, 7>; // Unsupported = 1
|
2018-05-04 06:31:19 +08:00
|
|
|
defm : HWWriteResPair<WriteDPPD, [HWPort0,HWPort1,HWPort5], 9, [1,1,1], 3, 6>;
|
|
|
|
defm : HWWriteResPair<WriteDPPS, [HWPort0,HWPort1,HWPort5], 14, [2,1,1], 4, 6>;
|
|
|
|
defm : HWWriteResPair<WriteDPPSY, [HWPort0,HWPort1,HWPort5], 14, [2,1,1], 4, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteDPPSZ, [HWPort0,HWPort1,HWPort5], 14, [2,1,1], 4, 7>; // Unsupported = 1
|
2018-04-21 05:16:05 +08:00
|
|
|
defm : HWWriteResPair<WriteFSign, [HWPort0], 1>;
|
2018-05-04 20:59:24 +08:00
|
|
|
defm : X86WriteRes<WriteFRnd, [HWPort23], 6, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteFRndY, [HWPort23], 6, [1], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteRes<WriteFRndZ, [HWPort23], 6, [1], 1>; // Unsupported = 1
|
2018-05-04 20:59:24 +08:00
|
|
|
defm : X86WriteRes<WriteFRndLd, [HWPort1,HWPort23], 12, [2,1], 3>;
|
|
|
|
defm : X86WriteRes<WriteFRndYLd, [HWPort1,HWPort23], 13, [2,1], 3>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteRes<WriteFRndZLd, [HWPort1,HWPort23], 13, [2,1], 3>; // Unsupported = 1
|
2018-04-27 23:50:33 +08:00
|
|
|
defm : HWWriteResPair<WriteFLogic, [HWPort5], 1, [1], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFLogicY, [HWPort5], 1, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFLogicZ, [HWPort5], 1, [1], 1, 7>; // Unsupported = 1
|
2018-05-08 18:28:03 +08:00
|
|
|
defm : HWWriteResPair<WriteFTest, [HWPort0], 1, [1], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFTestY, [HWPort0], 1, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFTestZ, [HWPort0], 1, [1], 1, 7>; // Unsupported = 1
|
2018-05-03 01:58:50 +08:00
|
|
|
defm : HWWriteResPair<WriteFShuffle, [HWPort5], 1, [1], 1, 6>;
|
2018-05-01 22:25:01 +08:00
|
|
|
defm : HWWriteResPair<WriteFShuffleY, [HWPort5], 1, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFShuffleZ, [HWPort5], 1, [1], 1, 7>; // Unsupported = 1
|
2018-04-28 02:19:48 +08:00
|
|
|
defm : HWWriteResPair<WriteFVarShuffle, [HWPort5], 1, [1], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteFVarShuffleY, [HWPort5], 1, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFVarShuffleZ, [HWPort5], 1, [1], 1, 7>; // Unsupported = 1
|
2018-04-23 02:35:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFBlend, [HWPort015], 1, [1], 1, 6>;
|
2018-04-28 02:19:48 +08:00
|
|
|
defm : HWWriteResPair<WriteFBlendY, [HWPort015], 1, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFBlendZ, [HWPort015], 1, [1], 1, 7>; // Unsupported = 1
|
2018-05-03 01:58:50 +08:00
|
|
|
defm : HWWriteResPair<WriteFShuffle256, [HWPort5], 3, [1], 1, 7>;
|
|
|
|
defm : HWWriteResPair<WriteFVarShuffle256, [HWPort5], 3, [1], 1, 7>;
|
2018-04-22 22:43:12 +08:00
|
|
|
defm : HWWriteResPair<WriteFVarBlend, [HWPort5], 2, [2], 2, 6>;
|
2018-04-28 02:19:48 +08:00
|
|
|
defm : HWWriteResPair<WriteFVarBlendY, [HWPort5], 2, [2], 2, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteFVarBlendZ, [HWPort5], 2, [2], 2, 7>; // Unsupported = 1
|
2013-03-29 06:34:46 +08:00
|
|
|
|
2018-05-16 01:36:49 +08:00
|
|
|
// Conversion between integer and float.
|
2018-05-16 18:53:45 +08:00
|
|
|
defm : HWWriteResPair<WriteCvtSD2I, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteCvtPD2I, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteCvtPD2IY, [HWPort1], 3>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteCvtPD2IZ, [HWPort1], 3>; // Unsupported = 1
|
2018-05-16 18:53:45 +08:00
|
|
|
defm : HWWriteResPair<WriteCvtSS2I, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteCvtPS2I, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteCvtPS2IY, [HWPort1], 3>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteCvtPS2IZ, [HWPort1], 3>; // Unsupported = 1
|
2018-05-16 18:53:45 +08:00
|
|
|
|
|
|
|
defm : HWWriteResPair<WriteCvtI2SD, [HWPort1], 4>;
|
|
|
|
defm : HWWriteResPair<WriteCvtI2PD, [HWPort1], 4>;
|
|
|
|
defm : HWWriteResPair<WriteCvtI2PDY, [HWPort1], 4>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteCvtI2PDZ, [HWPort1], 4>; // Unsupported = 1
|
2018-05-16 18:53:45 +08:00
|
|
|
defm : HWWriteResPair<WriteCvtI2SS, [HWPort1], 4>;
|
|
|
|
defm : HWWriteResPair<WriteCvtI2PS, [HWPort1], 4>;
|
|
|
|
defm : HWWriteResPair<WriteCvtI2PSY, [HWPort1], 4>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteCvtI2PSZ, [HWPort1], 4>; // Unsupported = 1
|
2018-05-16 01:36:49 +08:00
|
|
|
|
|
|
|
defm : HWWriteResPair<WriteCvtSS2SD, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteCvtPS2PD, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteCvtPS2PDY, [HWPort1], 3>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteCvtPS2PDZ, [HWPort1], 3>; // Unsupported = 1
|
2018-05-16 01:36:49 +08:00
|
|
|
defm : HWWriteResPair<WriteCvtSD2SS, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteCvtPD2PS, [HWPort1], 3>;
|
|
|
|
defm : HWWriteResPair<WriteCvtPD2PSY, [HWPort1], 3>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteCvtPD2PSZ, [HWPort1], 3>; // Unsupported = 1
|
2018-05-16 01:36:49 +08:00
|
|
|
|
2018-05-15 22:12:32 +08:00
|
|
|
defm : X86WriteRes<WriteCvtPH2PS, [HWPort0,HWPort5], 2, [1,1], 2>;
|
|
|
|
defm : X86WriteRes<WriteCvtPH2PSY, [HWPort0,HWPort5], 2, [1,1], 2>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteRes<WriteCvtPH2PSZ, [HWPort0,HWPort5], 2, [1,1], 2>; // Unsupported = 1
|
2018-05-15 22:12:32 +08:00
|
|
|
defm : X86WriteRes<WriteCvtPH2PSLd, [HWPort0,HWPort23], 6, [1,1], 2>;
|
|
|
|
defm : X86WriteRes<WriteCvtPH2PSYLd, [HWPort0,HWPort23], 7, [1,1], 2>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteRes<WriteCvtPH2PSZLd, [HWPort0,HWPort23], 7, [1,1], 2>; // Unsupported = 1
|
2018-05-15 22:12:32 +08:00
|
|
|
|
|
|
|
defm : X86WriteRes<WriteCvtPS2PH, [HWPort1,HWPort5], 4, [1,1], 2>;
|
|
|
|
defm : X86WriteRes<WriteCvtPS2PHY, [HWPort1,HWPort5], 6, [1,1], 2>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteRes<WriteCvtPS2PHZ, [HWPort1,HWPort5], 6, [1,1], 2>; // Unsupported = 1
|
2018-05-15 22:12:32 +08:00
|
|
|
defm : X86WriteRes<WriteCvtPS2PHSt, [HWPort1,HWPort4,HWPort5,HWPort237], 5, [1,1,1,1], 4>;
|
|
|
|
defm : X86WriteRes<WriteCvtPS2PHYSt, [HWPort1,HWPort4,HWPort5,HWPort237], 7, [1,1,1,1], 4>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteRes<WriteCvtPS2PHZSt, [HWPort1,HWPort4,HWPort5,HWPort237], 7, [1,1,1,1], 4>; // Unsupported = 1
|
2018-04-25 00:43:07 +08:00
|
|
|
|
2013-03-29 06:34:46 +08:00
|
|
|
// Vector integer operations.
|
2018-05-08 20:17:55 +08:00
|
|
|
defm : X86WriteRes<WriteVecLoad, [HWPort23], 5, [1], 1>;
|
2018-05-11 22:30:54 +08:00
|
|
|
defm : X86WriteRes<WriteVecLoadX, [HWPort23], 6, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteVecLoadY, [HWPort23], 7, [1], 1>;
|
2018-05-15 02:37:19 +08:00
|
|
|
defm : X86WriteRes<WriteVecLoadNT, [HWPort23], 6, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteVecLoadNTY, [HWPort23], 7, [1], 1>;
|
2018-05-08 20:17:55 +08:00
|
|
|
defm : X86WriteRes<WriteVecMaskedLoad, [HWPort23,HWPort5], 8, [1,2], 3>;
|
|
|
|
defm : X86WriteRes<WriteVecMaskedLoadY, [HWPort23,HWPort5], 9, [1,2], 3>;
|
2018-05-09 19:01:16 +08:00
|
|
|
defm : X86WriteRes<WriteVecStore, [HWPort237,HWPort4], 1, [1,1], 2>;
|
2018-05-11 22:30:54 +08:00
|
|
|
defm : X86WriteRes<WriteVecStoreX, [HWPort237,HWPort4], 1, [1,1], 2>;
|
|
|
|
defm : X86WriteRes<WriteVecStoreY, [HWPort237,HWPort4], 1, [1,1], 2>;
|
2018-05-15 02:37:19 +08:00
|
|
|
defm : X86WriteRes<WriteVecStoreNT, [HWPort237,HWPort4], 1, [1,1], 2>;
|
|
|
|
defm : X86WriteRes<WriteVecStoreNTY, [HWPort237,HWPort4], 1, [1,1], 2>;
|
2018-05-08 20:17:55 +08:00
|
|
|
defm : X86WriteRes<WriteVecMaskedStore, [HWPort0,HWPort4,HWPort237,HWPort15], 5, [1,1,1,1], 4>;
|
|
|
|
defm : X86WriteRes<WriteVecMaskedStoreY, [HWPort0,HWPort4,HWPort237,HWPort15], 5, [1,1,1,1], 4>;
|
|
|
|
defm : X86WriteRes<WriteVecMove, [HWPort015], 1, [1], 1>;
|
2018-05-11 22:30:54 +08:00
|
|
|
defm : X86WriteRes<WriteVecMoveX, [HWPort015], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteVecMoveY, [HWPort015], 1, [1], 1>;
|
2018-05-19 01:58:36 +08:00
|
|
|
defm : X86WriteRes<WriteVecMoveToGpr, [HWPort0], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteVecMoveFromGpr, [HWPort5], 1, [1], 1>;
|
2018-03-15 22:45:30 +08:00
|
|
|
|
2018-05-11 01:06:09 +08:00
|
|
|
defm : HWWriteResPair<WriteVecLogic, [HWPort015], 1, [1], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteVecLogicX,[HWPort015], 1, [1], 1, 6>;
|
2018-05-01 20:39:17 +08:00
|
|
|
defm : HWWriteResPair<WriteVecLogicY,[HWPort015], 1, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteVecLogicZ,[HWPort015], 1, [1], 1, 7>; // Unsupported = 1
|
2018-05-08 18:28:03 +08:00
|
|
|
defm : HWWriteResPair<WriteVecTest, [HWPort0,HWPort5], 2, [1,1], 2, 6>;
|
|
|
|
defm : HWWriteResPair<WriteVecTestY, [HWPort0,HWPort5], 4, [1,1], 2, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteVecTestZ, [HWPort0,HWPort5], 4, [1,1], 2, 7>; // Unsupported = 1
|
2018-05-11 01:06:09 +08:00
|
|
|
defm : HWWriteResPair<WriteVecALU, [HWPort15], 1, [1], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteVecALUX, [HWPort15], 1, [1], 1, 6>;
|
2018-05-03 21:27:10 +08:00
|
|
|
defm : HWWriteResPair<WriteVecALUY, [HWPort15], 1, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteVecALUZ, [HWPort15], 1, [1], 1, 7>; // Unsupported = 1
|
2018-05-05 01:47:46 +08:00
|
|
|
defm : HWWriteResPair<WriteVecIMul, [HWPort0], 5, [1], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteVecIMulX, [HWPort0], 5, [1], 1, 6>;
|
2018-05-03 18:31:20 +08:00
|
|
|
defm : HWWriteResPair<WriteVecIMulY, [HWPort0], 5, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteVecIMulZ, [HWPort0], 5, [1], 1, 7>; // Unsupported = 1
|
2018-03-31 12:54:32 +08:00
|
|
|
defm : HWWriteResPair<WritePMULLD, [HWPort0], 10, [2], 2, 6>;
|
2018-05-03 18:31:20 +08:00
|
|
|
defm : HWWriteResPair<WritePMULLDY, [HWPort0], 10, [2], 2, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WritePMULLDZ, [HWPort0], 10, [2], 2, 7>; // Unsupported = 1
|
2018-05-03 01:58:50 +08:00
|
|
|
defm : HWWriteResPair<WriteShuffle, [HWPort5], 1, [1], 1, 5>;
|
2018-05-11 01:06:09 +08:00
|
|
|
defm : HWWriteResPair<WriteShuffleX, [HWPort5], 1, [1], 1, 6>;
|
2018-05-03 02:48:23 +08:00
|
|
|
defm : HWWriteResPair<WriteShuffleY, [HWPort5], 1, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteShuffleZ, [HWPort5], 1, [1], 1, 7>; // Unsupported = 1
|
2018-05-11 01:06:09 +08:00
|
|
|
defm : HWWriteResPair<WriteVarShuffle, [HWPort5], 1, [1], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteVarShuffleX,[HWPort5], 1, [1], 1, 6>;
|
2018-05-03 02:48:23 +08:00
|
|
|
defm : HWWriteResPair<WriteVarShuffleY,[HWPort5], 1, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteVarShuffleZ,[HWPort5], 1, [1], 1, 7>; // Unsupported = 1
|
2018-04-23 02:35:53 +08:00
|
|
|
defm : HWWriteResPair<WriteBlend, [HWPort5], 1, [1], 1, 6>;
|
2018-05-03 02:48:23 +08:00
|
|
|
defm : HWWriteResPair<WriteBlendY, [HWPort5], 1, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteBlendZ, [HWPort5], 1, [1], 1, 7>; // Unsupported = 1
|
2018-05-03 01:58:50 +08:00
|
|
|
defm : HWWriteResPair<WriteShuffle256, [HWPort5], 3, [1], 1, 7>;
|
|
|
|
defm : HWWriteResPair<WriteVarShuffle256, [HWPort5], 3, [1], 1, 7>;
|
2018-04-22 22:43:12 +08:00
|
|
|
defm : HWWriteResPair<WriteVarBlend, [HWPort5], 2, [2], 2, 6>;
|
2018-05-03 02:48:23 +08:00
|
|
|
defm : HWWriteResPair<WriteVarBlendY, [HWPort5], 2, [2], 2, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteVarBlendZ, [HWPort5], 2, [2], 2, 7>; // Unsupported = 1
|
2018-04-22 18:39:16 +08:00
|
|
|
defm : HWWriteResPair<WriteMPSAD, [HWPort0, HWPort5], 7, [1, 2], 3, 6>;
|
2018-05-03 18:31:20 +08:00
|
|
|
defm : HWWriteResPair<WriteMPSADY, [HWPort0, HWPort5], 7, [1, 2], 3, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteMPSADZ, [HWPort0, HWPort5], 7, [1, 2], 3, 7>; // Unsupported = 1
|
2018-05-11 01:06:09 +08:00
|
|
|
defm : HWWriteResPair<WritePSADBW, [HWPort0], 5, [1], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WritePSADBWX, [HWPort0], 5, [1], 1, 6>;
|
2018-05-03 18:31:20 +08:00
|
|
|
defm : HWWriteResPair<WritePSADBWY, [HWPort0], 5, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WritePSADBWZ, [HWPort0], 5, [1], 1, 7>; // Unsupported = 1
|
2018-04-25 02:49:25 +08:00
|
|
|
defm : HWWriteResPair<WritePHMINPOS, [HWPort0], 5, [1], 1, 6>;
|
2014-02-25 03:33:51 +08:00
|
|
|
|
2018-05-04 01:56:43 +08:00
|
|
|
// Vector integer shifts.
|
|
|
|
defm : HWWriteResPair<WriteVecShift, [HWPort0], 1, [1], 1, 5>;
|
|
|
|
defm : HWWriteResPair<WriteVecShiftX, [HWPort0,HWPort5], 2, [1,1], 2, 6>;
|
|
|
|
defm : X86WriteRes<WriteVecShiftY, [HWPort0,HWPort5], 4, [1,1], 2>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteRes<WriteVecShiftZ, [HWPort0,HWPort5], 4, [1,1], 2>; // Unsupported = 1
|
2018-05-04 01:56:43 +08:00
|
|
|
defm : X86WriteRes<WriteVecShiftYLd, [HWPort0,HWPort23], 8, [1,1], 2>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteRes<WriteVecShiftZLd, [HWPort0,HWPort23], 8, [1,1], 2>; // Unsupported = 1
|
2018-05-04 01:56:43 +08:00
|
|
|
|
2018-05-05 01:47:46 +08:00
|
|
|
defm : HWWriteResPair<WriteVecShiftImm, [HWPort0], 1, [1], 1, 5>;
|
2018-05-04 01:56:43 +08:00
|
|
|
defm : HWWriteResPair<WriteVecShiftImmX, [HWPort0], 1, [1], 1, 6>;
|
|
|
|
defm : HWWriteResPair<WriteVecShiftImmY, [HWPort0], 1, [1], 1, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteVecShiftImmZ, [HWPort0], 1, [1], 1, 7>; // Unsupported = 1
|
2018-05-04 01:56:43 +08:00
|
|
|
defm : HWWriteResPair<WriteVarVecShift, [HWPort0, HWPort5], 3, [2,1], 3, 6>;
|
|
|
|
defm : HWWriteResPair<WriteVarVecShiftY, [HWPort0, HWPort5], 3, [2,1], 3, 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : HWWriteResPair<WriteVarVecShiftZ, [HWPort0, HWPort5], 3, [2,1], 3, 7>; // Unsupported = 1
|
2018-05-04 01:56:43 +08:00
|
|
|
|
2018-04-24 21:21:41 +08:00
|
|
|
// Vector insert/extract operations.
|
|
|
|
def : WriteRes<WriteVecInsert, [HWPort5]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
|
|
|
def : WriteRes<WriteVecInsertLd, [HWPort5,HWPort23]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
}
|
2018-05-03 01:58:50 +08:00
|
|
|
def: InstRW<[WriteVecInsertLd], (instregex "(V?)MOV(H|L)(PD|PS)rm")>;
|
2018-04-24 21:21:41 +08:00
|
|
|
|
|
|
|
def : WriteRes<WriteVecExtract, [HWPort0,HWPort5]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
}
|
|
|
|
def : WriteRes<WriteVecExtractSt, [HWPort4,HWPort5,HWPort237]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2018-03-28 04:38:54 +08:00
|
|
|
// MOVMSK Instructions.
|
2018-05-04 22:54:33 +08:00
|
|
|
def : WriteRes<WriteFMOVMSK, [HWPort0]> { let Latency = 3; }
|
|
|
|
def : WriteRes<WriteVecMOVMSK, [HWPort0]> { let Latency = 3; }
|
|
|
|
def : WriteRes<WriteVecMOVMSKY, [HWPort0]> { let Latency = 3; }
|
|
|
|
def : WriteRes<WriteMMXMOVMSK, [HWPort0]> { let Latency = 1; }
|
2018-03-28 04:38:54 +08:00
|
|
|
|
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
|
|
|
|
2018-04-22 02:07:36 +08:00
|
|
|
// Load/store MXCSR.
|
|
|
|
def : WriteRes<WriteLDMXCSR, [HWPort0,HWPort23,HWPort0156]> { let Latency = 7; let NumMicroOps = 3; let ResourceCycles = [1,1,1]; }
|
|
|
|
def : WriteRes<WriteSTMXCSR, [HWPort4,HWPort5,HWPort237]> { let Latency = 2; let NumMicroOps = 3; let ResourceCycles = [1,1,1]; }
|
|
|
|
|
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.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteP0 : SchedWriteRes<[HWPort0]>;
|
2014-08-19 01:55:26 +08:00
|
|
|
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteP01 : SchedWriteRes<[HWPort01]>;
|
2014-08-19 01:55:36 +08:00
|
|
|
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWrite2P01 : SchedWriteRes<[HWPort01]> {
|
2014-08-19 01:55:36 +08:00
|
|
|
let NumMicroOps = 2;
|
|
|
|
}
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWrite3P01 : SchedWriteRes<[HWPort01]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 3;
|
2014-08-19 01:55:13 +08:00
|
|
|
}
|
|
|
|
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteP0156_P23 : SchedWriteRes<[HWPort0156, HWPort23]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 2;
|
2014-08-19 01:55:13 +08:00
|
|
|
}
|
2017-06-28 19:23:31 +08:00
|
|
|
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWrite2P0156_P23 : SchedWriteRes<[HWPort0156, HWPort23]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
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.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteP1 : SchedWriteRes<[HWPort1]>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
2014-08-19 01:55:49 +08:00
|
|
|
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWrite2P1 : 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.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteXLAT : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let Latency = 7;
|
2017-06-27 23:05:13 +08:00
|
|
|
let NumMicroOps = 3;
|
2014-08-19 01:55:08 +08:00
|
|
|
}
|
2018-04-27 21:32:42 +08:00
|
|
|
def : InstRW<[HWWriteXLAT], (instrs XLAT)>;
|
2014-08-19 01:55:08 +08:00
|
|
|
|
2017-06-28 19:23:31 +08:00
|
|
|
// PUSHA.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWritePushA : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 19;
|
2014-08-19 01:55:08 +08:00
|
|
|
}
|
2018-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWritePushA], (instregex "PUSHA(16|32)")>;
|
2014-08-19 01:55:08 +08:00
|
|
|
|
2017-06-28 19:23:31 +08:00
|
|
|
// POPA.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWritePopA : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 18;
|
2017-06-27 23:05:13 +08:00
|
|
|
}
|
2018-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWritePopA], (instregex "POPA(16|32)")>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
//-- Arithmetic instructions --//
|
|
|
|
|
|
|
|
// BTR BTS BTC.
|
|
|
|
// m,r.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteBTRSCmr : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 11;
|
|
|
|
}
|
2018-10-02 21:11:59 +08:00
|
|
|
def : SchedAlias<WriteBitTestSetRegRMW, HWWriteBTRSCmr>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
//-- Control transfer instructions --//
|
|
|
|
|
|
|
|
// CALL.
|
|
|
|
// i.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteRETI : SchedWriteRes<[HWPort23, HWPort6, HWPort015]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1, 2, 1];
|
|
|
|
}
|
2018-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWriteRETI], (instregex "RETI(L|Q|W)", "LRETI(L|Q|W)")>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// BOUND.
|
|
|
|
// r,m.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteBOUND : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 15;
|
|
|
|
}
|
2018-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWriteBOUND], (instregex "BOUNDS(16|32)rm")>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// INTO.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteINTO : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 4;
|
|
|
|
}
|
2018-04-29 23:33:15 +08:00
|
|
|
def : InstRW<[HWWriteINTO], (instrs INTO)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
//-- String instructions --//
|
|
|
|
|
|
|
|
// LODSB/W.
|
2018-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWrite2P0156_P23], (instregex "LODS(B|W)")>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// LODSD/Q.
|
2018-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWriteP0156_P23], (instregex "LODS(L|Q)")>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// MOVS.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteMOVS : 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-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWriteMOVS], (instrs MOVSB, MOVSL, MOVSQ, MOVSW)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// CMPS.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteCMPS : 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];
|
|
|
|
}
|
2018-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWriteCMPS], (instregex "CMPS(B|L|Q|W)")>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
//-- Other --//
|
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
// RDPMC.f
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteRDPMC : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 34;
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def : InstRW<[HWWriteRDPMC], (instrs RDPMC)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// RDRAND.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteRDRAND : SchedWriteRes<[HWPort23, HWPort015]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 17;
|
|
|
|
let ResourceCycles = [1, 16];
|
|
|
|
}
|
2018-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWriteRDRAND], (instregex "RDRAND(16|32|64)r")>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
//=== Floating Point x87 Instructions ===//
|
|
|
|
//-- Move instructions --//
|
|
|
|
|
|
|
|
// FLD.
|
|
|
|
// m80.
|
2018-08-19 02:04:29 +08:00
|
|
|
def : InstRW<[HWWriteP01], (instrs LD_Frr)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FBLD.
|
|
|
|
// m80.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteFBLD : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let Latency = 47;
|
|
|
|
let NumMicroOps = 43;
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def : InstRW<[HWWriteFBLD], (instrs FBLDm)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FST(P).
|
|
|
|
// r.
|
2018-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWriteP01], (instregex "ST_(F|FP)rr")>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FFREE.
|
2018-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWriteP01], (instregex "FFREE")>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FNSAVE.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteFNSAVE : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 147;
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def : InstRW<[HWWriteFNSAVE], (instrs FSAVEm)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FRSTOR.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteFRSTOR : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let NumMicroOps = 90;
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def : InstRW<[HWWriteFRSTOR], (instrs FRSTORm)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
//-- Arithmetic instructions --//
|
|
|
|
|
|
|
|
// FCOMPP FUCOMPP.
|
|
|
|
// r.
|
2018-05-11 03:08:06 +08:00
|
|
|
def : InstRW<[HWWrite2P01], (instrs FCOMPP, UCOM_FPPr)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FCOMI(P) FUCOMI(P).
|
|
|
|
// m.
|
2018-04-28 05:14:19 +08:00
|
|
|
def : InstRW<[HWWrite3P01], (instrs COM_FIPr, COM_FIr, UCOM_FIPr, UCOM_FIr)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FTST.
|
2018-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWriteP1], (instregex "TST_F")>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FXAM.
|
2018-04-24 00:10:50 +08:00
|
|
|
def : InstRW<[HWWrite2P1], (instrs FXAM)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FPREM.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteFPREM : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let Latency = 19;
|
|
|
|
let NumMicroOps = 28;
|
|
|
|
}
|
2018-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWriteFPREM], (instrs FPREM)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FPREM1.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteFPREM1 : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let Latency = 27;
|
|
|
|
let NumMicroOps = 41;
|
|
|
|
}
|
2018-04-02 09:12:32 +08:00
|
|
|
def : InstRW<[HWWriteFPREM1], (instrs FPREM1)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FRNDINT.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteFRNDINT : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let Latency = 11;
|
|
|
|
let NumMicroOps = 17;
|
|
|
|
}
|
2018-04-24 00:10:50 +08:00
|
|
|
def : InstRW<[HWWriteFRNDINT], (instrs FRNDINT)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
//-- Math instructions --//
|
|
|
|
|
|
|
|
// FSCALE.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteFSCALE : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let Latency = 75; // 49-125
|
|
|
|
let NumMicroOps = 50; // 25-75
|
|
|
|
}
|
2018-04-24 00:10:50 +08:00
|
|
|
def : InstRW<[HWWriteFSCALE], (instrs FSCALE)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
// FXTRACT.
|
2018-04-02 09:12:32 +08:00
|
|
|
def HWWriteFXTRACT : SchedWriteRes<[]> {
|
2017-06-28 19:23:31 +08:00
|
|
|
let Latency = 15;
|
|
|
|
let NumMicroOps = 17;
|
|
|
|
}
|
2018-04-24 00:10:50 +08:00
|
|
|
def : InstRW<[HWWriteFXTRACT], (instrs FXTRACT)>;
|
2017-06-28 19:23:31 +08:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Horizontal add/sub instructions.
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-04-22 23:25:59 +08:00
|
|
|
defm : HWWriteResPair<WriteFHAdd, [HWPort1, HWPort5], 5, [1,2], 3, 6>;
|
2018-04-28 00:11:57 +08:00
|
|
|
defm : HWWriteResPair<WriteFHAddY, [HWPort1, HWPort5], 5, [1,2], 3, 7>;
|
2018-05-11 01:06:09 +08:00
|
|
|
defm : HWWriteResPair<WritePHAdd, [HWPort5, HWPort15], 3, [2,1], 3, 5>;
|
|
|
|
defm : HWWriteResPair<WritePHAddX, [HWPort5, HWPort15], 3, [2,1], 3, 6>;
|
2018-05-03 21:27:10 +08:00
|
|
|
defm : HWWriteResPair<WritePHAddY, [HWPort5, HWPort15], 3, [2,1], 3, 7>;
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup0], (instrs VBROADCASTSSrm)>;
|
|
|
|
def: InstRW<[HWWriteResGroup0], (instregex "(V?)MOVSHDUPrm",
|
2018-03-22 00:19:03 +08:00
|
|
|
"(V?)MOVSLDUPrm",
|
2018-05-11 03:08:06 +08:00
|
|
|
"VPBROADCAST(D|Q)rm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup0_1 : SchedWriteRes<[HWPort23]> {
|
|
|
|
let Latency = 7;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup0_1], (instrs VBROADCASTF128,
|
|
|
|
VBROADCASTI128,
|
|
|
|
VBROADCASTSDYrm,
|
|
|
|
VBROADCASTSSYrm,
|
|
|
|
VMOVDDUPYrm,
|
|
|
|
VMOVSHDUPYrm,
|
|
|
|
VMOVSLDUPYrm)>;
|
2018-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[HWWriteResGroup0_1], (instregex "LD_F(32|64|80)m",
|
2018-05-11 03:08:06 +08:00
|
|
|
"VPBROADCAST(D|Q)Yrm")>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup0_2 : SchedWriteRes<[HWPort23]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup0_2], (instregex "MOVSX(16|32|64)rm(8|16|32)",
|
|
|
|
"MOVZX(16|32|64)rm(8|16)",
|
2018-04-22 05:59:36 +08:00
|
|
|
"(V?)MOVDDUPrm")>;
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup1], (instrs FBSTPm, VMPTRSTm)>;
|
|
|
|
def: InstRW<[HWWriteResGroup1], (instregex "ST_FP(32|64|80)m")>;
|
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-05-19 01:58:36 +08:00
|
|
|
def: InstRW<[HWWriteResGroup2], (instregex "VPSLLVQ(Y?)rr",
|
2018-05-08 18:28:03 +08:00
|
|
|
"VPSRLVQ(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-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup3], (instregex "COM(P?)_FST0r",
|
|
|
|
"UCOM_F(P?)r")>;
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup4], (instrs MMX_MOVQ2DQrr)>;
|
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-04-24 00:10:50 +08:00
|
|
|
def: InstRW<[HWWriteResGroup6], (instrs 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-04-06 05:56:19 +08:00
|
|
|
def: InstRW<[HWWriteResGroup7], (instrs CDQ, CQO)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup8 : SchedWriteRes<[HWPort15]> {
|
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-09-14 21:09:56 +08:00
|
|
|
def: InstRW<[HWWriteResGroup8], (instregex "ANDN(32|64)rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup9 : SchedWriteRes<[HWPort015]> {
|
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-05-19 01:58:36 +08:00
|
|
|
def: InstRW<[HWWriteResGroup9], (instregex "VPBLENDD(Y?)rri")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup10 : SchedWriteRes<[HWPort0156]> {
|
|
|
|
let Latency = 1;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup10], (instrs CBW, CWDE, CDQE,
|
2018-08-19 02:04:29 +08:00
|
|
|
CMC, STC,
|
|
|
|
SGDT64m,
|
|
|
|
SIDT64m,
|
|
|
|
SMSW16m,
|
|
|
|
STRm,
|
|
|
|
SYSCALL)>;
|
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-05-15 22:12:32 +08:00
|
|
|
def: InstRW<[HWWriteResGroup11], (instregex "(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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup11_1], (instrs VPSLLVQrm, VPSRLVQrm)>;
|
|
|
|
def: InstRW<[HWWriteResGroup11_1], (instregex "(V?)CVTSS2SDrm")>;
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup11_2], (instrs VPSLLVQYrm, VPSRLVQYrm)>;
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup12], (instrs MMX_CVTPI2PSirm)>;
|
|
|
|
def: InstRW<[HWWriteResGroup12], (instregex "P(DEP|EXT)(32|64)rm")>;
|
2014-08-19 01:55:51 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup13 : SchedWriteRes<[HWPort5,HWPort23]> {
|
2018-05-11 01:06:09 +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-05-11 01:06:09 +08:00
|
|
|
def: InstRW<[HWWriteResGroup13], (instregex "(V?)PMOV(SX|ZX)BDrm",
|
|
|
|
"(V?)PMOV(SX|ZX)BQrm",
|
|
|
|
"(V?)PMOV(SX|ZX)BWrm",
|
|
|
|
"(V?)PMOV(SX|ZX)DQrm",
|
|
|
|
"(V?)PMOV(SX|ZX)WDrm",
|
|
|
|
"(V?)PMOV(SX|ZX)WQrm")>;
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup13_1], (instrs VPMOVSXBDYrm,
|
|
|
|
VPMOVSXBQYrm,
|
|
|
|
VPMOVSXWQYrm)>;
|
2018-05-03 02:48:23 +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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup14], (instrs FARJMP64)>;
|
|
|
|
def: InstRW<[HWWriteResGroup14], (instregex "JMP(16|32|64)m")>;
|
2014-08-19 01:55:51 +08:00
|
|
|
|
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",
|
2018-05-11 01:06:09 +08:00
|
|
|
"MOVBE(16|32|64)rm")>;
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup17], (instrs VINSERTF128rm,
|
|
|
|
VINSERTI128rm,
|
|
|
|
VPBLENDDrmi)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup17_2], (instrs VPBLENDDYrmi)>;
|
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-04-07 00:16:48 +08:00
|
|
|
def: InstRW<[HWWriteResGroup18], (instregex "POP(16|32|64)rmr")>;
|
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];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup19], (instrs SFENCE)>;
|
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];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup21], (instrs FNSTCW16m)>;
|
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];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup23_16], (instrs MOVBE16mr)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup24], (instrs PUSH16r, PUSH32r, PUSH64r, PUSH64i8,
|
2018-04-27 21:32:42 +08:00
|
|
|
STOSB, STOSL, STOSQ, STOSW)>;
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup24], (instregex "PUSH(16|32|64)rmr")>;
|
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-10-02 21:11:59 +08:00
|
|
|
def: InstRW<[HWWriteResGroup25], (instregex "SAR(8|16|32|64)m(1|i)",
|
2018-08-18 23:58:19 +08:00
|
|
|
"SHL(8|16|32|64)m(1|i)",
|
|
|
|
"SHR(8|16|32|64)m(1|i)")>;
|
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-04-07 00:16:48 +08:00
|
|
|
def: InstRW<[HWWriteResGroup26], (instregex "POP(16|32|64)rmm",
|
|
|
|
"PUSH(16|32|64)rmm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup28 : SchedWriteRes<[HWPort01]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
2018-04-24 00:10:50 +08:00
|
|
|
def: InstRW<[HWWriteResGroup28], (instrs FDECSTP)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup30 : SchedWriteRes<[HWPort0156]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [2];
|
|
|
|
}
|
2018-04-27 21:32:42 +08:00
|
|
|
def: InstRW<[HWWriteResGroup30], (instrs LFENCE,
|
|
|
|
MFENCE,
|
|
|
|
WAIT,
|
|
|
|
XGETBV)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup31 : SchedWriteRes<[HWPort0,HWPort5]> {
|
|
|
|
let Latency = 2;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-05-15 22:12:32 +08:00
|
|
|
def: InstRW<[HWWriteResGroup31], (instregex "(V?)CVTPS2PDrr",
|
2018-05-08 18:28:03 +08:00
|
|
|
"(V?)CVTSS2SDrr")>;
|
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];
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup33], (instrs MMX_MOVDQ2Qrr)>;
|
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)>;
|
2018-05-17 20:43:42 +08:00
|
|
|
def: InstRW<[HWWriteResGroup35], (instregex "SET(A|BE)r")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup36_2], (instrs 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-04-06 05:16:26 +08:00
|
|
|
def: InstRW<[HWWriteResGroup37], (instrs LEAVE, LEAVE64,
|
|
|
|
SCASB, SCASL, SCASQ, SCASW)>;
|
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];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup39], (instrs FLDCW16m)>;
|
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-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup41], (instrs LRETQ, RETL, RETQ)>;
|
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-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup45], (instrs CALL64pcrel32)>;
|
|
|
|
def: InstRW<[HWWriteResGroup45], (instregex "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-08-18 23:58:19 +08:00
|
|
|
def: InstRW<[HWWriteResGroup46], (instregex "ROL(8|16|32|64)m(1|i)",
|
|
|
|
"ROR(8|16|32|64)m(1|i)")>;
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup48], (instregex "CALL(16|32|64)m")>;
|
|
|
|
def: InstRW<[HWWriteResGroup48], (instrs FARCALL64)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup50 : SchedWriteRes<[HWPort1]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup50], (instrs MMX_CVTPI2PSirr)>;
|
|
|
|
def: InstRW<[HWWriteResGroup50], (instregex "P(DEP|EXT)(32|64)rr",
|
2018-04-22 05:16:44 +08:00
|
|
|
"(V?)CVTDQ2PS(Y?)rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup51 : SchedWriteRes<[HWPort5]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup51], (instregex "VPBROADCAST(B|W)rr")>;
|
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-05-02 17:18:49 +08:00
|
|
|
def: InstRW<[HWWriteResGroup52], (instregex "(V?)CVTPS2DQrm",
|
|
|
|
"(V?)CVTTPS2DQrm")>;
|
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-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[HWWriteResGroup52_1], (instregex "(ADD|SUB|SUBR)_F(32|64)m",
|
2018-08-19 02:04:29 +08:00
|
|
|
"ILD_F(16|32|64)m")>;
|
|
|
|
def: InstRW<[HWWriteResGroup52_1], (instrs VCVTDQ2PSYrm,
|
|
|
|
VCVTPS2DQYrm,
|
|
|
|
VCVTTPS2DQYrm)>;
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup53_1], (instrs VPMOVSXBWYrm,
|
|
|
|
VPMOVSXDQYrm,
|
|
|
|
VPMOVSXWDYrm,
|
|
|
|
VPMOVZXWDYrm)>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup57 : SchedWriteRes<[HWPort5,HWPort0156]> {
|
|
|
|
let Latency = 3;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup57], (instrs 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-08-18 23:58:19 +08:00
|
|
|
def: InstRW<[HWWriteResGroup59], (instregex "RCL(8|16|32|64)r(1|i)",
|
|
|
|
"RCR(8|16|32|64)r(1|i)")>;
|
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];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup61], (instrs FNSTSWm)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
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-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[HWWriteResGroup62], (instregex "IST(T?)_FP(16|32|64)m",
|
|
|
|
"IST_F(16|32)m")>;
|
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-08-18 23:58:19 +08:00
|
|
|
def: InstRW<[HWWriteResGroup66], (instregex "RCL(8|16|32|64)m(1|i)",
|
|
|
|
"RCR(8|16|32|64)m(1|i)")>;
|
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-04-02 05:54:24 +08:00
|
|
|
def: InstRW<[HWWriteResGroup68], (instregex "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-09-25 21:01:26 +08:00
|
|
|
def: InstRW<[HWWriteResGroup69], (instregex "ROL(8|16|32|64)mCL",
|
|
|
|
"ROR(8|16|32|64)mCL",
|
|
|
|
"SAR(8|16|32|64)mCL",
|
|
|
|
"SHL(8|16|32|64)mCL",
|
|
|
|
"SHR(8|16|32|64)mCL")>;
|
2018-05-17 20:43:42 +08:00
|
|
|
def: SchedAlias<WriteADCRMW, HWWriteResGroup69>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup70 : SchedWriteRes<[HWPort0,HWPort1]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-05-10 03:04:15 +08:00
|
|
|
def: InstRW<[HWWriteResGroup70], (instregex "(V?)CVT(T?)SD2SI(64)?rr",
|
|
|
|
"(V?)CVT(T?)SS2SI(64)?rr")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup71 : SchedWriteRes<[HWPort0,HWPort5]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup71], (instrs VCVTPS2PDYrr)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup72 : SchedWriteRes<[HWPort0,HWPort0156]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup72], (instrs FNSTSW16r)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup73 : SchedWriteRes<[HWPort1,HWPort5]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup73], (instrs MMX_CVTPI2PDirr,
|
|
|
|
MMX_CVTPD2PIirr,
|
|
|
|
MMX_CVTPS2PIirr,
|
|
|
|
MMX_CVTTPD2PIirr,
|
|
|
|
MMX_CVTTPS2PIirr)>;
|
|
|
|
def: InstRW<[HWWriteResGroup73], (instregex "(V?)CVTDQ2PDrr",
|
2018-03-22 00:19:03 +08:00
|
|
|
"(V?)CVTPD2PSrr",
|
|
|
|
"(V?)CVTSD2SSrr",
|
2018-05-10 03:04:15 +08:00
|
|
|
"(V?)CVTSI(64)?2SDrr",
|
2018-03-22 00:19:03 +08:00
|
|
|
"(V?)CVTSI2SSrr",
|
2018-05-10 03:04:15 +08:00
|
|
|
"(V?)CVT(T?)PD2DQrr")>;
|
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-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup75], (instregex "FICOM(P?)(16|32)m")>;
|
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-05-10 03:04:15 +08:00
|
|
|
def: InstRW<[HWWriteResGroup76], (instregex "(V?)CVTSD2SI(64)?rm",
|
|
|
|
"(V?)CVTSS2SI(64)?rm",
|
|
|
|
"(V?)CVTTSD2SI(64)?rm",
|
2018-03-22 00:19:03 +08:00
|
|
|
"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];
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup77], (instrs VCVTPS2PDYrm)>;
|
2017-12-08 17:48:44 +08:00
|
|
|
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup78], (instrs CVTPD2PSrm,
|
|
|
|
CVTPD2DQrm,
|
|
|
|
CVTTPD2DQrm,
|
|
|
|
MMX_CVTPD2PIirm,
|
|
|
|
MMX_CVTTPD2PIirm,
|
|
|
|
CVTDQ2PDrm,
|
|
|
|
VCVTDQ2PDrm)>;
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup78_1], (instrs MMX_CVTPI2PDirm,
|
|
|
|
CVTSD2SSrm,
|
|
|
|
VCVTSD2SSrm)>;
|
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-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup80], (instregex "VPBROADCAST(B|W)(Y?)rm")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup81 : SchedWriteRes<[HWPort0156]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [4];
|
|
|
|
}
|
2018-04-24 00:10:50 +08:00
|
|
|
def: InstRW<[HWWriteResGroup81], (instrs FNCLEX)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup82 : SchedWriteRes<[HWPort015,HWPort0156]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 4;
|
|
|
|
let ResourceCycles = [1,3];
|
|
|
|
}
|
2018-04-27 21:32:42 +08:00
|
|
|
def: InstRW<[HWWriteResGroup82], (instrs VZEROUPPER)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
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 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-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup88], (instregex "PUSHF(16|64)")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup89 : SchedWriteRes<[HWPort0]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 1;
|
|
|
|
let ResourceCycles = [1];
|
|
|
|
}
|
2018-05-02 22:25:32 +08:00
|
|
|
def: InstRW<[HWWriteResGroup89], (instregex "(V?)PCMPGTQ(Y?)rr",
|
2018-05-11 03:08:06 +08:00
|
|
|
"MUL_(FPrST0|FST0r|FrST0)")>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
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-05-07 19:50:44 +08:00
|
|
|
def: InstRW<[HWWriteResGroup91_2], (instregex "(V?)PCMPGTQrm")>;
|
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-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup91_3], (instregex "MUL_F(32|64)m")>;
|
|
|
|
def: InstRW<[HWWriteResGroup91_3], (instrs VPCMPGTQYrm)>;
|
2018-05-03 18:31:20 +08:00
|
|
|
|
2017-08-28 18:04:16 +08:00
|
|
|
def HWWriteResGroup93 : SchedWriteRes<[HWPort1,HWPort5]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 3;
|
|
|
|
let ResourceCycles = [1,2];
|
|
|
|
}
|
2018-04-22 00:20:28 +08:00
|
|
|
def: InstRW<[HWWriteResGroup93], (instregex "(V?)CVTSI642SSrr")>;
|
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 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 HWWriteResGroup99 : SchedWriteRes<[HWPort6,HWPort0156]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,4];
|
|
|
|
}
|
2018-04-29 23:33:15 +08:00
|
|
|
def: InstRW<[HWWriteResGroup99], (instrs PAUSE)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup100 : SchedWriteRes<[HWPort06,HWPort0156]> {
|
|
|
|
let Latency = 5;
|
|
|
|
let NumMicroOps = 5;
|
|
|
|
let ResourceCycles = [1,4];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup100], (instrs XSETBV)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup102 : SchedWriteRes<[HWPort1,HWPort5]> {
|
|
|
|
let Latency = 6;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1,1];
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup102], (instrs VCVTDQ2PDYrr,
|
|
|
|
VCVTPD2PSYrr,
|
|
|
|
VCVTPD2DQYrr,
|
|
|
|
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-05-04 20:59:24 +08:00
|
|
|
def: InstRW<[HWWriteResGroup103], (instregex "(ADD|SUB|SUBR)_FI(16|32)m")>;
|
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];
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup104], (instrs VCVTDQ2PDYrm)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
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];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup108], (instrs STD)>;
|
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-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[HWWriteResGroup115], (instregex "MUL_FI(16|32)m")>;
|
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 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];
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup130], (instrs RCL8rCL)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
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];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup132], (instrs CMPXCHG8B)>;
|
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 HWWriteResGroup142 : SchedWriteRes<[HWPort1,HWPort06,HWPort15,HWPort0156]> {
|
|
|
|
let Latency = 14;
|
|
|
|
let NumMicroOps = 10;
|
|
|
|
let ResourceCycles = [2,3,1,4];
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup142], (instrs RCR8rCL)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
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];
|
|
|
|
}
|
2018-08-19 02:04:29 +08:00
|
|
|
def: InstRW<[HWWriteResGroup143], (instrs POPF16)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
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-04-27 21:32:42 +08:00
|
|
|
def: InstRW<[HWWriteResGroup144], (instrs INSB, INSL, INSW)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
2018-10-01 16:37:48 +08:00
|
|
|
def HWWriteResGroup145 : SchedWriteRes<[HWPort5, HWPort6]> {
|
|
|
|
let Latency = 8;
|
|
|
|
let NumMicroOps = 20;
|
|
|
|
let ResourceCycles = [1,1];
|
2014-08-19 01:55:51 +08:00
|
|
|
}
|
2018-04-27 21:32:42 +08:00
|
|
|
def: InstRW<[HWWriteResGroup145], (instrs 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];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup146], (instrs CMPXCHG16B)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
def HWWriteResGroup147 : SchedWriteRes<[HWPort0,HWPort1,HWPort5,HWPort6,HWPort01,HWPort0156]> {
|
|
|
|
let Latency = 17;
|
|
|
|
let NumMicroOps = 15;
|
|
|
|
let ResourceCycles = [2,1,2,4,2,4];
|
|
|
|
}
|
2018-04-27 21:32:42 +08:00
|
|
|
def: InstRW<[HWWriteResGroup147], (instrs XCH_F)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
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
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup149], (instrs CPUID, 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-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup154], (instregex "DIV_(FPrST0|FST0r|FrST0)")>;
|
2018-04-02 13:33:28 +08:00
|
|
|
|
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-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[HWWriteResGroup155], (instregex "DIVR_F(32|64)m")>;
|
2017-12-08 17:48:44 +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];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup156], (instrs MWAITrr)>;
|
2017-06-28 19:23:31 +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-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[HWWriteResGroup161], (instregex "DIVR_FI(16|32)m")>;
|
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-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup162], (instregex "DIVR_(FPrST0|FST0r|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-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[HWWriteResGroup163], (instregex "DIV_F(32|64)m")>;
|
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
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup164], (instrs 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-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup165], (instrs XSAVE)>;
|
|
|
|
def: InstRW<[HWWriteResGroup165], (instregex "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-04-28 05:14:19 +08:00
|
|
|
def: InstRW<[HWWriteResGroup166], (instregex "DIV_FI(16|32)m")>;
|
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 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];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup175], (instrs VMCLEARm)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
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];
|
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup177], (instrs FLDENVm)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
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];
|
|
|
|
}
|
2018-04-24 00:10:50 +08:00
|
|
|
def: InstRW<[HWWriteResGroup180], (instrs FNINIT)>;
|
2017-08-28 18:04:16 +08:00
|
|
|
|
|
|
|
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
|
|
|
}
|
2018-05-11 03:08:06 +08:00
|
|
|
def: InstRW<[HWWriteResGroup183], (instrs 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
|
|
|
|
[X86][Sched] Add InstRW for CLC on Intel after SNB.
Summary:
After SNB, Intel CPUs can rename CF independently of other EFLAGS,
so the renamer can zero it for free. Note that STC still consumes resources.
To reproduce: `$ llvm-exegesis -mode=uops -opcode-name=CLC`
On SNB:
```
---
key:
opcode_name: CLC
mode: uops
config: ''
cpu_name: sandybridge
llvm_triple: x86_64-unknown-linux-gnu
num_repetitions: 10000
measurements:
- { key: '3', value: 0.0014, debug_string: SBPort0 }
- { key: '4', value: 0.0013, debug_string: SBPort1 }
- { key: '5', value: 0.0003, debug_string: SBPort4 }
- { key: '6', value: 0.0029, debug_string: SBPort5 }
- { key: '10', value: 0.0003, debug_string: SBPort23 }
error: ''
info: 'instruction is serial, repeating a random one.
Snippet:
CLC
'
...
```
On HSW:
```
---
key:
opcode_name: CLC
mode: uops
config: ''
cpu_name: haswell
llvm_triple: x86_64-unknown-linux-gnu
num_repetitions: 10000
measurements:
- { key: '3', value: 0.001, debug_string: HWPort0 }
- { key: '4', value: 0.0009, debug_string: HWPort1 }
- { key: '5', value: 0.0004, debug_string: HWPort2 }
- { key: '6', value: 0.0006, debug_string: HWPort3 }
- { key: '7', value: 0.0002, debug_string: HWPort4 }
- { key: '8', value: 0.0012, debug_string: HWPort5 }
- { key: '9', value: 0.0022, debug_string: HWPort6 }
- { key: '10', value: 0.0001, debug_string: HWPort7 }
error: ''
info: 'instruction is serial, repeating a random one.
Snippet:
CLC
'
...
```
Reviewers: craig.topper, RKSimon
Subscribers: gchatelet, llvm-commits
Differential Revision: https://reviews.llvm.org/D47362
llvm-svn: 333392
2018-05-29 14:19:39 +08:00
|
|
|
def: InstRW<[WriteZero], (instrs CLC)>;
|
|
|
|
|
2013-03-29 06:34:46 +08:00
|
|
|
} // SchedModel
|