2012-08-29 00:12:39 +08:00
|
|
|
//===-- PPCScheduleE500mc.td - e5500 Scheduling Defs -------*- tablegen -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2016-04-25 09:40:54 +08:00
|
|
|
// This file defines the itinerary class data for the Freescale e5500 64-bit
|
2012-08-29 00:12:39 +08:00
|
|
|
// Power processor.
|
2016-04-25 09:40:54 +08:00
|
|
|
//
|
2012-08-29 00:12:39 +08:00
|
|
|
// All information is derived from the "e5500 Core Reference Manual",
|
|
|
|
// Freescale Document Number e5500RM, Rev. 1, 03/2012.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Relevant functional units in the Freescale e5500 core
|
|
|
|
// (These are the same as for the e500mc)
|
|
|
|
//
|
|
|
|
// * Decode & Dispatch
|
|
|
|
// Can dispatch up to 2 instructions per clock cycle to either the GPR Issue
|
|
|
|
// queues (GIQx), FP Issue Queue (FIQ), or Branch issue queue (BIQ).
|
2013-11-28 14:05:59 +08:00
|
|
|
def E5500_DIS0 : FuncUnit;
|
|
|
|
def E5500_DIS1 : FuncUnit;
|
2012-08-29 00:12:39 +08:00
|
|
|
|
|
|
|
// * Execute
|
|
|
|
// 6 pipelined execution units: SFX0, SFX1, BU, FPU, LSU, CFX.
|
2016-04-25 09:40:54 +08:00
|
|
|
// The CFX has a bypass path, allowing non-divide instructions to execute
|
2012-08-29 00:12:39 +08:00
|
|
|
// while a divide instruction is being executed.
|
2013-11-28 14:05:59 +08:00
|
|
|
def E5500_SFX0 : FuncUnit; // Simple unit 0
|
|
|
|
def E5500_SFX1 : FuncUnit; // Simple unit 1
|
|
|
|
def E5500_BU : FuncUnit; // Branch unit
|
2016-04-25 09:40:54 +08:00
|
|
|
def E5500_CFX_DivBypass
|
2013-11-28 14:05:59 +08:00
|
|
|
: FuncUnit; // CFX divide bypass path
|
|
|
|
def E5500_CFX_0 : FuncUnit; // CFX pipeline stage 0
|
2012-08-29 00:12:39 +08:00
|
|
|
|
2016-04-25 09:40:54 +08:00
|
|
|
def E5500_CFX_1 : FuncUnit; // CFX pipeline stage 1
|
2012-08-29 00:12:39 +08:00
|
|
|
|
2013-11-28 14:05:59 +08:00
|
|
|
def E5500_LSU_0 : FuncUnit; // LSU pipeline
|
|
|
|
def E5500_FPU_0 : FuncUnit; // FPU pipeline
|
2012-08-29 00:12:39 +08:00
|
|
|
|
2013-11-28 14:05:59 +08:00
|
|
|
def E5500_GPR_Bypass : Bypass;
|
|
|
|
def E5500_FPR_Bypass : Bypass;
|
|
|
|
def E5500_CR_Bypass : Bypass;
|
2012-08-29 00:12:39 +08:00
|
|
|
|
|
|
|
def PPCE5500Itineraries : ProcessorItineraries<
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_DIS0, E5500_DIS1, E5500_SFX0, E5500_SFX1, E5500_BU,
|
|
|
|
E5500_CFX_DivBypass, E5500_CFX_0, E5500_CFX_1,
|
|
|
|
E5500_LSU_0, E5500_FPU_0],
|
|
|
|
[E5500_CR_Bypass, E5500_GPR_Bypass, E5500_FPR_Bypass], [
|
|
|
|
InstrItinData<IIC_IntSimple, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[5, 2, 2], // Latency = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_IntGeneral, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[5, 2, 2], // Latency = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
2015-02-02 01:52:16 +08:00
|
|
|
InstrItinData<IIC_IntISEL, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1]>],
|
|
|
|
[5, 2, 2, 2], // Latency = 1
|
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass,
|
|
|
|
E5500_CR_Bypass]>,
|
2013-11-28 14:05:59 +08:00
|
|
|
InstrItinData<IIC_IntCompare, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[6, 2, 2], // Latency = 1 or 2
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_CR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_IntDivD, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_CFX_0], 0>,
|
|
|
|
InstrStage<26, [E5500_CFX_DivBypass]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[30, 2, 2], // Latency= 4..26, Repeat rate= 4..26
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_IntDivW, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_CFX_0], 0>,
|
|
|
|
InstrStage<16, [E5500_CFX_DivBypass]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[20, 2, 2], // Latency= 4..16, Repeat rate= 4..16
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_IntMFFS, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_FPU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[11], // Latency = 7, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_FPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_IntMTFSB0, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<7, [E5500_FPU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[11, 2, 2], // Latency = 7, Repeat rate = 7
|
|
|
|
[NoBypass, NoBypass, NoBypass]>,
|
2013-11-28 14:05:59 +08:00
|
|
|
InstrItinData<IIC_IntMulHD, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_CFX_0], 0>,
|
|
|
|
InstrStage<2, [E5500_CFX_1]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[9, 2, 2], // Latency = 4..7, Repeat rate = 2..4
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_IntMulHW, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_CFX_0], 0>,
|
|
|
|
InstrStage<1, [E5500_CFX_1]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[8, 2, 2], // Latency = 4, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_IntMulHWU, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_CFX_0], 0>,
|
|
|
|
InstrStage<1, [E5500_CFX_1]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[8, 2, 2], // Latency = 4, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_IntMulLI, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_CFX_0], 0>,
|
|
|
|
InstrStage<2, [E5500_CFX_1]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[8, 2, 2], // Latency = 4 or 5, Repeat = 2
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_IntRotate, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[5, 2, 2], // Latency = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_IntRotateD, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<2, [E5500_SFX0, E5500_SFX1]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[6, 2, 2], // Latency = 2, Repeat rate = 2
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_IntRotateDI, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[5, 2, 2], // Latency = 1, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_IntShift, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<2, [E5500_SFX0, E5500_SFX1]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[6, 2, 2], // Latency = 2, Repeat rate = 2
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_IntTrapW, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<2, [E5500_SFX0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[6, 2], // Latency = 2, Repeat rate = 2
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_BrB, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_BU]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[5, 2], // Latency = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[NoBypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_BrCR, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_BU]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[5, 2, 2], // Latency = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_CR_Bypass,
|
|
|
|
E5500_CR_Bypass, E5500_CR_Bypass]>,
|
|
|
|
InstrItinData<IIC_BrMCR, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_BU]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[5, 2], // Latency = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_CR_Bypass, E5500_CR_Bypass]>,
|
|
|
|
InstrItinData<IIC_BrMCRX, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_CFX_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[5, 2, 2], // Latency = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_CR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStDCBA, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStDCBF, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStDCBI, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStLoad, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStLoadUpd, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass],
|
2013-11-28 07:26:09 +08:00
|
|
|
2>, // 2 micro-ops
|
2013-12-01 04:41:13 +08:00
|
|
|
InstrItinData<IIC_LdStLoadUpdX,[InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass],
|
|
|
|
2>, // 2 micro-ops
|
2013-11-28 14:05:59 +08:00
|
|
|
InstrItinData<IIC_LdStLD, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStLDARX, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<3, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3, Repeat rate = 3
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStLDU, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass],
|
2013-11-28 07:26:09 +08:00
|
|
|
2>, // 2 micro-ops
|
2013-12-01 04:41:13 +08:00
|
|
|
InstrItinData<IIC_LdStLDUX, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass],
|
|
|
|
2>, // 2 micro-ops
|
2013-11-28 14:05:59 +08:00
|
|
|
InstrItinData<IIC_LdStStore, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[NoBypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStStoreUpd,[InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[NoBypass, E5500_GPR_Bypass],
|
|
|
|
2>, // 2 micro-ops
|
|
|
|
InstrItinData<IIC_LdStICBI, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[NoBypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStSTFD, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStSTFDU, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass],
|
|
|
|
2>, // 2 micro-ops
|
|
|
|
InstrItinData<IIC_LdStLFD, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[8, 2, 2], // Latency = 4, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_FPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass],
|
2013-11-28 07:26:09 +08:00
|
|
|
2>, // 2 micro-ops
|
2013-11-28 14:05:59 +08:00
|
|
|
InstrItinData<IIC_LdStLFDU, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[8, 2, 2], // Latency = 4, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_FPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass],
|
2013-11-28 07:26:09 +08:00
|
|
|
2>, // 2 micro-ops
|
2013-12-01 04:41:13 +08:00
|
|
|
InstrItinData<IIC_LdStLFDUX, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
|
|
|
[8, 2, 2], // Latency = 4, Repeat rate = 1
|
|
|
|
[E5500_FPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass],
|
|
|
|
2>, // 2 micro-ops
|
2013-11-28 14:05:59 +08:00
|
|
|
InstrItinData<IIC_LdStLHA, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStLHAU, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass],
|
|
|
|
2>, // 2 micro-ops
|
2013-12-01 04:41:13 +08:00
|
|
|
InstrItinData<IIC_LdStLHAUX, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass],
|
|
|
|
2>, // 2 micro-ops
|
2013-11-28 14:05:59 +08:00
|
|
|
InstrItinData<IIC_LdStLMW, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<4, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[8, 2], // Latency = r+3, Repeat rate = r+3
|
2013-11-28 14:05:59 +08:00
|
|
|
[NoBypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStLWARX, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<3, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2, 2], // Latency = 3, Repeat rate = 3
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass,
|
|
|
|
E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStSTD, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[NoBypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStSTDCX, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
|
|
|
[NoBypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStSTDU, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
|
|
|
[NoBypass, E5500_GPR_Bypass],
|
|
|
|
2>, // 2 micro-ops
|
2013-12-01 04:41:13 +08:00
|
|
|
InstrItinData<IIC_LdStSTDUX, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
|
|
|
[NoBypass, E5500_GPR_Bypass],
|
|
|
|
2>, // 2 micro-ops
|
2013-11-28 14:05:59 +08:00
|
|
|
InstrItinData<IIC_LdStSTWCX, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[7, 2], // Latency = 3, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[NoBypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_LdStSync, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0]>]>,
|
|
|
|
InstrItinData<IIC_SprMTMSR, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<2, [E5500_CFX_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[6, 2], // Latency = 2, Repeat rate = 4
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_SprTLBSYNC, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_LSU_0], 0>]>,
|
|
|
|
InstrItinData<IIC_SprMFCR, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<5, [E5500_CFX_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[9, 2], // Latency = 5, Repeat rate = 5
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_CR_Bypass]>,
|
2013-12-01 04:41:13 +08:00
|
|
|
InstrItinData<IIC_SprMFCRF, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<5, [E5500_CFX_0]>],
|
|
|
|
[9, 2], // Latency = 5, Repeat rate = 5
|
|
|
|
[E5500_GPR_Bypass, E5500_CR_Bypass]>,
|
2013-11-28 14:05:59 +08:00
|
|
|
InstrItinData<IIC_SprMFMSR, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<4, [E5500_SFX0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[8, 2], // Latency = 4, Repeat rate = 4
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_SprMFSPR, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_CFX_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[5], // Latency = 1, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_SprMFTB, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<4, [E5500_CFX_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[8, 2], // Latency = 4, Repeat rate = 4
|
2013-11-28 14:05:59 +08:00
|
|
|
[NoBypass, E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_SprMTSPR, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_SFX0, E5500_SFX1]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[5], // Latency = 1, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_GPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_FPGeneral, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_FPU_0]>],
|
2016-04-25 09:40:54 +08:00
|
|
|
[11, 2, 2], // Latency = 7, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_FPR_Bypass,
|
|
|
|
E5500_FPR_Bypass, E5500_FPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_FPAddSub, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_FPU_0]>],
|
2016-04-25 09:40:54 +08:00
|
|
|
[11, 2, 2], // Latency = 7, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_FPR_Bypass,
|
|
|
|
E5500_FPR_Bypass, E5500_FPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_FPCompare, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_FPU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[11, 2, 2], // Latency = 7, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_CR_Bypass,
|
|
|
|
E5500_FPR_Bypass, E5500_FPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_FPDivD, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<31, [E5500_FPU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[39, 2, 2], // Latency = 35, Repeat rate = 31
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_FPR_Bypass,
|
|
|
|
E5500_FPR_Bypass, E5500_FPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_FPDivS, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<16, [E5500_FPU_0]>],
|
2016-04-25 09:40:54 +08:00
|
|
|
[24, 2, 2], // Latency = 20, Repeat rate = 16
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_FPR_Bypass,
|
|
|
|
E5500_FPR_Bypass, E5500_FPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_FPFused, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<1, [E5500_FPU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[11, 2, 2, 2], // Latency = 7, Repeat rate = 1
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_FPR_Bypass,
|
|
|
|
E5500_FPR_Bypass, E5500_FPR_Bypass,
|
|
|
|
E5500_FPR_Bypass]>,
|
|
|
|
InstrItinData<IIC_FPRes, [InstrStage<1, [E5500_DIS0, E5500_DIS1], 0>,
|
|
|
|
InstrStage<2, [E5500_FPU_0]>],
|
2013-11-28 07:26:09 +08:00
|
|
|
[12, 2], // Latency = 8, Repeat rate = 2
|
2013-11-28 14:05:59 +08:00
|
|
|
[E5500_FPR_Bypass, E5500_FPR_Bypass]>
|
2012-08-29 00:12:39 +08:00
|
|
|
]>;
|
|
|
|
|
|
|
|
// ===---------------------------------------------------------------------===//
|
|
|
|
// e5500 machine model for scheduling and other instruction cost heuristics.
|
|
|
|
|
|
|
|
def PPCE5500Model : SchedMachineModel {
|
|
|
|
let IssueWidth = 2; // 2 micro-ops are dispatched per cycle.
|
|
|
|
let LoadLatency = 6; // Optimistic load latency assuming bypass.
|
|
|
|
// This is overriden by OperandCycles if the
|
|
|
|
// Itineraries are queried instead.
|
|
|
|
|
2016-03-02 04:03:21 +08:00
|
|
|
let CompleteModel = 0;
|
|
|
|
|
2012-08-29 00:12:39 +08:00
|
|
|
let Itineraries = PPCE5500Itineraries;
|
|
|
|
}
|