2014-04-23 16:57:09 +08:00
|
|
|
//=- X86ScheduleSLM.td - X86 Silvermont Scheduling -----------*- tablegen -*-=//
|
2013-09-14 03:23:28 +08:00
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2013-09-14 03:23:28 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2014-04-23 18:20:31 +08:00
|
|
|
// This file defines the machine model for Intel Silvermont to support
|
2014-04-23 16:57:09 +08:00
|
|
|
// instruction scheduling and other instruction cost heuristics.
|
2013-09-14 03:23:28 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-04-23 16:57:09 +08:00
|
|
|
def SLMModel : SchedMachineModel {
|
|
|
|
// All x86 instructions are modeled as a single micro-op, and SLM can decode 2
|
|
|
|
// instructions per cycle.
|
|
|
|
let IssueWidth = 2;
|
|
|
|
let MicroOpBufferSize = 32; // Based on the reorder buffer.
|
|
|
|
let LoadLatency = 3;
|
|
|
|
let MispredictPenalty = 10;
|
2014-07-16 06:39:58 +08:00
|
|
|
let PostRAScheduler = 1;
|
2014-04-23 16:57:09 +08:00
|
|
|
|
2014-05-08 17:14:44 +08:00
|
|
|
// For small loops, expand by a small factor to hide the backedge cost.
|
|
|
|
let LoopMicroOpBufferSize = 10;
|
2017-12-13 00:12:53 +08:00
|
|
|
|
|
|
|
// FIXME: SSE4 is unimplemented. This flag is set to allow
|
|
|
|
// the scheduler to assign a default model to unrecognized opcodes.
|
|
|
|
let CompleteModel = 0;
|
2014-04-23 16:57:09 +08:00
|
|
|
}
|
2013-09-14 03:23:28 +08:00
|
|
|
|
2014-04-23 16:57:09 +08:00
|
|
|
let SchedModel = SLMModel in {
|
|
|
|
|
2014-04-23 18:20:31 +08:00
|
|
|
// Silvermont has 5 reservation stations for micro-ops
|
2018-03-25 09:28:43 +08:00
|
|
|
def SLM_IEC_RSV0 : ProcResource<1>;
|
|
|
|
def SLM_IEC_RSV1 : ProcResource<1>;
|
|
|
|
def SLM_FPC_RSV0 : ProcResource<1> { let BufferSize = 1; }
|
|
|
|
def SLM_FPC_RSV1 : ProcResource<1> { let BufferSize = 1; }
|
|
|
|
def SLM_MEC_RSV : ProcResource<1>;
|
2014-04-23 16:57:09 +08:00
|
|
|
|
|
|
|
// Many micro-ops are capable of issuing on multiple ports.
|
2018-03-25 09:28:43 +08:00
|
|
|
def SLM_IEC_RSV01 : ProcResGroup<[SLM_IEC_RSV0, SLM_IEC_RSV1]>;
|
|
|
|
def SLM_FPC_RSV01 : ProcResGroup<[SLM_FPC_RSV0, SLM_FPC_RSV1]>;
|
2014-04-23 16:57:09 +08:00
|
|
|
|
2018-03-25 09:28:43 +08:00
|
|
|
def SLMDivider : ProcResource<1>;
|
|
|
|
def SLMFPMultiplier : ProcResource<1>;
|
|
|
|
def SLMFPDivider : ProcResource<1>;
|
2014-04-23 16:57:09 +08:00
|
|
|
|
|
|
|
// Loads are 3 cycles, so ReadAfterLd registers needn't be available until 3
|
|
|
|
// cycles after the memory operand.
|
|
|
|
def : ReadAdvance<ReadAfterLd, 3>;
|
2018-10-06 01:57:29 +08:00
|
|
|
def : ReadAdvance<ReadAfterVecLd, 3>;
|
|
|
|
def : ReadAdvance<ReadAfterVecXLd, 3>;
|
|
|
|
def : ReadAdvance<ReadAfterVecYLd, 3>;
|
2014-04-23 16:57:09 +08:00
|
|
|
|
2019-01-24 00:35:07 +08:00
|
|
|
def : ReadAdvance<ReadInt2Fpu, 0>;
|
|
|
|
|
2014-04-23 16:57:09 +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.
|
2018-03-25 09:28:43 +08:00
|
|
|
multiclass SLMWriteResPair<X86FoldableSchedWrite SchedRW,
|
|
|
|
list<ProcResourceKind> ExePorts,
|
2018-03-25 18:21:19 +08:00
|
|
|
int Lat, list<int> Res = [1], int UOps = 1,
|
|
|
|
int LoadLat = 3> {
|
2014-04-23 16:57:09 +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;
|
|
|
|
}
|
2014-04-23 16:57:09 +08:00
|
|
|
|
2018-03-25 18:21:19 +08:00
|
|
|
// Memory variant also uses a cycle on MEC_RSV and adds LoadLat cycles to
|
|
|
|
// the latency (default = 3).
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<SchedRW.Folded, !listconcat([SLM_MEC_RSV], 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);
|
|
|
|
let NumMicroOps = UOps;
|
2014-04-23 16:57:09 +08:00
|
|
|
}
|
|
|
|
}
|
2013-09-14 03:23:28 +08:00
|
|
|
|
2014-04-23 16:57:09 +08:00
|
|
|
// A folded store needs a cycle on MEC_RSV for the store data, but it does not
|
|
|
|
// need an extra port cycle to recompute the address.
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WriteRMW, [SLM_MEC_RSV]>;
|
2014-04-23 16:57:09 +08:00
|
|
|
|
2018-05-15 02:37:19 +08:00
|
|
|
def : WriteRes<WriteStore, [SLM_IEC_RSV01, SLM_MEC_RSV]>;
|
|
|
|
def : WriteRes<WriteStoreNT, [SLM_IEC_RSV01, SLM_MEC_RSV]>;
|
|
|
|
def : WriteRes<WriteLoad, [SLM_MEC_RSV]> { let Latency = 3; }
|
|
|
|
def : WriteRes<WriteMove, [SLM_IEC_RSV01]>;
|
|
|
|
def : WriteRes<WriteZero, []>;
|
2014-04-23 16:57:09 +08:00
|
|
|
|
2018-04-22 02:07:36 +08:00
|
|
|
// Load/store MXCSR.
|
|
|
|
// FIXME: These are probably wrong. They are copy pasted from WriteStore/Load.
|
|
|
|
def : WriteRes<WriteSTMXCSR, [SLM_IEC_RSV01, SLM_MEC_RSV]>;
|
|
|
|
def : WriteRes<WriteLDMXCSR, [SLM_MEC_RSV]> { let Latency = 3; }
|
|
|
|
|
2017-12-10 20:36:29 +08:00
|
|
|
// Treat misc copies as a move.
|
|
|
|
def : InstRW<[WriteMove], (instrs COPY)>;
|
|
|
|
|
2018-05-08 22:55:16 +08:00
|
|
|
defm : SLMWriteResPair<WriteALU, [SLM_IEC_RSV01], 1>;
|
2018-05-17 20:43:42 +08:00
|
|
|
defm : SLMWriteResPair<WriteADC, [SLM_IEC_RSV01], 1>;
|
2018-09-24 23:21:57 +08:00
|
|
|
|
|
|
|
defm : SLMWriteResPair<WriteIMul8, [SLM_IEC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteIMul16, [SLM_IEC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteIMul16Imm, [SLM_IEC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteIMul16Reg, [SLM_IEC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteIMul32, [SLM_IEC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteIMul32Imm, [SLM_IEC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteIMul32Reg, [SLM_IEC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteIMul64, [SLM_IEC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteIMul64Imm, [SLM_IEC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteIMul64Reg, [SLM_IEC_RSV1], 3>;
|
2018-07-20 17:39:14 +08:00
|
|
|
|
2018-08-01 02:24:24 +08:00
|
|
|
defm : X86WriteRes<WriteBSWAP32, [SLM_IEC_RSV01], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteBSWAP64, [SLM_IEC_RSV01], 1, [1], 1>;
|
2018-08-30 14:26:00 +08:00
|
|
|
defm : X86WriteRes<WriteCMPXCHG, [SLM_IEC_RSV01], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteCMPXCHGRMW, [SLM_IEC_RSV01, SLM_MEC_RSV], 4, [1, 2], 2>;
|
|
|
|
defm : X86WriteRes<WriteXCHG, [SLM_IEC_RSV01], 1, [1], 1>;
|
2018-07-20 17:39:14 +08:00
|
|
|
|
2018-09-24 05:19:15 +08:00
|
|
|
defm : SLMWriteResPair<WriteShift, [SLM_IEC_RSV0], 1>;
|
|
|
|
defm : SLMWriteResPair<WriteShiftCL, [SLM_IEC_RSV0], 1>;
|
|
|
|
defm : SLMWriteResPair<WriteRotate, [SLM_IEC_RSV0], 1>;
|
|
|
|
defm : SLMWriteResPair<WriteRotateCL, [SLM_IEC_RSV0], 1>;
|
2018-07-31 18:14:43 +08:00
|
|
|
|
|
|
|
defm : X86WriteRes<WriteSHDrri, [SLM_IEC_RSV0], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteSHDrrcl,[SLM_IEC_RSV0], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteSHDmri, [SLM_MEC_RSV, SLM_IEC_RSV0], 4, [2, 1], 2>;
|
|
|
|
defm : X86WriteRes<WriteSHDmrcl,[SLM_MEC_RSV, SLM_IEC_RSV0], 4, [2, 1], 2>;
|
|
|
|
|
2018-05-08 22:55:16 +08:00
|
|
|
defm : SLMWriteResPair<WriteJump, [SLM_IEC_RSV1], 1>;
|
|
|
|
defm : SLMWriteResPair<WriteCRC32, [SLM_IEC_RSV1], 3>;
|
2014-04-23 16:57:09 +08:00
|
|
|
|
2018-04-18 14:04:30 +08:00
|
|
|
defm : SLMWriteResPair<WriteCMOV, [SLM_IEC_RSV01], 2, [2]>;
|
2018-05-13 02:07:07 +08:00
|
|
|
defm : X86WriteRes<WriteFCMOV, [SLM_FPC_RSV1], 3, [1], 1>; // x87 conditional move.
|
2018-04-09 01:53:18 +08:00
|
|
|
def : WriteRes<WriteSETCC, [SLM_IEC_RSV01]>;
|
|
|
|
def : WriteRes<WriteSETCCStore, [SLM_IEC_RSV01, SLM_MEC_RSV]> {
|
|
|
|
// FIXME Latency and NumMicrOps?
|
|
|
|
let ResourceCycles = [2,1];
|
|
|
|
}
|
2018-10-02 00:12:44 +08:00
|
|
|
defm : X86WriteRes<WriteLAHFSAHF, [SLM_IEC_RSV01], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteBitTest, [SLM_IEC_RSV01], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteBitTestImmLd, [SLM_IEC_RSV01, SLM_MEC_RSV], 4, [1,1], 1>;
|
|
|
|
defm : X86WriteRes<WriteBitTestRegLd, [SLM_IEC_RSV01, SLM_MEC_RSV], 4, [1,1], 1>;
|
|
|
|
defm : X86WriteRes<WriteBitTestSet, [SLM_IEC_RSV01], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteBitTestSetImmLd, [SLM_IEC_RSV01, SLM_MEC_RSV], 3, [1,1], 1>;
|
|
|
|
defm : X86WriteRes<WriteBitTestSetRegLd, [SLM_IEC_RSV01, SLM_MEC_RSV], 3, [1,1], 1>;
|
2018-04-09 01:53:18 +08:00
|
|
|
|
2014-04-23 16:57:09 +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.
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WriteLEA, [SLM_IEC_RSV1]>;
|
2014-04-23 16:57:09 +08:00
|
|
|
|
2018-03-27 02:19:28 +08:00
|
|
|
// Bit counts.
|
2018-07-08 17:50:25 +08:00
|
|
|
defm : SLMWriteResPair<WriteBSF, [SLM_IEC_RSV01], 10, [20], 10>;
|
|
|
|
defm : SLMWriteResPair<WriteBSR, [SLM_IEC_RSV01], 10, [20], 10>;
|
|
|
|
defm : SLMWriteResPair<WriteLZCNT, [SLM_IEC_RSV0], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteTZCNT, [SLM_IEC_RSV0], 3>;
|
|
|
|
defm : SLMWriteResPair<WritePOPCNT, [SLM_IEC_RSV0], 3>;
|
2018-03-27 02:19:28 +08:00
|
|
|
|
2018-09-14 21:09:56 +08:00
|
|
|
// BMI1 BEXTR/BLS, BMI2 BZHI
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteBEXTR>;
|
2018-09-14 21:09:56 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteBLS>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteBZHI>;
|
2018-03-30 04:41:39 +08:00
|
|
|
|
2018-05-08 21:51:45 +08:00
|
|
|
defm : SLMWriteResPair<WriteDiv8, [SLM_IEC_RSV01, SLMDivider], 25, [1,25], 1, 4>;
|
|
|
|
defm : SLMWriteResPair<WriteDiv16, [SLM_IEC_RSV01, SLMDivider], 25, [1,25], 1, 4>;
|
|
|
|
defm : SLMWriteResPair<WriteDiv32, [SLM_IEC_RSV01, SLMDivider], 25, [1,25], 1, 4>;
|
|
|
|
defm : SLMWriteResPair<WriteDiv64, [SLM_IEC_RSV01, SLMDivider], 25, [1,25], 1, 4>;
|
|
|
|
defm : SLMWriteResPair<WriteIDiv8, [SLM_IEC_RSV01, SLMDivider], 25, [1,25], 1, 4>;
|
|
|
|
defm : SLMWriteResPair<WriteIDiv16, [SLM_IEC_RSV01, SLMDivider], 25, [1,25], 1, 4>;
|
|
|
|
defm : SLMWriteResPair<WriteIDiv32, [SLM_IEC_RSV01, SLMDivider], 25, [1,25], 1, 4>;
|
|
|
|
defm : SLMWriteResPair<WriteIDiv64, [SLM_IEC_RSV01, SLMDivider], 25, [1,25], 1, 4>;
|
2013-09-14 03:23:28 +08:00
|
|
|
|
2014-04-23 16:57:09 +08:00
|
|
|
// Scalar and vector floating point.
|
2018-05-31 19:41:27 +08:00
|
|
|
defm : X86WriteRes<WriteFLD0, [SLM_FPC_RSV01], 1, [1], 1>;
|
|
|
|
defm : X86WriteRes<WriteFLD1, [SLM_FPC_RSV01], 1, [1], 1>;
|
[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, [SLM_FPC_RSV01], 1, [2], 2>;
|
2018-05-08 20:17:55 +08:00
|
|
|
def : WriteRes<WriteFLoad, [SLM_MEC_RSV]> { let Latency = 3; }
|
2018-05-11 22:30:54 +08:00
|
|
|
def : WriteRes<WriteFLoadX, [SLM_MEC_RSV]> { let Latency = 3; }
|
|
|
|
def : WriteRes<WriteFLoadY, [SLM_MEC_RSV]> { let Latency = 3; }
|
2018-05-08 20:17:55 +08:00
|
|
|
def : WriteRes<WriteFMaskedLoad, [SLM_MEC_RSV]> { let Latency = 3; }
|
|
|
|
def : WriteRes<WriteFMaskedLoadY, [SLM_MEC_RSV]> { let Latency = 3; }
|
2018-05-11 23:16:15 +08:00
|
|
|
def : WriteRes<WriteFStore, [SLM_MEC_RSV]>;
|
|
|
|
def : WriteRes<WriteFStoreX, [SLM_MEC_RSV]>;
|
|
|
|
def : WriteRes<WriteFStoreY, [SLM_MEC_RSV]>;
|
2018-05-15 02:37:19 +08:00
|
|
|
def : WriteRes<WriteFStoreNT, [SLM_MEC_RSV]>;
|
|
|
|
def : WriteRes<WriteFStoreNTX, [SLM_MEC_RSV]>;
|
|
|
|
def : WriteRes<WriteFStoreNTY, [SLM_MEC_RSV]>;
|
2018-05-11 23:16:15 +08:00
|
|
|
def : WriteRes<WriteFMaskedStore, [SLM_MEC_RSV]>;
|
|
|
|
def : WriteRes<WriteFMaskedStoreY, [SLM_MEC_RSV]>;
|
2018-05-08 20:17:55 +08:00
|
|
|
def : WriteRes<WriteFMove, [SLM_FPC_RSV01]>;
|
2018-05-11 22:30:54 +08:00
|
|
|
def : WriteRes<WriteFMoveX, [SLM_FPC_RSV01]>;
|
|
|
|
def : WriteRes<WriteFMoveY, [SLM_FPC_RSV01]>;
|
2018-05-08 20:17:55 +08:00
|
|
|
defm : X86WriteRes<WriteEMMS, [SLM_FPC_RSV01], 10, [10], 9>;
|
2018-03-25 09:28:43 +08:00
|
|
|
|
2018-05-08 04:52:53 +08:00
|
|
|
defm : SLMWriteResPair<WriteFAdd, [SLM_FPC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFAddX, [SLM_FPC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFAddY, [SLM_FPC_RSV1], 3>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFAddZ>;
|
2018-05-08 04:52:53 +08:00
|
|
|
defm : SLMWriteResPair<WriteFAdd64, [SLM_FPC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFAdd64X, [SLM_FPC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFAdd64Y, [SLM_FPC_RSV1], 3>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFAdd64Z>;
|
2018-05-08 04:52:53 +08:00
|
|
|
defm : SLMWriteResPair<WriteFCmp, [SLM_FPC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFCmpX, [SLM_FPC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFCmpY, [SLM_FPC_RSV1], 3>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFCmpZ>;
|
2018-05-08 04:52:53 +08:00
|
|
|
defm : SLMWriteResPair<WriteFCmp64, [SLM_FPC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFCmp64X, [SLM_FPC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFCmp64Y, [SLM_FPC_RSV1], 3>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFCmp64Z>;
|
2018-05-08 04:52:53 +08:00
|
|
|
defm : SLMWriteResPair<WriteFCom, [SLM_FPC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFMul, [SLM_FPC_RSV0, SLMFPMultiplier], 5, [1,2]>;
|
|
|
|
defm : SLMWriteResPair<WriteFMulX, [SLM_FPC_RSV0, SLMFPMultiplier], 5, [1,2]>;
|
|
|
|
defm : SLMWriteResPair<WriteFMulY, [SLM_FPC_RSV0, SLMFPMultiplier], 5, [1,2]>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFMulZ>;
|
2018-05-08 04:52:53 +08:00
|
|
|
defm : SLMWriteResPair<WriteFMul64, [SLM_FPC_RSV0, SLMFPMultiplier], 5, [1,2]>;
|
|
|
|
defm : SLMWriteResPair<WriteFMul64X, [SLM_FPC_RSV0, SLMFPMultiplier], 5, [1,2]>;
|
|
|
|
defm : SLMWriteResPair<WriteFMul64Y, [SLM_FPC_RSV0, SLMFPMultiplier], 5, [1,2]>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFMul64Z>;
|
2018-05-08 00:15:46 +08:00
|
|
|
defm : SLMWriteResPair<WriteFDiv, [SLM_FPC_RSV0, SLMFPDivider], 19, [1,17]>;
|
|
|
|
defm : SLMWriteResPair<WriteFDivX, [SLM_FPC_RSV0, SLMFPDivider], 39, [1,39]>;
|
|
|
|
defm : SLMWriteResPair<WriteFDivY, [SLM_FPC_RSV0, SLMFPDivider], 39, [1,39]>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFDivZ>;
|
2018-05-08 00:15:46 +08:00
|
|
|
defm : SLMWriteResPair<WriteFDiv64, [SLM_FPC_RSV0, SLMFPDivider], 34, [1,32]>;
|
|
|
|
defm : SLMWriteResPair<WriteFDiv64X, [SLM_FPC_RSV0, SLMFPDivider], 69, [1,69]>;
|
|
|
|
defm : SLMWriteResPair<WriteFDiv64Y, [SLM_FPC_RSV0, SLMFPDivider], 69, [1,69]>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFDiv64Z>;
|
2018-05-07 19:50:44 +08:00
|
|
|
defm : SLMWriteResPair<WriteFRcp, [SLM_FPC_RSV0], 5>;
|
|
|
|
defm : SLMWriteResPair<WriteFRcpX, [SLM_FPC_RSV0], 5>;
|
|
|
|
defm : SLMWriteResPair<WriteFRcpY, [SLM_FPC_RSV0], 5>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFRcpZ>;
|
2018-05-07 19:50:44 +08:00
|
|
|
defm : SLMWriteResPair<WriteFRsqrt, [SLM_FPC_RSV0], 5>;
|
|
|
|
defm : SLMWriteResPair<WriteFRsqrtX, [SLM_FPC_RSV0], 5>;
|
|
|
|
defm : SLMWriteResPair<WriteFRsqrtY, [SLM_FPC_RSV0], 5>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFRsqrtZ>;
|
2018-05-07 19:50:44 +08:00
|
|
|
defm : SLMWriteResPair<WriteFSqrt, [SLM_FPC_RSV0,SLMFPDivider], 20, [1,20], 1, 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFSqrtX, [SLM_FPC_RSV0,SLMFPDivider], 41, [1,40], 1, 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFSqrtY, [SLM_FPC_RSV0,SLMFPDivider], 41, [1,40], 1, 3>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFSqrtZ>;
|
2018-05-07 19:50:44 +08:00
|
|
|
defm : SLMWriteResPair<WriteFSqrt64, [SLM_FPC_RSV0,SLMFPDivider], 35, [1,35], 1, 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFSqrt64X, [SLM_FPC_RSV0,SLMFPDivider], 71, [1,70], 1, 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFSqrt64Y, [SLM_FPC_RSV0,SLMFPDivider], 71, [1,70], 1, 3>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFSqrt64Z>;
|
2018-05-07 19:50:44 +08:00
|
|
|
defm : SLMWriteResPair<WriteFSqrt80, [SLM_FPC_RSV0,SLMFPDivider], 40, [1,40]>;
|
2018-05-04 06:31:19 +08:00
|
|
|
defm : SLMWriteResPair<WriteDPPD, [SLM_FPC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteDPPS, [SLM_FPC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteDPPSY, [SLM_FPC_RSV1], 3>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteDPPSZ>;
|
2018-04-21 05:16:05 +08:00
|
|
|
defm : SLMWriteResPair<WriteFSign, [SLM_FPC_RSV01], 1>;
|
2018-05-04 20:59:24 +08:00
|
|
|
defm : SLMWriteResPair<WriteFRnd, [SLM_FPC_RSV1], 3>;
|
|
|
|
defm : SLMWriteResPair<WriteFRndY, [SLM_FPC_RSV1], 3>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFRndZ>;
|
2018-04-21 05:16:05 +08:00
|
|
|
defm : SLMWriteResPair<WriteFLogic, [SLM_FPC_RSV01], 1>;
|
2018-04-27 23:50:33 +08:00
|
|
|
defm : SLMWriteResPair<WriteFLogicY, [SLM_FPC_RSV01], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFLogicZ>;
|
2018-05-08 18:28:03 +08:00
|
|
|
defm : SLMWriteResPair<WriteFTest, [SLM_FPC_RSV01], 1>;
|
|
|
|
defm : SLMWriteResPair<WriteFTestY, [SLM_FPC_RSV01], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFTestZ>;
|
2018-05-01 22:25:01 +08:00
|
|
|
defm : SLMWriteResPair<WriteFShuffle, [SLM_FPC_RSV0], 1>;
|
|
|
|
defm : SLMWriteResPair<WriteFShuffleY, [SLM_FPC_RSV0], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFShuffleZ>;
|
2018-04-11 21:49:19 +08:00
|
|
|
defm : SLMWriteResPair<WriteFVarShuffle, [SLM_FPC_RSV0], 1>;
|
2018-04-28 02:19:48 +08:00
|
|
|
defm : SLMWriteResPair<WriteFVarShuffleY,[SLM_FPC_RSV0], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFVarShuffleZ>;
|
2018-03-25 09:28:43 +08:00
|
|
|
defm : SLMWriteResPair<WriteFBlend, [SLM_FPC_RSV0], 1>;
|
2013-09-14 03:23:28 +08:00
|
|
|
|
2018-05-16 01:36:49 +08:00
|
|
|
// Conversion between integer and float.
|
2018-05-16 18:53:45 +08:00
|
|
|
defm : SLMWriteResPair<WriteCvtSS2I, [SLM_FPC_RSV01], 4>;
|
|
|
|
defm : SLMWriteResPair<WriteCvtPS2I, [SLM_FPC_RSV01], 4>;
|
|
|
|
defm : SLMWriteResPair<WriteCvtPS2IY, [SLM_FPC_RSV01], 4>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteCvtPS2IZ>;
|
2018-05-16 18:53:45 +08:00
|
|
|
defm : SLMWriteResPair<WriteCvtSD2I, [SLM_FPC_RSV01], 4>;
|
|
|
|
defm : SLMWriteResPair<WriteCvtPD2I, [SLM_FPC_RSV01], 4>;
|
|
|
|
defm : SLMWriteResPair<WriteCvtPD2IY, [SLM_FPC_RSV01], 4>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteCvtPD2IZ>;
|
2018-05-16 18:53:45 +08:00
|
|
|
|
|
|
|
defm : SLMWriteResPair<WriteCvtI2SS, [SLM_FPC_RSV01], 4>;
|
|
|
|
defm : SLMWriteResPair<WriteCvtI2PS, [SLM_FPC_RSV01], 4>;
|
|
|
|
defm : SLMWriteResPair<WriteCvtI2PSY, [SLM_FPC_RSV01], 4>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteCvtI2PSZ>;
|
2018-05-16 18:53:45 +08:00
|
|
|
defm : SLMWriteResPair<WriteCvtI2SD, [SLM_FPC_RSV01], 4>;
|
|
|
|
defm : SLMWriteResPair<WriteCvtI2PD, [SLM_FPC_RSV01], 4>;
|
|
|
|
defm : SLMWriteResPair<WriteCvtI2PDY, [SLM_FPC_RSV01], 4>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteCvtI2PDZ>;
|
2018-05-16 01:36:49 +08:00
|
|
|
|
|
|
|
defm : SLMWriteResPair<WriteCvtSS2SD, [SLM_FPC_RSV01], 4>;
|
|
|
|
defm : SLMWriteResPair<WriteCvtPS2PD, [SLM_FPC_RSV01], 4>;
|
|
|
|
defm : SLMWriteResPair<WriteCvtPS2PDY, [SLM_FPC_RSV01], 4>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteCvtPS2PDZ>;
|
2018-05-16 01:36:49 +08:00
|
|
|
defm : SLMWriteResPair<WriteCvtSD2SS, [SLM_FPC_RSV01], 4>;
|
|
|
|
defm : SLMWriteResPair<WriteCvtPD2PS, [SLM_FPC_RSV01], 4>;
|
|
|
|
defm : SLMWriteResPair<WriteCvtPD2PSY, [SLM_FPC_RSV01], 4>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteCvtPD2PSZ>;
|
2018-05-16 01:36:49 +08:00
|
|
|
|
2014-04-23 16:57:09 +08:00
|
|
|
// Vector integer operations.
|
2018-05-08 20:17:55 +08:00
|
|
|
def : WriteRes<WriteVecLoad, [SLM_MEC_RSV]> { let Latency = 3; }
|
2018-05-11 22:30:54 +08:00
|
|
|
def : WriteRes<WriteVecLoadX, [SLM_MEC_RSV]> { let Latency = 3; }
|
|
|
|
def : WriteRes<WriteVecLoadY, [SLM_MEC_RSV]> { let Latency = 3; }
|
2018-05-15 02:37:19 +08:00
|
|
|
def : WriteRes<WriteVecLoadNT, [SLM_MEC_RSV]> { let Latency = 3; }
|
|
|
|
def : WriteRes<WriteVecLoadNTY, [SLM_MEC_RSV]> { let Latency = 3; }
|
2018-05-08 20:17:55 +08:00
|
|
|
def : WriteRes<WriteVecMaskedLoad, [SLM_MEC_RSV]> { let Latency = 3; }
|
|
|
|
def : WriteRes<WriteVecMaskedLoadY, [SLM_MEC_RSV]> { let Latency = 3; }
|
2018-05-11 23:16:15 +08:00
|
|
|
def : WriteRes<WriteVecStore, [SLM_MEC_RSV]>;
|
|
|
|
def : WriteRes<WriteVecStoreX, [SLM_MEC_RSV]>;
|
|
|
|
def : WriteRes<WriteVecStoreY, [SLM_MEC_RSV]>;
|
2018-05-15 02:37:19 +08:00
|
|
|
def : WriteRes<WriteVecStoreNT, [SLM_MEC_RSV]>;
|
|
|
|
def : WriteRes<WriteVecStoreNTY, [SLM_MEC_RSV]>;
|
2018-05-11 23:16:15 +08:00
|
|
|
def : WriteRes<WriteVecMaskedStore, [SLM_MEC_RSV]>;
|
|
|
|
def : WriteRes<WriteVecMaskedStoreY, [SLM_MEC_RSV]>;
|
2018-05-08 20:17:55 +08:00
|
|
|
def : WriteRes<WriteVecMove, [SLM_FPC_RSV01]>;
|
2018-05-11 22:30:54 +08:00
|
|
|
def : WriteRes<WriteVecMoveX, [SLM_FPC_RSV01]>;
|
|
|
|
def : WriteRes<WriteVecMoveY, [SLM_FPC_RSV01]>;
|
2018-05-19 01:58:36 +08:00
|
|
|
def : WriteRes<WriteVecMoveToGpr, [SLM_IEC_RSV01]>;
|
|
|
|
def : WriteRes<WriteVecMoveFromGpr, [SLM_IEC_RSV01]>;
|
2018-03-25 09:28:43 +08:00
|
|
|
|
2018-05-04 01:56:43 +08:00
|
|
|
defm : SLMWriteResPair<WriteVecShift, [SLM_FPC_RSV0], 1>;
|
|
|
|
defm : SLMWriteResPair<WriteVecShiftX, [SLM_FPC_RSV0], 1>;
|
|
|
|
defm : SLMWriteResPair<WriteVecShiftY, [SLM_FPC_RSV0], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteVecShiftZ>;
|
2018-05-05 01:47:46 +08:00
|
|
|
defm : SLMWriteResPair<WriteVecShiftImm, [SLM_FPC_RSV0], 1>;
|
2018-05-04 01:56:43 +08:00
|
|
|
defm : SLMWriteResPair<WriteVecShiftImmX,[SLM_FPC_RSV0], 1>;
|
|
|
|
defm : SLMWriteResPair<WriteVecShiftImmY,[SLM_FPC_RSV0], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteVecShiftImmZ>;
|
2018-03-25 09:28:43 +08:00
|
|
|
defm : SLMWriteResPair<WriteVecLogic, [SLM_FPC_RSV01], 1>;
|
2018-05-11 01:06:09 +08:00
|
|
|
defm : SLMWriteResPair<WriteVecLogicX,[SLM_FPC_RSV01], 1>;
|
2018-05-01 20:39:17 +08:00
|
|
|
defm : SLMWriteResPair<WriteVecLogicY,[SLM_FPC_RSV01], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteVecLogicZ>;
|
2018-05-08 18:28:03 +08:00
|
|
|
defm : SLMWriteResPair<WriteVecTest, [SLM_FPC_RSV01], 1>;
|
|
|
|
defm : SLMWriteResPair<WriteVecTestY, [SLM_FPC_RSV01], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteVecTestZ>;
|
2018-03-25 09:28:43 +08:00
|
|
|
defm : SLMWriteResPair<WriteVecALU, [SLM_FPC_RSV01], 1>;
|
2018-05-11 01:06:09 +08:00
|
|
|
defm : SLMWriteResPair<WriteVecALUX, [SLM_FPC_RSV01], 1>;
|
2018-05-03 21:27:10 +08:00
|
|
|
defm : SLMWriteResPair<WriteVecALUY, [SLM_FPC_RSV01], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteVecALUZ>;
|
2018-03-25 09:28:43 +08:00
|
|
|
defm : SLMWriteResPair<WriteVecIMul, [SLM_FPC_RSV0], 4>;
|
2018-05-05 01:47:46 +08:00
|
|
|
defm : SLMWriteResPair<WriteVecIMulX, [SLM_FPC_RSV0], 4>;
|
2018-05-03 18:31:20 +08:00
|
|
|
defm : SLMWriteResPair<WriteVecIMulY, [SLM_FPC_RSV0], 4>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteVecIMulZ>;
|
2018-04-10 01:07:40 +08:00
|
|
|
// FIXME: The below is closer to correct, but caused some perf regressions.
|
|
|
|
//defm : SLMWriteResPair<WritePMULLD, [SLM_FPC_RSV0], 11, [11], 7>;
|
|
|
|
defm : SLMWriteResPair<WritePMULLD, [SLM_FPC_RSV0], 4>;
|
2018-05-03 18:31:20 +08:00
|
|
|
defm : SLMWriteResPair<WritePMULLDY, [SLM_FPC_RSV0], 4>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WritePMULLDZ>;
|
2018-03-25 09:28:43 +08:00
|
|
|
defm : SLMWriteResPair<WriteShuffle, [SLM_FPC_RSV0], 1>;
|
2018-05-03 02:48:23 +08:00
|
|
|
defm : SLMWriteResPair<WriteShuffleY, [SLM_FPC_RSV0], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteShuffleZ>;
|
2018-05-11 01:06:09 +08:00
|
|
|
defm : SLMWriteResPair<WriteShuffleX, [SLM_FPC_RSV0], 1>;
|
2018-04-11 21:49:19 +08:00
|
|
|
defm : SLMWriteResPair<WriteVarShuffle, [SLM_FPC_RSV0], 1>;
|
2018-05-11 01:06:09 +08:00
|
|
|
defm : SLMWriteResPair<WriteVarShuffleX, [SLM_FPC_RSV0], 1>;
|
2018-05-03 02:48:23 +08:00
|
|
|
defm : SLMWriteResPair<WriteVarShuffleY, [SLM_FPC_RSV0], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteVarShuffleZ>;
|
2018-03-25 09:28:43 +08:00
|
|
|
defm : SLMWriteResPair<WriteBlend, [SLM_FPC_RSV0], 1>;
|
2018-05-03 02:48:23 +08:00
|
|
|
defm : SLMWriteResPair<WriteBlendY, [SLM_FPC_RSV0], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteBlendZ>;
|
2018-03-25 09:28:43 +08:00
|
|
|
defm : SLMWriteResPair<WriteMPSAD, [SLM_FPC_RSV0], 7>;
|
2018-05-03 18:31:20 +08:00
|
|
|
defm : SLMWriteResPair<WriteMPSADY, [SLM_FPC_RSV0], 7>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteMPSADZ>;
|
2018-05-03 18:31:20 +08:00
|
|
|
defm : SLMWriteResPair<WritePSADBW, [SLM_FPC_RSV0], 4>;
|
2018-05-11 01:06:09 +08:00
|
|
|
defm : SLMWriteResPair<WritePSADBWX, [SLM_FPC_RSV0], 4>;
|
2018-05-03 18:31:20 +08:00
|
|
|
defm : SLMWriteResPair<WritePSADBWY, [SLM_FPC_RSV0], 4>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WritePSADBWZ>;
|
2018-04-25 02:49:25 +08:00
|
|
|
defm : SLMWriteResPair<WritePHMINPOS, [SLM_FPC_RSV0], 4>;
|
2014-04-23 16:57:09 +08:00
|
|
|
|
2018-04-24 21:21:41 +08:00
|
|
|
// Vector insert/extract operations.
|
|
|
|
defm : SLMWriteResPair<WriteVecInsert, [SLM_FPC_RSV0], 1>;
|
|
|
|
|
|
|
|
def : WriteRes<WriteVecExtract, [SLM_FPC_RSV0]>;
|
|
|
|
def : WriteRes<WriteVecExtractSt, [SLM_FPC_RSV0, SLM_MEC_RSV]> {
|
|
|
|
let Latency = 4;
|
|
|
|
let NumMicroOps = 2;
|
|
|
|
let ResourceCycles = [1, 2];
|
|
|
|
}
|
|
|
|
|
2017-06-09 00:44:13 +08:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Horizontal add/sub instructions.
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2018-03-25 09:28:43 +08:00
|
|
|
defm : SLMWriteResPair<WriteFHAdd, [SLM_FPC_RSV01], 3, [2]>;
|
2018-04-28 00:11:57 +08:00
|
|
|
defm : SLMWriteResPair<WriteFHAddY, [SLM_FPC_RSV01], 3, [2]>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFHAddZ>;
|
2018-03-25 09:28:43 +08:00
|
|
|
defm : SLMWriteResPair<WritePHAdd, [SLM_FPC_RSV01], 1>;
|
2018-05-11 01:06:09 +08:00
|
|
|
defm : SLMWriteResPair<WritePHAddX, [SLM_FPC_RSV01], 1>;
|
2018-05-03 21:27:10 +08:00
|
|
|
defm : SLMWriteResPair<WritePHAddY, [SLM_FPC_RSV01], 1>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WritePHAddZ>;
|
2017-06-09 00:44:13 +08:00
|
|
|
|
2014-04-23 16:57:09 +08:00
|
|
|
// String instructions.
|
|
|
|
// Packed Compare Implicit Length Strings, Return Mask
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WritePCmpIStrM, [SLM_FPC_RSV0]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 13;
|
|
|
|
let ResourceCycles = [13];
|
|
|
|
}
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WritePCmpIStrMLd, [SLM_FPC_RSV0, SLM_MEC_RSV]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 13;
|
|
|
|
let ResourceCycles = [13, 1];
|
|
|
|
}
|
2013-09-14 03:23:28 +08:00
|
|
|
|
2014-04-23 16:57:09 +08:00
|
|
|
// Packed Compare Explicit Length Strings, Return Mask
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WritePCmpEStrM, [SLM_FPC_RSV0]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 17;
|
|
|
|
let ResourceCycles = [17];
|
|
|
|
}
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WritePCmpEStrMLd, [SLM_FPC_RSV0, SLM_MEC_RSV]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 17;
|
|
|
|
let ResourceCycles = [17, 1];
|
|
|
|
}
|
2013-09-14 03:23:28 +08:00
|
|
|
|
2014-04-23 16:57:09 +08:00
|
|
|
// Packed Compare Implicit Length Strings, Return Index
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WritePCmpIStrI, [SLM_FPC_RSV0]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 17;
|
|
|
|
let ResourceCycles = [17];
|
|
|
|
}
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WritePCmpIStrILd, [SLM_FPC_RSV0, SLM_MEC_RSV]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 17;
|
|
|
|
let ResourceCycles = [17, 1];
|
|
|
|
}
|
2013-09-14 03:23:28 +08:00
|
|
|
|
2014-04-23 16:57:09 +08:00
|
|
|
// Packed Compare Explicit Length Strings, Return Index
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WritePCmpEStrI, [SLM_FPC_RSV0]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 21;
|
|
|
|
let ResourceCycles = [21];
|
|
|
|
}
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WritePCmpEStrILd, [SLM_FPC_RSV0, SLM_MEC_RSV]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 21;
|
|
|
|
let ResourceCycles = [21, 1];
|
|
|
|
}
|
2013-09-14 03:23:28 +08:00
|
|
|
|
2018-03-28 04:38:54 +08:00
|
|
|
// MOVMSK Instructions.
|
2018-05-04 22:54:33 +08:00
|
|
|
def : WriteRes<WriteFMOVMSK, [SLM_FPC_RSV1]> { let Latency = 4; }
|
|
|
|
def : WriteRes<WriteVecMOVMSK, [SLM_FPC_RSV1]> { let Latency = 4; }
|
|
|
|
def : WriteRes<WriteVecMOVMSKY, [SLM_FPC_RSV1]> { let Latency = 4; }
|
|
|
|
def : WriteRes<WriteMMXMOVMSK, [SLM_FPC_RSV1]> { let Latency = 4; }
|
2018-03-28 04:38:54 +08:00
|
|
|
|
2014-04-23 16:57:09 +08:00
|
|
|
// AES Instructions.
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WriteAESDecEnc, [SLM_FPC_RSV0]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 8;
|
|
|
|
let ResourceCycles = [5];
|
|
|
|
}
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WriteAESDecEncLd, [SLM_FPC_RSV0, SLM_MEC_RSV]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 8;
|
|
|
|
let ResourceCycles = [5, 1];
|
|
|
|
}
|
2013-09-14 03:23:28 +08:00
|
|
|
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WriteAESIMC, [SLM_FPC_RSV0]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 8;
|
|
|
|
let ResourceCycles = [5];
|
|
|
|
}
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WriteAESIMCLd, [SLM_FPC_RSV0, SLM_MEC_RSV]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 8;
|
|
|
|
let ResourceCycles = [5, 1];
|
|
|
|
}
|
2013-09-14 03:23:28 +08:00
|
|
|
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WriteAESKeyGen, [SLM_FPC_RSV0]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 8;
|
|
|
|
let ResourceCycles = [5];
|
|
|
|
}
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WriteAESKeyGenLd, [SLM_FPC_RSV0, SLM_MEC_RSV]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 8;
|
|
|
|
let ResourceCycles = [5, 1];
|
|
|
|
}
|
2013-09-14 03:23:28 +08:00
|
|
|
|
2014-04-23 16:57:09 +08:00
|
|
|
// Carry-less multiplication instructions.
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WriteCLMul, [SLM_FPC_RSV0]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 10;
|
|
|
|
let ResourceCycles = [10];
|
|
|
|
}
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WriteCLMulLd, [SLM_FPC_RSV0, SLM_MEC_RSV]> {
|
2014-04-23 16:57:09 +08:00
|
|
|
let Latency = 10;
|
|
|
|
let ResourceCycles = [10, 1];
|
|
|
|
}
|
2013-09-14 03:23:28 +08:00
|
|
|
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WriteSystem, [SLM_FPC_RSV0]> { let Latency = 100; }
|
|
|
|
def : WriteRes<WriteMicrocoded, [SLM_FPC_RSV0]> { let Latency = 100; }
|
|
|
|
def : WriteRes<WriteFence, [SLM_MEC_RSV]>;
|
2014-04-23 16:57:09 +08:00
|
|
|
def : WriteRes<WriteNop, []>;
|
|
|
|
|
2017-11-27 18:41:32 +08:00
|
|
|
// AVX/FMA is not supported on that architecture, but we should define the basic
|
2014-04-23 16:57:09 +08:00
|
|
|
// scheduling resources anyway.
|
2018-03-25 09:28:43 +08:00
|
|
|
def : WriteRes<WriteIMulH, [SLM_FPC_RSV0]>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFBlendY>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFBlendZ>;
|
2018-03-25 09:28:43 +08:00
|
|
|
defm : SLMWriteResPair<WriteVarBlend, [SLM_FPC_RSV0], 1>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteVarBlendY>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteVarBlendZ>;
|
2018-03-25 09:28:43 +08:00
|
|
|
defm : SLMWriteResPair<WriteFVarBlend, [SLM_FPC_RSV0], 1>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFVarBlendY>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFVarBlendZ>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFShuffle256>;
|
|
|
|
defm : X86WriteResPairUnsupported<WriteFVarShuffle256>;
|
|
|
|
defm : X86WriteResPairUnsupported<WriteShuffle256>;
|
|
|
|
defm : X86WriteResPairUnsupported<WriteVarShuffle256>;
|
2018-05-04 01:56:43 +08:00
|
|
|
defm : SLMWriteResPair<WriteVarVecShift, [SLM_FPC_RSV0], 1>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteVarVecShiftY>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteVarVecShiftZ>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFMA>;
|
|
|
|
defm : X86WriteResPairUnsupported<WriteFMAX>;
|
|
|
|
defm : X86WriteResPairUnsupported<WriteFMAY>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteFMAZ>;
|
2018-06-11 15:00:08 +08:00
|
|
|
|
|
|
|
defm : X86WriteResPairUnsupported<WriteCvtPH2PS>;
|
|
|
|
defm : X86WriteResPairUnsupported<WriteCvtPH2PSY>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResPairUnsupported<WriteCvtPH2PSZ>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResUnsupported<WriteCvtPS2PH>;
|
|
|
|
defm : X86WriteResUnsupported<WriteCvtPS2PHY>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResUnsupported<WriteCvtPS2PHZ>;
|
2018-06-11 15:00:08 +08:00
|
|
|
defm : X86WriteResUnsupported<WriteCvtPS2PHSt>;
|
|
|
|
defm : X86WriteResUnsupported<WriteCvtPS2PHYSt>;
|
2018-06-11 22:37:53 +08:00
|
|
|
defm : X86WriteResUnsupported<WriteCvtPS2PHZSt>;
|
2018-05-15 22:12:32 +08:00
|
|
|
|
2014-04-23 16:57:09 +08:00
|
|
|
} // SchedModel
|