1*0b57cec5SDimitry Andric//===-- PPCScheduleE500.td - e500 Scheduling Defs ------*- tablegen -*-===// 2*0b57cec5SDimitry Andric// 3*0b57cec5SDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*0b57cec5SDimitry Andric// See https://llvm.org/LICENSE.txt for license information. 5*0b57cec5SDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*0b57cec5SDimitry Andric// 7*0b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 8*0b57cec5SDimitry Andric// 9*0b57cec5SDimitry Andric// This file defines the itinerary class data for the Freescale e500 32-bit 10*0b57cec5SDimitry Andric// Power processor. 11*0b57cec5SDimitry Andric// 12*0b57cec5SDimitry Andric// All information is derived from the "e500 Core Reference Manual", 13*0b57cec5SDimitry Andric// Freescale Document Number E500MCRM, Rev. 1, 03/2012. 14*0b57cec5SDimitry Andric// 15*0b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 16*0b57cec5SDimitry Andric// Relevant functional units in the Freescale e500 core: 17*0b57cec5SDimitry Andric// 18*0b57cec5SDimitry Andric// * Decode & Dispatch 19*0b57cec5SDimitry Andric// Can dispatch up to 2 instructions per clock cycle to either the GPR Issue 20*0b57cec5SDimitry Andric// queues (GIQx) or Branch issue queue (BIQ). 21*0b57cec5SDimitry Andricdef E500_DIS0 : FuncUnit; // Dispatch stage - insn 1 22*0b57cec5SDimitry Andricdef E500_DIS1 : FuncUnit; // Dispatch stage - insn 2 23*0b57cec5SDimitry Andric 24*0b57cec5SDimitry Andric// * Execute 25*0b57cec5SDimitry Andric// 6 pipelined execution units: SU0, SU1, BU, LSU, MU. 26*0b57cec5SDimitry Andric// Some instructions can only execute in SU0 but not SU1. 27*0b57cec5SDimitry Andricdef E500_SU0 : FuncUnit; // Simple unit 0 28*0b57cec5SDimitry Andricdef E500_SU1 : FuncUnit; // Simple unit 1 29*0b57cec5SDimitry Andricdef E500_BU : FuncUnit; // Branch unit 30*0b57cec5SDimitry Andricdef E500_MU : FuncUnit; // MU pipeline 31*0b57cec5SDimitry Andricdef E500_LSU_0 : FuncUnit; // LSU pipeline 32*0b57cec5SDimitry Andric 33*0b57cec5SDimitry Andricdef E500_GPR_Bypass : Bypass; 34*0b57cec5SDimitry Andricdef E500_CR_Bypass : Bypass; 35*0b57cec5SDimitry Andricdef E500_DivBypass : Bypass; 36*0b57cec5SDimitry Andric 37*0b57cec5SDimitry Andricdef PPCE500Itineraries : ProcessorItineraries< 38*0b57cec5SDimitry Andric [E500_DIS0, E500_DIS1, E500_SU0, E500_SU1, E500_BU, 39*0b57cec5SDimitry Andric E500_MU, E500_LSU_0], 40*0b57cec5SDimitry Andric [E500_CR_Bypass, E500_GPR_Bypass, E500_DivBypass], [ 41*0b57cec5SDimitry Andric InstrItinData<IIC_IntSimple, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 42*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1]>], 43*0b57cec5SDimitry Andric [4, 1, 1], // Latency = 1 44*0b57cec5SDimitry Andric [E500_GPR_Bypass, 45*0b57cec5SDimitry Andric E500_GPR_Bypass, E500_GPR_Bypass]>, 46*0b57cec5SDimitry Andric InstrItinData<IIC_IntGeneral, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 47*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1]>], 48*0b57cec5SDimitry Andric [4, 1, 1], // Latency = 1 49*0b57cec5SDimitry Andric [E500_GPR_Bypass, 50*0b57cec5SDimitry Andric E500_GPR_Bypass, E500_GPR_Bypass]>, 51*0b57cec5SDimitry Andric InstrItinData<IIC_IntISEL, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 52*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1]>], 53*0b57cec5SDimitry Andric [4, 1, 1, 1], // Latency = 1 54*0b57cec5SDimitry Andric [E500_GPR_Bypass, 55*0b57cec5SDimitry Andric E500_GPR_Bypass, E500_GPR_Bypass, 56*0b57cec5SDimitry Andric E500_CR_Bypass]>, 57*0b57cec5SDimitry Andric InstrItinData<IIC_IntCompare, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 58*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1]>], 59*0b57cec5SDimitry Andric [5, 1, 1], // Latency = 1 or 2 60*0b57cec5SDimitry Andric [E500_CR_Bypass, 61*0b57cec5SDimitry Andric E500_GPR_Bypass, E500_GPR_Bypass]>, 62*0b57cec5SDimitry Andric InstrItinData<IIC_IntDivW, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 63*0b57cec5SDimitry Andric InstrStage<1, [E500_MU], 0>, 64*0b57cec5SDimitry Andric InstrStage<14, [E500_MU]>], 65*0b57cec5SDimitry Andric [17, 1, 1], // Latency=4..35, Repeat= 4..35 66*0b57cec5SDimitry Andric [E500_GPR_Bypass, 67*0b57cec5SDimitry Andric E500_GPR_Bypass, E500_GPR_Bypass]>, 68*0b57cec5SDimitry Andric InstrItinData<IIC_IntMulHW, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 69*0b57cec5SDimitry Andric InstrStage<4, [E500_MU]>], 70*0b57cec5SDimitry Andric [7, 1, 1], // Latency = 4, Repeat rate = 1 71*0b57cec5SDimitry Andric [E500_GPR_Bypass, 72*0b57cec5SDimitry Andric E500_GPR_Bypass, E500_GPR_Bypass]>, 73*0b57cec5SDimitry Andric InstrItinData<IIC_IntMulHWU, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 74*0b57cec5SDimitry Andric InstrStage<4, [E500_MU]>], 75*0b57cec5SDimitry Andric [7, 1, 1], // Latency = 4, Repeat rate = 1 76*0b57cec5SDimitry Andric [E500_GPR_Bypass, 77*0b57cec5SDimitry Andric E500_GPR_Bypass, E500_GPR_Bypass]>, 78*0b57cec5SDimitry Andric InstrItinData<IIC_IntMulLI, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 79*0b57cec5SDimitry Andric InstrStage<4, [E500_MU]>], 80*0b57cec5SDimitry Andric [7, 1, 1], // Latency = 4, Repeat rate = 1 81*0b57cec5SDimitry Andric [E500_GPR_Bypass, 82*0b57cec5SDimitry Andric E500_GPR_Bypass, E500_GPR_Bypass]>, 83*0b57cec5SDimitry Andric InstrItinData<IIC_IntRotate, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 84*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1]>], 85*0b57cec5SDimitry Andric [4, 1, 1], // Latency = 1 86*0b57cec5SDimitry Andric [E500_GPR_Bypass, 87*0b57cec5SDimitry Andric E500_GPR_Bypass, E500_GPR_Bypass]>, 88*0b57cec5SDimitry Andric InstrItinData<IIC_IntShift, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 89*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1]>], 90*0b57cec5SDimitry Andric [4, 1, 1], // Latency = 1 91*0b57cec5SDimitry Andric [E500_GPR_Bypass, 92*0b57cec5SDimitry Andric E500_GPR_Bypass, E500_GPR_Bypass]>, 93*0b57cec5SDimitry Andric InstrItinData<IIC_IntTrapW, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 94*0b57cec5SDimitry Andric InstrStage<2, [E500_SU0]>], 95*0b57cec5SDimitry Andric [5, 1], // Latency = 2, Repeat rate = 2 96*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass]>, 97*0b57cec5SDimitry Andric InstrItinData<IIC_BrB, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 98*0b57cec5SDimitry Andric InstrStage<1, [E500_BU]>], 99*0b57cec5SDimitry Andric [4, 1], // Latency = 1 100*0b57cec5SDimitry Andric [NoBypass, E500_GPR_Bypass]>, 101*0b57cec5SDimitry Andric InstrItinData<IIC_BrCR, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 102*0b57cec5SDimitry Andric InstrStage<1, [E500_BU]>], 103*0b57cec5SDimitry Andric [4, 1, 1], // Latency = 1 104*0b57cec5SDimitry Andric [E500_CR_Bypass, 105*0b57cec5SDimitry Andric E500_CR_Bypass, E500_CR_Bypass]>, 106*0b57cec5SDimitry Andric InstrItinData<IIC_BrMCR, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 107*0b57cec5SDimitry Andric InstrStage<1, [E500_BU]>], 108*0b57cec5SDimitry Andric [4, 1], // Latency = 1 109*0b57cec5SDimitry Andric [E500_CR_Bypass, E500_CR_Bypass]>, 110*0b57cec5SDimitry Andric InstrItinData<IIC_BrMCRX, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 111*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1]>], 112*0b57cec5SDimitry Andric [4, 1, 1], // Latency = 1 113*0b57cec5SDimitry Andric [E500_CR_Bypass, E500_GPR_Bypass]>, 114*0b57cec5SDimitry Andric InstrItinData<IIC_LdStDCBA, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 115*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 116*0b57cec5SDimitry Andric [6, 1], // Latency = 3, Repeat rate = 1 117*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass]>, 118*0b57cec5SDimitry Andric InstrItinData<IIC_LdStDCBF, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 119*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 120*0b57cec5SDimitry Andric [6, 1], // Latency = 3 121*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass]>, 122*0b57cec5SDimitry Andric InstrItinData<IIC_LdStDCBI, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 123*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 124*0b57cec5SDimitry Andric [6, 1], // Latency = 3 125*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass]>, 126*0b57cec5SDimitry Andric InstrItinData<IIC_LdStLoad, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 127*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 128*0b57cec5SDimitry Andric [6, 1], // Latency = 3 129*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass]>, 130*0b57cec5SDimitry Andric InstrItinData<IIC_LdStLoadUpd, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 131*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1], 0>, 132*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 133*0b57cec5SDimitry Andric [6, 1], // Latency = 3 134*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass], 135*0b57cec5SDimitry Andric 2>, // 2 micro-ops 136*0b57cec5SDimitry Andric InstrItinData<IIC_LdStLoadUpdX,[InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 137*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1], 0>, 138*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 139*0b57cec5SDimitry Andric [6, 1], // Latency = 3 140*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass], 141*0b57cec5SDimitry Andric 2>, // 2 micro-ops 142*0b57cec5SDimitry Andric InstrItinData<IIC_LdStStore, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 143*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 144*0b57cec5SDimitry Andric [6, 1], // Latency = 3 145*0b57cec5SDimitry Andric [NoBypass, E500_GPR_Bypass]>, 146*0b57cec5SDimitry Andric InstrItinData<IIC_LdStSTU, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 147*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1], 0>, 148*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 149*0b57cec5SDimitry Andric [6, 1], // Latency = 3 150*0b57cec5SDimitry Andric [NoBypass, E500_GPR_Bypass], 151*0b57cec5SDimitry Andric 2>, // 2 micro-ops 152*0b57cec5SDimitry Andric InstrItinData<IIC_LdStSTUX, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 153*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1], 0>, 154*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 155*0b57cec5SDimitry Andric [6, 1], // Latency = 3 156*0b57cec5SDimitry Andric [NoBypass, E500_GPR_Bypass], 157*0b57cec5SDimitry Andric 2>, // 2 micro-ops 158*0b57cec5SDimitry Andric InstrItinData<IIC_LdStICBI, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 159*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 160*0b57cec5SDimitry Andric [6, 1], // Latency = 3 161*0b57cec5SDimitry Andric [NoBypass, E500_GPR_Bypass]>, 162*0b57cec5SDimitry Andric InstrItinData<IIC_LdStLHA, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 163*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 164*0b57cec5SDimitry Andric [6, 1], // Latency = 3 165*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass]>, 166*0b57cec5SDimitry Andric InstrItinData<IIC_LdStLHAU, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 167*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1], 0>, 168*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 169*0b57cec5SDimitry Andric [6, 1], // Latency = 3 170*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass]>, 171*0b57cec5SDimitry Andric InstrItinData<IIC_LdStLHAUX, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 172*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1], 0>, 173*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 174*0b57cec5SDimitry Andric [6, 1], // Latency = 3 175*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass]>, 176*0b57cec5SDimitry Andric InstrItinData<IIC_LdStLMW, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 177*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 178*0b57cec5SDimitry Andric [7, 1], // Latency = r+3 179*0b57cec5SDimitry Andric [NoBypass, E500_GPR_Bypass]>, 180*0b57cec5SDimitry Andric InstrItinData<IIC_LdStLWARX, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 181*0b57cec5SDimitry Andric InstrStage<3, [E500_LSU_0]>], 182*0b57cec5SDimitry Andric [6, 1, 1], // Latency = 3, Repeat rate = 3 183*0b57cec5SDimitry Andric [E500_GPR_Bypass, 184*0b57cec5SDimitry Andric E500_GPR_Bypass, E500_GPR_Bypass]>, 185*0b57cec5SDimitry Andric InstrItinData<IIC_LdStSTWCX, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 186*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>], 187*0b57cec5SDimitry Andric [6, 1], // Latency = 3 188*0b57cec5SDimitry Andric [NoBypass, E500_GPR_Bypass]>, 189*0b57cec5SDimitry Andric InstrItinData<IIC_LdStSync, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 190*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0]>]>, 191*0b57cec5SDimitry Andric InstrItinData<IIC_SprMFSR, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 192*0b57cec5SDimitry Andric InstrStage<4, [E500_SU0]>], 193*0b57cec5SDimitry Andric [7, 1], 194*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass]>, 195*0b57cec5SDimitry Andric InstrItinData<IIC_SprMTMSR, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 196*0b57cec5SDimitry Andric InstrStage<2, [E500_SU0, E500_SU1]>], 197*0b57cec5SDimitry Andric [5, 1], // Latency = 2, Repeat rate = 4 198*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass]>, 199*0b57cec5SDimitry Andric InstrItinData<IIC_SprMTSR, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 200*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0]>], 201*0b57cec5SDimitry Andric [5, 1], 202*0b57cec5SDimitry Andric [NoBypass, E500_GPR_Bypass]>, 203*0b57cec5SDimitry Andric InstrItinData<IIC_SprTLBSYNC, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 204*0b57cec5SDimitry Andric InstrStage<1, [E500_LSU_0], 0>]>, 205*0b57cec5SDimitry Andric InstrItinData<IIC_SprMFCR, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 206*0b57cec5SDimitry Andric InstrStage<5, [E500_SU0]>], 207*0b57cec5SDimitry Andric [8, 1], 208*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_CR_Bypass]>, 209*0b57cec5SDimitry Andric InstrItinData<IIC_SprMFCRF, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 210*0b57cec5SDimitry Andric InstrStage<5, [E500_SU0]>], 211*0b57cec5SDimitry Andric [8, 1], 212*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_CR_Bypass]>, 213*0b57cec5SDimitry Andric InstrItinData<IIC_SprMFPMR, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 214*0b57cec5SDimitry Andric InstrStage<4, [E500_SU0]>], 215*0b57cec5SDimitry Andric [7, 1], // Latency = 4, Repeat rate = 4 216*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass]>, 217*0b57cec5SDimitry Andric InstrItinData<IIC_SprMFMSR, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 218*0b57cec5SDimitry Andric InstrStage<4, [E500_SU0]>], 219*0b57cec5SDimitry Andric [7, 1], // Latency = 4, Repeat rate = 4 220*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_GPR_Bypass]>, 221*0b57cec5SDimitry Andric InstrItinData<IIC_SprMFSPR, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 222*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1]>], 223*0b57cec5SDimitry Andric [4, 1], // Latency = 1, Repeat rate = 1 224*0b57cec5SDimitry Andric [E500_GPR_Bypass, E500_CR_Bypass]>, 225*0b57cec5SDimitry Andric InstrItinData<IIC_SprMTPMR, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 226*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0]>], 227*0b57cec5SDimitry Andric [4, 1], // Latency = 1, Repeat rate = 1 228*0b57cec5SDimitry Andric [E500_CR_Bypass, E500_GPR_Bypass]>, 229*0b57cec5SDimitry Andric InstrItinData<IIC_SprMFTB, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 230*0b57cec5SDimitry Andric InstrStage<4, [E500_SU0]>], 231*0b57cec5SDimitry Andric [7, 1], // Latency = 4, Repeat rate = 4 232*0b57cec5SDimitry Andric [NoBypass, E500_GPR_Bypass]>, 233*0b57cec5SDimitry Andric InstrItinData<IIC_SprMTSPR, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 234*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0, E500_SU1]>], 235*0b57cec5SDimitry Andric [4, 1], // Latency = 1, Repeat rate = 1 236*0b57cec5SDimitry Andric [E500_CR_Bypass, E500_GPR_Bypass]>, 237*0b57cec5SDimitry Andric InstrItinData<IIC_SprMTSRIN, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 238*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0]>], 239*0b57cec5SDimitry Andric [4, 1], 240*0b57cec5SDimitry Andric [NoBypass, E500_GPR_Bypass]>, 241*0b57cec5SDimitry Andric InstrItinData<IIC_FPDGeneral, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 242*0b57cec5SDimitry Andric InstrStage<6, [E500_MU]>], 243*0b57cec5SDimitry Andric [9, 1, 1], // Latency = 6, Repeat rate = 1 244*0b57cec5SDimitry Andric [NoBypass]>, 245*0b57cec5SDimitry Andric InstrItinData<IIC_FPSGeneral, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 246*0b57cec5SDimitry Andric InstrStage<4, [E500_MU]>], 247*0b57cec5SDimitry Andric [7, 1, 1], // Latency = 4, Repeat rate = 1 248*0b57cec5SDimitry Andric [NoBypass]>, 249*0b57cec5SDimitry Andric InstrItinData<IIC_FPDivD, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 250*0b57cec5SDimitry Andric InstrStage<32, [E500_MU]>], 251*0b57cec5SDimitry Andric [35, 1, 1], // Latency = 32, Repeat rate = 32 252*0b57cec5SDimitry Andric [E500_DivBypass]>, 253*0b57cec5SDimitry Andric InstrItinData<IIC_FPDivS, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 254*0b57cec5SDimitry Andric InstrStage<29, [E500_MU]>], 255*0b57cec5SDimitry Andric [32, 1, 1], // Latency = 29, Repeat rate = 29 256*0b57cec5SDimitry Andric [E500_DivBypass]>, 257*0b57cec5SDimitry Andric InstrItinData<IIC_VecGeneral, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 258*0b57cec5SDimitry Andric InstrStage<1, [E500_SU0]>], 259*0b57cec5SDimitry Andric [4, 1, 1], // Latency = 1, Repeat rate = 1 260*0b57cec5SDimitry Andric [NoBypass]>, 261*0b57cec5SDimitry Andric InstrItinData<IIC_VecComplex, [InstrStage<1, [E500_DIS0, E500_DIS1], 0>, 262*0b57cec5SDimitry Andric InstrStage<4, [E500_MU]>], 263*0b57cec5SDimitry Andric [7, 1, 1], // Latency = 4, Repeat rate = 1 264*0b57cec5SDimitry Andric [NoBypass]> 265*0b57cec5SDimitry Andric]>; 266*0b57cec5SDimitry Andric 267*0b57cec5SDimitry Andric// ===---------------------------------------------------------------------===// 268*0b57cec5SDimitry Andric// e500 machine model for scheduling and other instruction cost heuristics. 269*0b57cec5SDimitry Andric 270*0b57cec5SDimitry Andricdef PPCE500Model : SchedMachineModel { 271*0b57cec5SDimitry Andric let IssueWidth = 2; // 2 micro-ops are dispatched per cycle. 272*0b57cec5SDimitry Andric let LoadLatency = 5; // Optimistic load latency assuming bypass. 273*0b57cec5SDimitry Andric // This is overriden by OperandCycles if the 274*0b57cec5SDimitry Andric // Itineraries are queried instead. 275*0b57cec5SDimitry Andric 276*0b57cec5SDimitry Andric let CompleteModel = 0; 277*0b57cec5SDimitry Andric 278*0b57cec5SDimitry Andric let Itineraries = PPCE500Itineraries; 279*0b57cec5SDimitry Andric} 280