//=- ARMScheduleA8.td - ARM Cortex-A8 Scheduling Definitions -*- 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 itinerary class data for the ARM Cortex A8 processors. // //===----------------------------------------------------------------------===// // // Scheduling information derived from "Cortex-A8 Technical Reference Manual". // Functional Units. def A8_Pipe0 : FuncUnit; // pipeline 0 def A8_Pipe1 : FuncUnit; // pipeline 1 def A8_LSPipe : FuncUnit; // Load / store pipeline def A8_NPipe : FuncUnit; // NEON ALU/MUL pipe def A8_NLSPipe : FuncUnit; // NEON LS pipe // // Dual issue pipeline represented by A8_Pipe0 | A8_Pipe1 // def CortexA8Itineraries : ProcessorItineraries< [A8_Pipe0, A8_Pipe1, A8_LSPipe, A8_NPipe, A8_NLSPipe], [], [ // Two fully-pipelined integer ALU pipelines // // No operand cycles InstrItinData]>, // // Binary Instructions that produce a result InstrItinData], [2, 2]>, InstrItinData], [2, 2, 2]>, InstrItinData], [2, 2, 1]>, InstrItinData], [2, 1, 2]>, InstrItinData], [2, 2, 1, 1]>, // // Bitwise Instructions that produce a result InstrItinData], [2, 2]>, InstrItinData], [2, 2, 2]>, InstrItinData], [2, 2, 1]>, InstrItinData], [2, 2, 1, 1]>, // // Unary Instructions that produce a result InstrItinData], [2, 2]>, InstrItinData], [2, 1]>, // // Zero and sign extension instructions InstrItinData], [1, 1]>, InstrItinData], [2, 2, 1]>, InstrItinData],[2, 2, 1, 1]>, // // Compare instructions InstrItinData], [2]>, InstrItinData], [2, 2]>, InstrItinData], [2, 1]>, InstrItinData], [2, 1, 1]>, // // Test instructions InstrItinData], [2]>, InstrItinData], [2, 2]>, InstrItinData], [2, 1]>, InstrItinData], [2, 1, 1]>, // // Move instructions, unconditional InstrItinData], [1]>, InstrItinData], [1, 1]>, InstrItinData], [1, 1]>, InstrItinData], [1, 1, 1]>, InstrItinData, InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>, InstrItinData, InstrStage<1, [A8_Pipe0, A8_Pipe1]>, InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [3]>, InstrItinData, InstrStage<1, [A8_Pipe0, A8_Pipe1]>, InstrStage<1, [A8_LSPipe]>], [5]>, // // Move instructions, conditional InstrItinData], [2]>, InstrItinData], [2, 1]>, InstrItinData], [2, 1]>, InstrItinData], [2, 1, 1]>, InstrItinData, InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [3, 1]>, // // MVN instructions InstrItinData], [1]>, InstrItinData], [1, 1]>, InstrItinData], [1, 1]>, InstrItinData], [1, 1, 1]>, // Integer multiply pipeline // Result written in E5, but that is relative to the last cycle of multicycle, // so we use 6 for those cases // InstrItinData], [5, 1, 1]>, InstrItinData], [6, 1, 1, 4]>, InstrItinData], [6, 1, 1]>, InstrItinData], [6, 1, 1, 4]>, InstrItinData], [6, 6, 1, 1]>, InstrItinData], [6, 6, 1, 1]>, // Integer load pipeline // // Immediate offset InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1]>, // // Register offset InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>, // // Scaled register offset, issues over 2 cycles // FIXME: lsl by 2 takes 1 cycle. InstrItinData, InstrStage<1, [A8_LSPipe]>], [4, 1, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [4, 1, 1]>, // // Immediate offset with update InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 2, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 2, 1]>, // // Register offset with update InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>, // // Scaled register offset with update, issues over 2 cycles InstrItinData, InstrStage<2, [A8_LSPipe]>], [4, 3, 1, 1]>, InstrItinData, InstrStage<2, [A8_LSPipe]>], [4, 3, 1, 1]>, // // Load multiple, def is the 5th operand. Pipeline 0 only. // FIXME: A8_LSPipe cycle time is dynamic, this assumes 3 to 4 registers. InstrItinData, InstrStage<2, [A8_LSPipe]>], [1, 1, 1, 1, 3], [], -1>, // dynamic uops // // Load multiple + update, defs are the 1st and 5th operands. InstrItinData, InstrStage<3, [A8_LSPipe]>], [2, 1, 1, 1, 3], [], -1>, // dynamic uops // // Load multiple plus branch InstrItinData, InstrStage<3, [A8_LSPipe]>, InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 2, 1, 1, 3], [], -1>, // dynamic uops // // Pop, def is the 3rd operand. InstrItinData, InstrStage<3, [A8_LSPipe]>], [1, 1, 3], [], -1>, // dynamic uops // // Push, def is the 3th operand. InstrItinData, InstrStage<3, [A8_LSPipe]>, InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1, 3], [], -1>, // dynamic uops // // iLoadi + iALUr for t2LDRpci_pic. InstrItinData, InstrStage<1, [A8_LSPipe]>, InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [4, 1]>, // Integer store pipeline // // Immediate offset InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1]>, // // Register offset InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>, // // Scaled register offset, issues over 2 cycles InstrItinData, InstrStage<2, [A8_LSPipe]>], [3, 1, 1]>, InstrItinData, InstrStage<2, [A8_LSPipe]>], [3, 1, 1]>, // // Immediate offset with update InstrItinData, InstrStage<1, [A8_LSPipe]>], [2, 3, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [2, 3, 1]>, // // Register offset with update InstrItinData, InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>, InstrItinData, InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>, // // Scaled register offset with update, issues over 2 cycles InstrItinData, InstrStage<2, [A8_LSPipe]>], [3, 3, 1, 1]>, InstrItinData, InstrStage<2, [A8_LSPipe]>], [3, 3, 1, 1]>, // // Store multiple. Pipeline 0 only. // FIXME: A8_LSPipe cycle time is dynamic, this assumes 3 to 4 registers. InstrItinData, InstrStage<2, [A8_LSPipe]>], [], [], -1>, // dynamic uops // // Store multiple + update InstrItinData, InstrStage<2, [A8_LSPipe]>], [2], [], -1>, // dynamic uops // // Preload InstrItinData], [2, 2]>, // Branch // // no delay slots, so the latency of a branch is unimportant InstrItinData]>, // VFP // Issue through integer pipeline, and execute in NEON unit. We assume // RunFast mode so that NFP pipeline is used for single-precision when // possible. // // FP Special Register to Integer Register File Move InstrItinData, InstrStage<1, [A8_NLSPipe]>], [20]>, // // Single-precision FP Unary InstrItinData, InstrStage<1, [A8_NPipe]>], [7, 1]>, // // Double-precision FP Unary InstrItinData, InstrStage<4, [A8_NPipe], 0>, InstrStage<4, [A8_NLSPipe]>], [4, 1]>, // // Single-precision FP Compare InstrItinData, InstrStage<1, [A8_NPipe]>], [1, 1]>, // // Double-precision FP Compare InstrItinData, InstrStage<4, [A8_NPipe], 0>, InstrStage<4, [A8_NLSPipe]>], [4, 1]>, // // Single to Double FP Convert InstrItinData, InstrStage<7, [A8_NPipe], 0>, InstrStage<7, [A8_NLSPipe]>], [7, 1]>, // // Double to Single FP Convert InstrItinData, InstrStage<5, [A8_NPipe], 0>, InstrStage<5, [A8_NLSPipe]>], [5, 1]>, // // Single-Precision FP to Integer Convert InstrItinData, InstrStage<1, [A8_NPipe]>], [7, 1]>, // // Double-Precision FP to Integer Convert InstrItinData, InstrStage<8, [A8_NPipe], 0>, InstrStage<8, [A8_NLSPipe]>], [8, 1]>, // // Integer to Single-Precision FP Convert InstrItinData, InstrStage<1, [A8_NPipe]>], [7, 1]>, // // Integer to Double-Precision FP Convert InstrItinData, InstrStage<8, [A8_NPipe], 0>, InstrStage<8, [A8_NLSPipe]>], [8, 1]>, // // Single-precision FP ALU InstrItinData, InstrStage<1, [A8_NPipe]>], [7, 1, 1]>, // // Double-precision FP ALU InstrItinData, InstrStage<9, [A8_NPipe], 0>, InstrStage<9, [A8_NLSPipe]>], [9, 1, 1]>, // // Single-precision FP Multiply InstrItinData, InstrStage<1, [A8_NPipe]>], [7, 1, 1]>, // // Double-precision FP Multiply InstrItinData, InstrStage<11, [A8_NPipe], 0>, InstrStage<11, [A8_NLSPipe]>], [11, 1, 1]>, // // Single-precision FP MAC InstrItinData, InstrStage<1, [A8_NPipe]>], [7, 2, 1, 1]>, // // Double-precision FP MAC InstrItinData, InstrStage<19, [A8_NPipe], 0>, InstrStage<19, [A8_NLSPipe]>], [19, 2, 1, 1]>, // // Single-precision Fused FP MAC InstrItinData, InstrStage<1, [A8_NPipe]>], [7, 2, 1, 1]>, // // Double-precision Fused FP MAC InstrItinData, InstrStage<19, [A8_NPipe], 0>, InstrStage<19, [A8_NLSPipe]>], [19, 2, 1, 1]>, // // Single-precision FP DIV InstrItinData, InstrStage<20, [A8_NPipe], 0>, InstrStage<20, [A8_NLSPipe]>], [20, 1, 1]>, // // Double-precision FP DIV InstrItinData, InstrStage<29, [A8_NPipe], 0>, InstrStage<29, [A8_NLSPipe]>], [29, 1, 1]>, // // Single-precision FP SQRT InstrItinData, InstrStage<19, [A8_NPipe], 0>, InstrStage<19, [A8_NLSPipe]>], [19, 1]>, // // Double-precision FP SQRT InstrItinData, InstrStage<29, [A8_NPipe], 0>, InstrStage<29, [A8_NLSPipe]>], [29, 1]>, // // Integer to Single-precision Move InstrItinData, InstrStage<1, [A8_NPipe]>], [2, 1]>, // // Integer to Double-precision Move InstrItinData, InstrStage<1, [A8_NPipe]>], [2, 1, 1]>, // // Single-precision to Integer Move InstrItinData, InstrStage<1, [A8_NPipe]>], [20, 1]>, // // Double-precision to Integer Move InstrItinData, InstrStage<1, [A8_NPipe]>], [20, 20, 1]>, // // Single-precision FP Load InstrItinData, InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>], [2, 1]>, // // Double-precision FP Load InstrItinData, InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>], [2, 1]>, // // FP Load Multiple // FIXME: A8_LSPipe cycle time is dynamic, this assumes 3 to 4 registers. InstrItinData, InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>, InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>], [1, 1, 1, 2], [], -1>, // dynamic uops // // FP Load Multiple + update InstrItinData, InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>, InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>], [2, 1, 1, 1, 2], [], -1>, // dynamic uops // // Single-precision FP Store InstrItinData, InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>], [1, 1]>, // // Double-precision FP Store InstrItinData, InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>], [1, 1]>, // // FP Store Multiple InstrItinData, InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>, InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>], [1, 1, 1, 1], [], -1>, // dynamic uops // // FP Store Multiple + update InstrItinData, InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>, InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>], [2, 1, 1, 1, 1], [], -1>, // dynamic uops // NEON // Issue through integer pipeline, and execute in NEON unit. // // VLD1 InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 1]>, // VLD1x2 InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 2, 1]>, // // VLD1x3 InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 1]>, // // VLD1x4 InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 3, 1]>, // // VLD1u InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 2, 1]>, // // VLD1x2u InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 2, 2, 1]>, // // VLD1x3u InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 2, 1]>, // // VLD1x4u InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 3, 2, 1]>, // // VLD1ln InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [3, 1, 1, 1]>, // // VLD1lnu InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [3, 2, 1, 1, 1, 1]>, // // VLD1dup InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 1]>, // // VLD1dupu InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 2, 1, 1]>, // // VLD2 InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 2, 1]>, // // VLD2x2 InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 3, 1]>, // // VLD2ln InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [3, 3, 1, 1, 1, 1]>, // // VLD2u InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 2, 2, 1, 1, 1]>, // // VLD2x2u InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 3, 2, 1]>, // // VLD2lnu InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [3, 3, 2, 1, 1, 1, 1, 1]>, // // VLD2dup InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 2, 1]>, // // VLD2dupu InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 2, 2, 1, 1]>, // // VLD3 InstrItinData, InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [3, 3, 4, 1]>, // // VLD3ln InstrItinData, InstrStage<5, [A8_NLSPipe], 0>, InstrStage<5, [A8_LSPipe]>], [4, 4, 5, 1, 1, 1, 1, 2]>, // // VLD3u InstrItinData, InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [3, 3, 4, 2, 1]>, // // VLD3lnu InstrItinData, InstrStage<5, [A8_NLSPipe], 0>, InstrStage<5, [A8_LSPipe]>], [4, 4, 5, 2, 1, 1, 1, 1, 1, 2]>, // // VLD3dup InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 1]>, // // VLD3dupu InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 2, 1, 1]>, // // VLD4 InstrItinData, InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [3, 3, 4, 4, 1]>, // // VLD4ln InstrItinData, InstrStage<5, [A8_NLSPipe], 0>, InstrStage<5, [A8_LSPipe]>], [4, 4, 5, 5, 1, 1, 1, 1, 2, 2]>, // // VLD4u InstrItinData, InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [3, 3, 4, 4, 2, 1]>, // // VLD4lnu InstrItinData, InstrStage<5, [A8_NLSPipe], 0>, InstrStage<5, [A8_LSPipe]>], [4, 4, 5, 5, 2, 1, 1, 1, 1, 1, 2, 2]>, // // VLD4dup InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 3, 1]>, // // VLD4dupu InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 3, 2, 1, 1]>, // // VST1 InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [1, 1, 1]>, // // VST1x2 InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [1, 1, 1, 1]>, // // VST1x3 InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [1, 1, 1, 1, 2]>, // // VST1x4 InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [1, 1, 1, 1, 2, 2]>, // // VST1u InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 1, 1, 1, 1]>, // // VST1x2u InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1]>, // // VST1x3u InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1, 2]>, // // VST1x4u InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1, 2, 2]>, // // VST1ln InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [1, 1, 1]>, // // VST1lnu InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 1, 1, 1, 1]>, // // VST2 InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [1, 1, 1, 1]>, // // VST2x2 InstrItinData, InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [1, 1, 1, 1, 2, 2]>, // // VST2u InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1]>, // // VST2x2u InstrItinData, InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1, 2, 2]>, // // VST2ln InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [1, 1, 1, 1]>, // // VST2lnu InstrItinData, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1]>, // // VST3 InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [1, 1, 1, 1, 2]>, // // VST3u InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1, 2]>, // // VST3ln InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [1, 1, 1, 1, 2]>, // // VST3lnu InstrItinData, InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1, 2]>, // // VST4 InstrItinData, InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [1, 1, 1, 1, 2, 2]>, // // VST4u InstrItinData, InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1, 2, 2]>, // // VST4ln InstrItinData, InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [1, 1, 1, 1, 2, 2]>, // // VST4lnu InstrItinData, InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1, 2, 2]>, // // Double-register FP Unary InstrItinData, InstrStage<1, [A8_NPipe]>], [5, 2]>, // // Quad-register FP Unary // Result written in N5, but that is relative to the last cycle of multicycle, // so we use 6 for those cases InstrItinData, InstrStage<2, [A8_NPipe]>], [6, 2]>, // // Double-register FP Binary InstrItinData, InstrStage<1, [A8_NPipe]>], [5, 2, 2]>, // // VPADD, etc. InstrItinData, InstrStage<1, [A8_NPipe]>], [5, 2, 2]>, // // Double-register FP VMUL InstrItinData, InstrStage<1, [A8_NPipe]>], [5, 2, 1]>, // // Quad-register FP Binary // Result written in N5, but that is relative to the last cycle of multicycle, // so we use 6 for those cases InstrItinData, InstrStage<2, [A8_NPipe]>], [6, 2, 2]>, // // Quad-register FP VMUL InstrItinData, InstrStage<1, [A8_NPipe]>], [6, 2, 1]>, // // Move InstrItinData, InstrStage<1, [A8_NPipe]>], [1, 1]>, // // Move Immediate InstrItinData, InstrStage<1, [A8_NPipe]>], [3]>, // // Double-register Permute Move InstrItinData, InstrStage<1, [A8_NLSPipe]>], [2, 1]>, // // Quad-register Permute Move // Result written in N2, but that is relative to the last cycle of multicycle, // so we use 3 for those cases InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 1]>, // // Integer to Single-precision Move InstrItinData, InstrStage<1, [A8_NLSPipe]>], [2, 1]>, // // Integer to Double-precision Move InstrItinData, InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>, // // Single-precision to Integer Move InstrItinData, InstrStage<1, [A8_NLSPipe]>], [20, 1]>, // // Double-precision to Integer Move InstrItinData, InstrStage<1, [A8_NLSPipe]>], [20, 20, 1]>, // // Integer to Lane Move InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>, // // Vector narrow move InstrItinData, InstrStage<1, [A8_NPipe]>], [2, 1]>, // // Double-register Permute InstrItinData, InstrStage<1, [A8_NLSPipe]>], [2, 2, 1, 1]>, // // Quad-register Permute // Result written in N2, but that is relative to the last cycle of multicycle, // so we use 3 for those cases InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 3, 1, 1]>, // // Quad-register Permute (3 cycle issue) // Result written in N2, but that is relative to the last cycle of multicycle, // so we use 4 for those cases InstrItinData, InstrStage<1, [A8_NLSPipe]>, InstrStage<1, [A8_NPipe], 0>, InstrStage<2, [A8_NLSPipe]>], [4, 4, 1, 1]>, // // Double-register FP Multiple-Accumulate InstrItinData, InstrStage<1, [A8_NPipe]>], [9, 3, 2, 2]>, // // Quad-register FP Multiple-Accumulate // Result written in N9, but that is relative to the last cycle of multicycle, // so we use 10 for those cases InstrItinData, InstrStage<2, [A8_NPipe]>], [10, 3, 2, 2]>, // // Double-register Fused FP Multiple-Accumulate InstrItinData, InstrStage<1, [A8_NPipe]>], [9, 3, 2, 2]>, // // Quad-register Fused FP Multiple-Accumulate // Result written in N9, but that is relative to the last cycle of multicycle, // so we use 10 for those cases InstrItinData, InstrStage<2, [A8_NPipe]>], [10, 3, 2, 2]>, // // Double-register Reciprical Step InstrItinData, InstrStage<1, [A8_NPipe]>], [9, 2, 2]>, // // Quad-register Reciprical Step InstrItinData, InstrStage<2, [A8_NPipe]>], [10, 2, 2]>, // // Double-register Integer Count InstrItinData, InstrStage<1, [A8_NPipe]>], [3, 2, 2]>, // // Quad-register Integer Count // Result written in N3, but that is relative to the last cycle of multicycle, // so we use 4 for those cases InstrItinData, InstrStage<2, [A8_NPipe]>], [4, 2, 2]>, // // Double-register Integer Unary InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 2]>, // // Quad-register Integer Unary InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 2]>, // // Double-register Integer Q-Unary InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 1]>, // // Quad-register Integer CountQ-Unary InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 1]>, // // Double-register Integer Binary InstrItinData, InstrStage<1, [A8_NPipe]>], [3, 2, 2]>, // // Quad-register Integer Binary InstrItinData, InstrStage<1, [A8_NPipe]>], [3, 2, 2]>, // // Double-register Integer Binary (4 cycle) InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 2, 1]>, // // Quad-register Integer Binary (4 cycle) InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 2, 1]>, // // Double-register Integer Subtract InstrItinData, InstrStage<1, [A8_NPipe]>], [3, 2, 1]>, // // Quad-register Integer Subtract InstrItinData, InstrStage<1, [A8_NPipe]>], [3, 2, 1]>, // // Double-register Integer Subtract InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 2, 1]>, // // Quad-register Integer Subtract InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 2, 1]>, // // Double-register Integer Shift InstrItinData, InstrStage<1, [A8_NPipe]>], [3, 1, 1]>, // // Quad-register Integer Shift InstrItinData, InstrStage<2, [A8_NPipe]>], [4, 1, 1]>, // // Double-register Integer Shift (4 cycle) InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 1, 1]>, // // Quad-register Integer Shift (4 cycle) InstrItinData, InstrStage<2, [A8_NPipe]>], [5, 1, 1]>, // // Double-register Integer Pair Add Long InstrItinData, InstrStage<1, [A8_NPipe]>], [6, 3, 1]>, // // Quad-register Integer Pair Add Long InstrItinData, InstrStage<2, [A8_NPipe]>], [7, 3, 1]>, // // Double-register Absolute Difference and Accumulate InstrItinData, InstrStage<1, [A8_NPipe]>], [6, 3, 2, 1]>, // // Quad-register Absolute Difference and Accumulate InstrItinData, InstrStage<2, [A8_NPipe]>], [6, 3, 2, 1]>, // // Double-register Integer Multiply (.8, .16) InstrItinData, InstrStage<1, [A8_NPipe]>], [6, 2, 2]>, // // Double-register Integer Multiply (.32) InstrItinData, InstrStage<2, [A8_NPipe]>], [7, 2, 1]>, // // Quad-register Integer Multiply (.8, .16) InstrItinData, InstrStage<2, [A8_NPipe]>], [7, 2, 2]>, // // Quad-register Integer Multiply (.32) InstrItinData, InstrStage<1, [A8_NPipe]>, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<3, [A8_NPipe]>], [9, 2, 1]>, // // Double-register Integer Multiply-Accumulate (.8, .16) InstrItinData, InstrStage<1, [A8_NPipe]>], [6, 3, 2, 2]>, // // Double-register Integer Multiply-Accumulate (.32) InstrItinData, InstrStage<2, [A8_NPipe]>], [7, 3, 2, 1]>, // // Quad-register Integer Multiply-Accumulate (.8, .16) InstrItinData, InstrStage<2, [A8_NPipe]>], [7, 3, 2, 2]>, // // Quad-register Integer Multiply-Accumulate (.32) InstrItinData, InstrStage<1, [A8_NPipe]>, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<3, [A8_NPipe]>], [9, 3, 2, 1]>, // // Double-register VEXT InstrItinData, InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>, // // Quad-register VEXT InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>, // // VTB InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 2, 1]>, InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 2, 2, 1]>, InstrItinData, InstrStage<1, [A8_NLSPipe]>, InstrStage<1, [A8_NPipe], 0>, InstrStage<2, [A8_NLSPipe]>], [4, 2, 2, 3, 1]>, InstrItinData, InstrStage<1, [A8_NLSPipe]>, InstrStage<1, [A8_NPipe], 0>, InstrStage<2, [A8_NLSPipe]>],[4, 2, 2, 3, 3, 1]>, // // VTBX InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 1]>, InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 2, 1]>, InstrItinData, InstrStage<1, [A8_NLSPipe]>, InstrStage<1, [A8_NPipe], 0>, InstrStage<2, [A8_NLSPipe]>],[4, 1, 2, 2, 3, 1]>, InstrItinData, InstrStage<1, [A8_NLSPipe]>, InstrStage<1, [A8_NPipe], 0>, InstrStage<2, [A8_NLSPipe]>], [4, 1, 2, 2, 3, 3, 1]> ]>; // ===---------------------------------------------------------------------===// // This following definitions describe the simple machine model which // will replace itineraries. // Cortex-A8 machine model for scheduling and other instruction cost heuristics. def CortexA8Model : SchedMachineModel { let IssueWidth = 2; // 2 micro-ops are dispatched per cycle. let MinLatency = -1; // OperandCycles are interpreted as MinLatency. let LoadLatency = 2; // Optimistic load latency assuming bypass. // This is overriden by OperandCycles if the // Itineraries are queried instead. let MispredictPenalty = 13; // Based on estimate of pipeline depth. let Itineraries = CortexA8Itineraries; }