From 67867135ec71263295a00db983784ed63e3426c7 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Wed, 7 Apr 2010 18:21:58 +0000 Subject: [PATCH] Add some crude approximation for neon load/store instructions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100670 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMScheduleV7.td | 56 ++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMScheduleV7.td b/lib/Target/ARM/ARMScheduleV7.td index 91c6cc3e544..f413aaf1a52 100644 --- a/lib/Target/ARM/ARMScheduleV7.td +++ b/lib/Target/ARM/ARMScheduleV7.td @@ -320,30 +320,35 @@ def CortexA8Itineraries : ProcessorItineraries<[ // Issue through integer pipeline, and execute in NEON unit. // // VLD1 + // FIXME: We don't model this instruction properly InstrItinData, InstrStage<1, [FU_Pipe0, FU_Pipe1]>, InstrStage<1, [FU_LdSt0], 0>, InstrStage<1, [FU_NLSPipe]>]>, // // VLD2 + // FIXME: We don't model this instruction properly InstrItinData, InstrStage<1, [FU_Pipe0, FU_Pipe1]>, InstrStage<1, [FU_LdSt0], 0>, InstrStage<1, [FU_NLSPipe]>], [2, 2, 1]>, // // VLD3 + // FIXME: We don't model this instruction properly InstrItinData, InstrStage<1, [FU_Pipe0, FU_Pipe1]>, InstrStage<1, [FU_LdSt0], 0>, InstrStage<1, [FU_NLSPipe]>], [2, 2, 2, 1]>, // // VLD4 + // FIXME: We don't model this instruction properly InstrItinData, InstrStage<1, [FU_Pipe0, FU_Pipe1]>, InstrStage<1, [FU_LdSt0], 0>, InstrStage<1, [FU_NLSPipe]>], [2, 2, 2, 2, 1]>, // // VST + // FIXME: We don't model this instruction properly InstrItinData, InstrStage<1, [FU_Pipe0, FU_Pipe1]>, InstrStage<1, [FU_LdSt0], 0>, @@ -801,7 +806,56 @@ def CortexA9Itineraries : ProcessorItineraries<[ InstrStage<1, [FU_NPipe]>], [1, 1, 1]>, // NEON // Issue through integer pipeline, and execute in NEON unit. - + // FIXME: Neon pipeline and LdSt unit are multiplexed. + // Add some syntactic sugar to model this! + // VLD1 + // FIXME: We don't model this instruction properly + InstrItinData, + InstrStage<7, [FU_DRegsVFP], 0, Reserved>, + InstrStage<1, [FU_Issue], 0>, + InstrStage<1, [FU_Pipe0, FU_Pipe1]>, + InstrStage<1, [FU_LdSt0], 0>, + InstrStage<1, [FU_NPipe]>]>, + // + // VLD2 + // FIXME: We don't model this instruction properly + InstrItinData, + // Extra latency cycles since wbck is 6 cycles + InstrStage<7, [FU_DRegsVFP], 0, Reserved>, + InstrStage<1, [FU_Issue], 0>, + InstrStage<1, [FU_Pipe0, FU_Pipe1]>, + InstrStage<1, [FU_LdSt0], 0>, + InstrStage<1, [FU_NPipe]>], [2, 2, 1]>, + // + // VLD3 + // FIXME: We don't model this instruction properly + InstrItinData, + // Extra latency cycles since wbck is 6 cycles + InstrStage<7, [FU_DRegsVFP], 0, Reserved>, + InstrStage<1, [FU_Issue], 0>, + InstrStage<1, [FU_Pipe0, FU_Pipe1]>, + InstrStage<1, [FU_LdSt0], 0>, + InstrStage<1, [FU_NPipe]>], [2, 2, 2, 1]>, + // + // VLD4 + // FIXME: We don't model this instruction properly + InstrItinData, + // Extra latency cycles since wbck is 6 cycles + InstrStage<7, [FU_DRegsVFP], 0, Reserved>, + InstrStage<1, [FU_Issue], 0>, + InstrStage<1, [FU_Pipe0, FU_Pipe1]>, + InstrStage<1, [FU_LdSt0], 0>, + InstrStage<1, [FU_NPipe]>], [2, 2, 2, 2, 1]>, + // + // VST + // FIXME: We don't model this instruction properly + InstrItinData, + // Extra latency cycles since wbck is 6 cycles + InstrStage<7, [FU_DRegsVFP], 0, Reserved>, + InstrStage<1, [FU_Issue], 0>, + InstrStage<1, [FU_Pipe0, FU_Pipe1]>, + InstrStage<1, [FU_LdSt0], 0>, + InstrStage<1, [FU_NPipe]>]>, // // Double-register Integer Unary InstrItinData,