X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FARM%2FARMScheduleA8.td;h=2c6382542ab95e723afed1ba69c2bbdb50ff6c46;hb=e97d93757641299b2be9d10e7e7caf5fd6855331;hp=e318950b0f4223efec82262255a252b85dcd5dce;hpb=60ff87914fcafd82fb123f03b17827ab7b2c3ab3;p=oota-llvm.git diff --git a/lib/Target/ARM/ARMScheduleA8.td b/lib/Target/ARM/ARMScheduleA8.td index e318950b0f4..2c6382542ab 100644 --- a/lib/Target/ARM/ARMScheduleA8.td +++ b/lib/Target/ARM/ARMScheduleA8.td @@ -71,12 +71,20 @@ def CortexA8Itineraries : ProcessorItineraries< 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]>, @@ -98,76 +106,78 @@ def CortexA8Itineraries : ProcessorItineraries< // Integer load pipeline // // Immediate offset - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1]>, // // Register offset - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>, // // Scaled register offset, issues over 2 cycles // FIXME: lsl by 2 takes 1 cycle. - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [4, 1, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [4, 1, 1]>, // // Immediate offset with update - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 2, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 2, 1]>, // // Register offset with update - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>, // // Scaled register offset with update, issues over 2 cycles - InstrItinData, - InstrStage<1, [A8_LSPipe]>], [4, 3, 1, 1]>, - InstrItinData, - InstrStage<1, [A8_LSPipe]>], [4, 3, 1, 1]>, + 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]>, + 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]>, + InstrItinData, + InstrStage<3, [A8_LSPipe]>], + [2, 1, 1, 1, 3], [], -1>, // dynamic uops // // Load multiple plus branch - InstrItinData, + InstrItinData, InstrStage<3, [A8_LSPipe]>, InstrStage<1, [A8_Pipe0, A8_Pipe1]>], - [1, 2, 1, 1, 3]>, + [1, 2, 1, 1, 3], [], -1>, // dynamic uops // // Pop, def is the 3rd operand. - InstrItinData, - InstrStage<3, [A8_LSPipe]>], [1, 1, 3]>, + InstrItinData, + InstrStage<3, [A8_LSPipe]>], + [1, 1, 3], [], -1>, // dynamic uops // // Push, def is the 3th operand. - InstrItinData, + InstrItinData, InstrStage<3, [A8_LSPipe]>, InstrStage<1, [A8_Pipe0, A8_Pipe1]>], - [1, 1, 3]>, - + [1, 1, 3], [], -1>, // dynamic uops // // iLoadi + iALUr for t2LDRpci_pic. - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>, InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [4, 1]>, @@ -175,55 +185,60 @@ def CortexA8Itineraries : ProcessorItineraries< // Integer store pipeline // // Immediate offset - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1]>, // // Register offset - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>, // // Scaled register offset, issues over 2 cycles - InstrItinData, + InstrItinData, InstrStage<2, [A8_LSPipe]>], [3, 1, 1]>, - InstrItinData, + InstrItinData, InstrStage<2, [A8_LSPipe]>], [3, 1, 1]>, // // Immediate offset with update - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [2, 3, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [2, 3, 1]>, // // Register offset with update - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>, // // Scaled register offset with update, issues over 2 cycles - InstrItinData, + InstrItinData, InstrStage<2, [A8_LSPipe]>], [3, 3, 1, 1]>, - InstrItinData, + 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]>]>, + InstrItinData, + InstrStage<2, [A8_LSPipe]>], + [], [], -1>, // dynamic uops // // Store multiple + update - InstrItinData, - InstrStage<2, [A8_LSPipe]>], [2]>, + InstrItinData, + InstrStage<2, [A8_LSPipe]>], + [2], [], -1>, // dynamic uops + // + // Preload + InstrItinData], [2, 2]>, // Branch // @@ -236,680 +251,825 @@ def CortexA8Itineraries : ProcessorItineraries< // possible. // // FP Special Register to Integer Register File Move - InstrItinData, - InstrStage<1, [A8_NLSPipe]>]>, + InstrItinData, + InstrStage<1, [A8_NLSPipe]>], [20]>, // // Single-precision FP Unary - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [7, 1]>, // // Double-precision FP Unary - InstrItinData, + InstrItinData, InstrStage<4, [A8_NPipe], 0>, InstrStage<4, [A8_NLSPipe]>], [4, 1]>, // // Single-precision FP Compare - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [1, 1]>, // // Double-precision FP Compare - InstrItinData, + InstrItinData, InstrStage<4, [A8_NPipe], 0>, InstrStage<4, [A8_NLSPipe]>], [4, 1]>, // // Single to Double FP Convert - InstrItinData, + InstrItinData, InstrStage<7, [A8_NPipe], 0>, InstrStage<7, [A8_NLSPipe]>], [7, 1]>, // // Double to Single FP Convert - InstrItinData, + InstrItinData, InstrStage<5, [A8_NPipe], 0>, InstrStage<5, [A8_NLSPipe]>], [5, 1]>, // // Single-Precision FP to Integer Convert - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [7, 1]>, // // Double-Precision FP to Integer Convert - InstrItinData, + InstrItinData, InstrStage<8, [A8_NPipe], 0>, InstrStage<8, [A8_NLSPipe]>], [8, 1]>, // // Integer to Single-Precision FP Convert - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [7, 1]>, // // Integer to Double-Precision FP Convert - InstrItinData, + InstrItinData, InstrStage<8, [A8_NPipe], 0>, InstrStage<8, [A8_NLSPipe]>], [8, 1]>, // // Single-precision FP ALU - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [7, 1, 1]>, // // Double-precision FP ALU - InstrItinData, + InstrItinData, InstrStage<9, [A8_NPipe], 0>, InstrStage<9, [A8_NLSPipe]>], [9, 1, 1]>, // // Single-precision FP Multiply - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [7, 1, 1]>, // // Double-precision FP Multiply - InstrItinData, + InstrItinData, InstrStage<11, [A8_NPipe], 0>, InstrStage<11, [A8_NLSPipe]>], [11, 1, 1]>, // // Single-precision FP MAC - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [7, 2, 1, 1]>, // // Double-precision FP MAC - InstrItinData, + 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, + InstrItinData, InstrStage<20, [A8_NPipe], 0>, InstrStage<20, [A8_NLSPipe]>], [20, 1, 1]>, // // Double-precision FP DIV - InstrItinData, + InstrItinData, InstrStage<29, [A8_NPipe], 0>, InstrStage<29, [A8_NLSPipe]>], [29, 1, 1]>, // // Single-precision FP SQRT - InstrItinData, + InstrItinData, InstrStage<19, [A8_NPipe], 0>, InstrStage<19, [A8_NLSPipe]>], [19, 1]>, // // Double-precision FP SQRT - InstrItinData, + 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]>, + InstrItinData, + InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>], [2, 1]>, // // Double-precision FP Load - InstrItinData, - InstrStage<1, [A8_NLSPipe]>, + 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]>, + InstrItinData, + InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>, - InstrStage<1, [A8_NLSPipe]>, - InstrStage<1, [A8_LSPipe]>], [1, 1, 1, 2]>, + 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]>, + InstrItinData, + InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>, - InstrStage<1, [A8_NLSPipe]>, - InstrStage<1, [A8_LSPipe]>], [2, 1, 1, 1, 2]>, + 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]>, + InstrItinData, + InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>], [1, 1]>, // // Double-precision FP Store - InstrItinData, - InstrStage<1, [A8_NLSPipe]>, + InstrItinData, + InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>], [1, 1]>, // // FP Store Multiple - InstrItinData, - InstrStage<1, [A8_NLSPipe]>, + InstrItinData, + InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>, - InstrStage<1, [A8_NLSPipe]>, - InstrStage<1, [A8_LSPipe]>], [1, 1, 1, 1]>, + 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]>, + InstrItinData, + InstrStage<1, [A8_NLSPipe], 0>, InstrStage<1, [A8_LSPipe]>, - InstrStage<1, [A8_NLSPipe]>, - InstrStage<1, [A8_LSPipe]>], [2, 1, 1, 1, 1]>, - + 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], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 1]>, // VLD1x2 - InstrItinData, - InstrStage<2, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 2, 1]>, // // VLD1x3 - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 1]>, // // VLD1x4 - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 3, 1]>, // // VLD1u - InstrItinData, - InstrStage<2, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 2, 1]>, // // VLD1x2u - InstrItinData, - InstrStage<2, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 2, 2, 1]>, // // VLD1x3u - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 2, 1]>, // // VLD1x4u - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + 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], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 2, 1]>, // // VLD2x2 - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 3, 1]>, // // VLD2ln - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [3, 3, 1, 1, 1, 1]>, // // VLD2u - InstrItinData, - InstrStage<2, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 2, 2, 1, 1, 1]>, // // VLD2x2u - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 2, 3, 3, 2, 1]>, // // VLD2lnu - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + 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], 1>, + InstrItinData, + InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [3, 3, 4, 1]>, // // VLD3ln - InstrItinData, - InstrStage<5, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<5, [A8_NLSPipe], 0>, InstrStage<5, [A8_LSPipe]>], [4, 4, 5, 1, 1, 1, 1, 2]>, // // VLD3u - InstrItinData, - InstrStage<4, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [3, 3, 4, 2, 1]>, // // VLD3lnu - InstrItinData, - InstrStage<5, [A8_NLSPipe], 1>, + 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], 1>, + InstrItinData, + InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [3, 3, 4, 4, 1]>, // // VLD4ln - InstrItinData, - InstrStage<5, [A8_NLSPipe], 1>, + 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], 1>, + InstrItinData, + InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [3, 3, 4, 4, 2, 1]>, // // VLD4lnu - InstrItinData, - InstrStage<5, [A8_NLSPipe], 1>, + 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], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [1, 1, 1]>, // // VST1x2 - InstrItinData, - InstrStage<2, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [1, 1, 1, 1]>, // // VST1x3 - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [1, 1, 1, 1, 2]>, // // VST1x4 - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [1, 1, 1, 1, 2, 2]>, // // VST1u - InstrItinData, - InstrStage<2, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 1, 1, 1, 1]>, // // VST1x2u - InstrItinData, - InstrStage<2, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1]>, // // VST1x3u - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1, 2]>, // // VST1x4u - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + 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], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [1, 1, 1, 1]>, // // VST2x2 - InstrItinData, - InstrStage<4, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [1, 1, 1, 1, 2, 2]>, // // VST2u - InstrItinData, - InstrStage<2, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1]>, // // VST2x2u - InstrItinData, - InstrStage<4, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1, 2, 2]>, // // VST2ln - InstrItinData, - InstrStage<2, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [1, 1, 1, 1]>, // // VST2lnu - InstrItinData, - InstrStage<2, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<2, [A8_NLSPipe], 0>, InstrStage<2, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1]>, // // VST3 - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [1, 1, 1, 1, 2]>, // // VST3u - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1, 2]>, // // VST3ln - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [1, 1, 1, 1, 2]>, // // VST3lnu - InstrItinData, - InstrStage<3, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<3, [A8_NLSPipe], 0>, InstrStage<3, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1, 2]>, // // VST4 - InstrItinData, - InstrStage<4, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [1, 1, 1, 1, 2, 2]>, // // VST4u - InstrItinData, - InstrStage<4, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1, 2, 2]>, // // VST4ln - InstrItinData, - InstrStage<4, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [1, 1, 1, 1, 2, 2]>, // // VST4lnu - InstrItinData, - InstrStage<4, [A8_NLSPipe], 1>, + InstrItinData, + InstrStage<4, [A8_NLSPipe], 0>, InstrStage<4, [A8_LSPipe]>], [2, 1, 1, 1, 1, 1, 2, 2]>, // // Double-register FP Unary - InstrItinData, + 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, + InstrItinData, InstrStage<2, [A8_NPipe]>], [6, 2]>, // // Double-register FP Binary - InstrItinData, + 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, + InstrItinData, InstrStage<2, [A8_NPipe]>], [6, 2, 2]>, // + // Quad-register FP VMUL + InstrItinData, + InstrStage<1, [A8_NPipe]>], [6, 2, 1]>, + // // Move - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [1, 1]>, // // Move Immediate - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [3]>, // // Double-register Permute Move - InstrItinData, + 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, + InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 1]>, // // Integer to Single-precision Move - InstrItinData, + InstrItinData, InstrStage<1, [A8_NLSPipe]>], [2, 1]>, // // Integer to Double-precision Move - InstrItinData, + InstrItinData, InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>, // // Single-precision to Integer Move - InstrItinData, + InstrItinData, InstrStage<1, [A8_NLSPipe]>], [20, 1]>, // // Double-precision to Integer Move - InstrItinData, + InstrItinData, InstrStage<1, [A8_NLSPipe]>], [20, 20, 1]>, // // Integer to Lane Move - InstrItinData, + InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>, // // Vector narrow move - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [2, 1]>, // // Double-register Permute - InstrItinData, + 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, + 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, + InstrItinData, InstrStage<1, [A8_NLSPipe]>, InstrStage<1, [A8_NPipe], 0>, InstrStage<2, [A8_NLSPipe]>], [4, 4, 1, 1]>, // // Double-register FP Multiple-Accumulate - InstrItinData, + 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, + 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, + InstrItinData, InstrStage<1, [A8_NPipe]>], [9, 2, 2]>, // // Quad-register Reciprical Step - InstrItinData, + InstrItinData, InstrStage<2, [A8_NPipe]>], [10, 2, 2]>, // // Double-register Integer Count - InstrItinData, + 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, + InstrItinData, InstrStage<2, [A8_NPipe]>], [4, 2, 2]>, // // Double-register Integer Unary - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 2]>, // // Quad-register Integer Unary - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 2]>, // // Double-register Integer Q-Unary - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 1]>, // // Quad-register Integer CountQ-Unary - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 1]>, // // Double-register Integer Binary - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [3, 2, 2]>, // // Quad-register Integer Binary - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [3, 2, 2]>, // // Double-register Integer Binary (4 cycle) - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 2, 1]>, // // Quad-register Integer Binary (4 cycle) - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 2, 1]>, // // Double-register Integer Subtract - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [3, 2, 1]>, // // Quad-register Integer Subtract - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [3, 2, 1]>, // // Double-register Integer Subtract - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 2, 1]>, // // Quad-register Integer Subtract - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 2, 1]>, // // Double-register Integer Shift - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [3, 1, 1]>, // // Quad-register Integer Shift - InstrItinData, + InstrItinData, InstrStage<2, [A8_NPipe]>], [4, 1, 1]>, // // Double-register Integer Shift (4 cycle) - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [4, 1, 1]>, // // Quad-register Integer Shift (4 cycle) - InstrItinData, + InstrItinData, InstrStage<2, [A8_NPipe]>], [5, 1, 1]>, // // Double-register Integer Pair Add Long - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [6, 3, 1]>, // // Quad-register Integer Pair Add Long - InstrItinData, + InstrItinData, InstrStage<2, [A8_NPipe]>], [7, 3, 1]>, // // Double-register Absolute Difference and Accumulate - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [6, 3, 2, 1]>, // // Quad-register Absolute Difference and Accumulate - InstrItinData, + InstrItinData, InstrStage<2, [A8_NPipe]>], [6, 3, 2, 1]>, // // Double-register Integer Multiply (.8, .16) - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>], [6, 2, 2]>, // // Double-register Integer Multiply (.32) - InstrItinData, + InstrItinData, InstrStage<2, [A8_NPipe]>], [7, 2, 1]>, // // Quad-register Integer Multiply (.8, .16) - InstrItinData, + InstrItinData, InstrStage<2, [A8_NPipe]>], [7, 2, 2]>, // // Quad-register Integer Multiply (.32) - InstrItinData, + 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, + InstrItinData, InstrStage<1, [A8_NPipe]>], [6, 3, 2, 2]>, // // Double-register Integer Multiply-Accumulate (.32) - InstrItinData, + InstrItinData, InstrStage<2, [A8_NPipe]>], [7, 3, 2, 1]>, // // Quad-register Integer Multiply-Accumulate (.8, .16) - InstrItinData, + InstrItinData, InstrStage<2, [A8_NPipe]>], [7, 3, 2, 2]>, // // Quad-register Integer Multiply-Accumulate (.32) - InstrItinData, + InstrItinData, InstrStage<1, [A8_NPipe]>, InstrStage<2, [A8_NLSPipe], 0>, InstrStage<3, [A8_NPipe]>], [9, 3, 2, 1]>, // // Double-register VEXT - InstrItinData, + InstrItinData, InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>, // // Quad-register VEXT - InstrItinData, + InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>, // // VTB - InstrItinData, + InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 2, 1]>, - InstrItinData, + InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 2, 2, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_NLSPipe]>, InstrStage<1, [A8_NPipe], 0>, InstrStage<2, [A8_NLSPipe]>], [4, 2, 2, 3, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_NLSPipe]>, InstrStage<1, [A8_NPipe], 0>, InstrStage<2, [A8_NLSPipe]>],[4, 2, 2, 3, 3, 1]>, // // VTBX - InstrItinData, + InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 1]>, - InstrItinData, + InstrItinData, InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 2, 1]>, - InstrItinData, + InstrItinData, InstrStage<1, [A8_NLSPipe]>, InstrStage<1, [A8_NPipe], 0>, InstrStage<2, [A8_NLSPipe]>],[4, 1, 2, 2, 3, 1]>, - InstrItinData, + 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; +}