2014-05-24 20:50:23 +08:00
|
|
|
//==- AArch64SchedA53.td - Cortex-A53 Scheduling Definitions -*- tablegen -*-=//
|
2014-04-19 05:22:04 +08:00
|
|
|
//
|
|
|
|
// 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 A53 processors.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// ===---------------------------------------------------------------------===//
|
|
|
|
// The following definitions describe the simpler per-operand machine model.
|
|
|
|
// This works with MachineScheduler. See MCSchedModel.h for details.
|
|
|
|
|
|
|
|
// Cortex-A53 machine model for scheduling and other instruction cost heuristics.
|
|
|
|
def CortexA53Model : SchedMachineModel {
|
|
|
|
let MicroOpBufferSize = 0; // Explicitly set to zero since A53 is in-order.
|
|
|
|
let IssueWidth = 2; // 2 micro-ops are dispatched per cycle.
|
|
|
|
let MinLatency = 1 ; // OperandCycles are interpreted as MinLatency.
|
2014-05-17 01:15:33 +08:00
|
|
|
let LoadLatency = 3; // Optimistic load latency assuming bypass.
|
2014-04-19 05:22:04 +08:00
|
|
|
// This is overriden by OperandCycles if the
|
|
|
|
// Itineraries are queried instead.
|
|
|
|
let MispredictPenalty = 9; // Based on "Cortex-A53 Software Optimisation
|
|
|
|
// Specification - Instruction Timings"
|
|
|
|
// v 1.0 Spreadsheet
|
2016-03-02 05:55:35 +08:00
|
|
|
let CompleteModel = 1;
|
2014-04-19 05:22:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Define each kind of processor resource and number available.
|
|
|
|
|
2014-05-17 01:15:33 +08:00
|
|
|
// Modeling each pipeline as a ProcResource using the BufferSize = 0 since
|
2014-04-19 05:22:04 +08:00
|
|
|
// Cortex-A53 is in-order.
|
|
|
|
|
|
|
|
def A53UnitALU : ProcResource<2> { let BufferSize = 0; } // Int ALU
|
|
|
|
def A53UnitMAC : ProcResource<1> { let BufferSize = 0; } // Int MAC
|
|
|
|
def A53UnitDiv : ProcResource<1> { let BufferSize = 0; } // Int Division
|
|
|
|
def A53UnitLdSt : ProcResource<1> { let BufferSize = 0; } // Load/Store
|
|
|
|
def A53UnitB : ProcResource<1> { let BufferSize = 0; } // Branch
|
|
|
|
def A53UnitFPALU : ProcResource<1> { let BufferSize = 0; } // FP ALU
|
|
|
|
def A53UnitFPMDS : ProcResource<1> { let BufferSize = 0; } // FP Mult/Div/Sqrt
|
|
|
|
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Subtarget-specific SchedWrite types which both map the ProcResources and
|
|
|
|
// set the latency.
|
|
|
|
|
|
|
|
let SchedModel = CortexA53Model in {
|
|
|
|
|
2014-05-17 01:15:33 +08:00
|
|
|
// ALU - Despite having a full latency of 4, most of the ALU instructions can
|
|
|
|
// forward a cycle earlier and then two cycles earlier in the case of a
|
|
|
|
// shift-only instruction. These latencies will be incorrect when the
|
|
|
|
// result cannot be forwarded, but modeling isn't rocket surgery.
|
|
|
|
def : WriteRes<WriteImm, [A53UnitALU]> { let Latency = 3; }
|
|
|
|
def : WriteRes<WriteI, [A53UnitALU]> { let Latency = 3; }
|
|
|
|
def : WriteRes<WriteISReg, [A53UnitALU]> { let Latency = 3; }
|
|
|
|
def : WriteRes<WriteIEReg, [A53UnitALU]> { let Latency = 3; }
|
|
|
|
def : WriteRes<WriteIS, [A53UnitALU]> { let Latency = 2; }
|
|
|
|
def : WriteRes<WriteExtr, [A53UnitALU]> { let Latency = 3; }
|
2014-04-19 05:22:04 +08:00
|
|
|
|
|
|
|
// MAC
|
|
|
|
def : WriteRes<WriteIM32, [A53UnitMAC]> { let Latency = 4; }
|
|
|
|
def : WriteRes<WriteIM64, [A53UnitMAC]> { let Latency = 4; }
|
|
|
|
|
|
|
|
// Div
|
|
|
|
def : WriteRes<WriteID32, [A53UnitDiv]> { let Latency = 4; }
|
|
|
|
def : WriteRes<WriteID64, [A53UnitDiv]> { let Latency = 4; }
|
|
|
|
|
|
|
|
// Load
|
|
|
|
def : WriteRes<WriteLD, [A53UnitLdSt]> { let Latency = 4; }
|
|
|
|
def : WriteRes<WriteLDIdx, [A53UnitLdSt]> { let Latency = 4; }
|
|
|
|
def : WriteRes<WriteLDHi, [A53UnitLdSt]> { let Latency = 4; }
|
2014-05-17 01:15:33 +08:00
|
|
|
|
|
|
|
// Vector Load - Vector loads take 1-5 cycles to issue. For the WriteVecLd
|
|
|
|
// below, choosing the median of 3 which makes the latency 6.
|
|
|
|
// May model this more carefully in the future. The remaining
|
|
|
|
// A53WriteVLD# types represent the 1-5 cycle issues explicitly.
|
|
|
|
def : WriteRes<WriteVLD, [A53UnitLdSt]> { let Latency = 6;
|
|
|
|
let ResourceCycles = [3]; }
|
|
|
|
def A53WriteVLD1 : SchedWriteRes<[A53UnitLdSt]> { let Latency = 4; }
|
|
|
|
def A53WriteVLD2 : SchedWriteRes<[A53UnitLdSt]> { let Latency = 5;
|
|
|
|
let ResourceCycles = [2]; }
|
|
|
|
def A53WriteVLD3 : SchedWriteRes<[A53UnitLdSt]> { let Latency = 6;
|
|
|
|
let ResourceCycles = [3]; }
|
|
|
|
def A53WriteVLD4 : SchedWriteRes<[A53UnitLdSt]> { let Latency = 7;
|
|
|
|
let ResourceCycles = [4]; }
|
|
|
|
def A53WriteVLD5 : SchedWriteRes<[A53UnitLdSt]> { let Latency = 8;
|
|
|
|
let ResourceCycles = [5]; }
|
|
|
|
|
|
|
|
// Pre/Post Indexing - Performed as part of address generation which is already
|
|
|
|
// accounted for in the WriteST* latencies below
|
|
|
|
def : WriteRes<WriteAdr, []> { let Latency = 0; }
|
2014-04-19 05:22:04 +08:00
|
|
|
|
|
|
|
// Store
|
|
|
|
def : WriteRes<WriteST, [A53UnitLdSt]> { let Latency = 4; }
|
|
|
|
def : WriteRes<WriteSTP, [A53UnitLdSt]> { let Latency = 4; }
|
|
|
|
def : WriteRes<WriteSTIdx, [A53UnitLdSt]> { let Latency = 4; }
|
|
|
|
def : WriteRes<WriteSTX, [A53UnitLdSt]> { let Latency = 4; }
|
2014-05-17 01:15:33 +08:00
|
|
|
|
|
|
|
// Vector Store - Similar to vector loads, can take 1-3 cycles to issue.
|
|
|
|
def : WriteRes<WriteVST, [A53UnitLdSt]> { let Latency = 5;
|
|
|
|
let ResourceCycles = [2];}
|
|
|
|
def A53WriteVST1 : SchedWriteRes<[A53UnitLdSt]> { let Latency = 4; }
|
|
|
|
def A53WriteVST2 : SchedWriteRes<[A53UnitLdSt]> { let Latency = 5;
|
|
|
|
let ResourceCycles = [2]; }
|
|
|
|
def A53WriteVST3 : SchedWriteRes<[A53UnitLdSt]> { let Latency = 6;
|
|
|
|
let ResourceCycles = [3]; }
|
2014-04-19 05:22:04 +08:00
|
|
|
|
2016-03-02 05:20:31 +08:00
|
|
|
def : WriteRes<WriteAtomic, []> { let Unsupported = 1; }
|
|
|
|
|
2014-04-19 05:22:04 +08:00
|
|
|
// Branch
|
|
|
|
def : WriteRes<WriteBr, [A53UnitB]>;
|
|
|
|
def : WriteRes<WriteBrReg, [A53UnitB]>;
|
|
|
|
def : WriteRes<WriteSys, [A53UnitB]>;
|
|
|
|
def : WriteRes<WriteBarrier, [A53UnitB]>;
|
|
|
|
def : WriteRes<WriteHint, [A53UnitB]>;
|
|
|
|
|
|
|
|
// FP ALU
|
|
|
|
def : WriteRes<WriteF, [A53UnitFPALU]> { let Latency = 6; }
|
|
|
|
def : WriteRes<WriteFCmp, [A53UnitFPALU]> { let Latency = 6; }
|
|
|
|
def : WriteRes<WriteFCvt, [A53UnitFPALU]> { let Latency = 6; }
|
|
|
|
def : WriteRes<WriteFCopy, [A53UnitFPALU]> { let Latency = 6; }
|
|
|
|
def : WriteRes<WriteFImm, [A53UnitFPALU]> { let Latency = 6; }
|
|
|
|
def : WriteRes<WriteV, [A53UnitFPALU]> { let Latency = 6; }
|
|
|
|
|
|
|
|
// FP Mul, Div, Sqrt
|
|
|
|
def : WriteRes<WriteFMul, [A53UnitFPMDS]> { let Latency = 6; }
|
|
|
|
def : WriteRes<WriteFDiv, [A53UnitFPMDS]> { let Latency = 33;
|
|
|
|
let ResourceCycles = [29]; }
|
2014-05-17 01:15:33 +08:00
|
|
|
def A53WriteFMAC : SchedWriteRes<[A53UnitFPMDS]> { let Latency = 10; }
|
|
|
|
def A53WriteFDivSP : SchedWriteRes<[A53UnitFPMDS]> { let Latency = 18;
|
|
|
|
let ResourceCycles = [14]; }
|
|
|
|
def A53WriteFDivDP : SchedWriteRes<[A53UnitFPMDS]> { let Latency = 33;
|
|
|
|
let ResourceCycles = [29]; }
|
|
|
|
def A53WriteFSqrtSP : SchedWriteRes<[A53UnitFPMDS]> { let Latency = 17;
|
|
|
|
let ResourceCycles = [13]; }
|
|
|
|
def A53WriteFSqrtDP : SchedWriteRes<[A53UnitFPMDS]> { let Latency = 32;
|
|
|
|
let ResourceCycles = [28]; }
|
2014-04-19 05:22:04 +08:00
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Subtarget-specific SchedRead types.
|
|
|
|
|
2014-05-17 01:15:33 +08:00
|
|
|
// No forwarding for these reads.
|
2014-04-19 05:22:04 +08:00
|
|
|
def : ReadAdvance<ReadExtrHi, 0>;
|
|
|
|
def : ReadAdvance<ReadAdrBase, 0>;
|
|
|
|
def : ReadAdvance<ReadVLD, 0>;
|
|
|
|
|
2014-05-17 01:15:33 +08:00
|
|
|
// ALU - Most operands in the ALU pipes are not needed for two cycles. Shiftable
|
|
|
|
// operands are needed one cycle later if and only if they are to be
|
2014-06-01 05:26:28 +08:00
|
|
|
// shifted. Otherwise, they too are needed two cycles later. This same
|
2014-05-20 06:59:51 +08:00
|
|
|
// ReadAdvance applies to Extended registers as well, even though there is
|
2014-06-01 05:26:28 +08:00
|
|
|
// a separate SchedPredicate for them.
|
2014-05-17 01:15:33 +08:00
|
|
|
def : ReadAdvance<ReadI, 2, [WriteImm,WriteI,
|
|
|
|
WriteISReg, WriteIEReg,WriteIS,
|
|
|
|
WriteID32,WriteID64,
|
|
|
|
WriteIM32,WriteIM64]>;
|
|
|
|
def A53ReadShifted : SchedReadAdvance<1, [WriteImm,WriteI,
|
|
|
|
WriteISReg, WriteIEReg,WriteIS,
|
|
|
|
WriteID32,WriteID64,
|
|
|
|
WriteIM32,WriteIM64]>;
|
|
|
|
def A53ReadNotShifted : SchedReadAdvance<2, [WriteImm,WriteI,
|
|
|
|
WriteISReg, WriteIEReg,WriteIS,
|
|
|
|
WriteID32,WriteID64,
|
|
|
|
WriteIM32,WriteIM64]>;
|
|
|
|
def A53ReadISReg : SchedReadVariant<[
|
|
|
|
SchedVar<RegShiftedPred, [A53ReadShifted]>,
|
|
|
|
SchedVar<NoSchedPred, [A53ReadNotShifted]>]>;
|
|
|
|
def : SchedAlias<ReadISReg, A53ReadISReg>;
|
|
|
|
|
|
|
|
def A53ReadIEReg : SchedReadVariant<[
|
2014-05-20 06:59:51 +08:00
|
|
|
SchedVar<RegExtendedPred, [A53ReadShifted]>,
|
2014-05-17 01:15:33 +08:00
|
|
|
SchedVar<NoSchedPred, [A53ReadNotShifted]>]>;
|
|
|
|
def : SchedAlias<ReadIEReg, A53ReadIEReg>;
|
|
|
|
|
|
|
|
// MAC - Operands are generally needed one cycle later in the MAC pipe.
|
|
|
|
// Accumulator operands are needed two cycles later.
|
|
|
|
def : ReadAdvance<ReadIM, 1, [WriteImm,WriteI,
|
|
|
|
WriteISReg, WriteIEReg,WriteIS,
|
|
|
|
WriteID32,WriteID64,
|
|
|
|
WriteIM32,WriteIM64]>;
|
|
|
|
def : ReadAdvance<ReadIMA, 2, [WriteImm,WriteI,
|
|
|
|
WriteISReg, WriteIEReg,WriteIS,
|
|
|
|
WriteID32,WriteID64,
|
|
|
|
WriteIM32,WriteIM64]>;
|
|
|
|
|
|
|
|
// Div
|
|
|
|
def : ReadAdvance<ReadID, 1, [WriteImm,WriteI,
|
|
|
|
WriteISReg, WriteIEReg,WriteIS,
|
|
|
|
WriteID32,WriteID64,
|
|
|
|
WriteIM32,WriteIM64]>;
|
|
|
|
|
2014-04-19 05:22:04 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Subtarget-specific InstRWs.
|
|
|
|
|
2014-05-17 01:15:33 +08:00
|
|
|
//---
|
|
|
|
// Miscellaneous
|
|
|
|
//---
|
2014-04-19 05:22:04 +08:00
|
|
|
def : InstRW<[WriteI], (instrs COPY)>;
|
2014-05-17 01:15:33 +08:00
|
|
|
|
|
|
|
//---
|
|
|
|
// Vector Loads
|
|
|
|
//---
|
2014-05-20 06:59:51 +08:00
|
|
|
def : InstRW<[A53WriteVLD1], (instregex "LD1i(8|16|32|64)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD1], (instregex "LD1Rv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD1], (instregex "LD1Onev(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD2], (instregex "LD1Twov(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD3], (instregex "LD1Threev(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD4], (instregex "LD1Fourv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD1, WriteAdr], (instregex "LD1i(8|16|32|64)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVLD1, WriteAdr], (instregex "LD1Rv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVLD1, WriteAdr], (instregex "LD1Onev(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVLD2, WriteAdr], (instregex "LD1Twov(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVLD3, WriteAdr], (instregex "LD1Threev(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVLD4, WriteAdr], (instregex "LD1Fourv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
|
|
|
|
|
|
|
|
def : InstRW<[A53WriteVLD1], (instregex "LD2i(8|16|32|64)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD1], (instregex "LD2Rv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD2], (instregex "LD2Twov(8b|4h|2s)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD4], (instregex "LD2Twov(16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD1, WriteAdr], (instregex "LD2i(8|16|32|64)(_POST)?$")>;
|
|
|
|
def : InstRW<[A53WriteVLD1, WriteAdr], (instregex "LD2Rv(8b|4h|2s|1d|16b|8h|4s|2d)(_POST)?$")>;
|
|
|
|
def : InstRW<[A53WriteVLD2, WriteAdr], (instregex "LD2Twov(8b|4h|2s)(_POST)?$")>;
|
|
|
|
def : InstRW<[A53WriteVLD4, WriteAdr], (instregex "LD2Twov(16b|8h|4s|2d)(_POST)?$")>;
|
|
|
|
|
|
|
|
def : InstRW<[A53WriteVLD2], (instregex "LD3i(8|16|32|64)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD2], (instregex "LD3Rv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD4], (instregex "LD3Threev(8b|4h|2s|1d|16b|8h|4s)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD3], (instregex "LD3Threev(2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD2, WriteAdr], (instregex "LD3i(8|16|32|64)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVLD2, WriteAdr], (instregex "LD3Rv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVLD4, WriteAdr], (instregex "LD3Threev(8b|4h|2s|1d|16b|8h|4s)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVLD3, WriteAdr], (instregex "LD3Threev(2d)_POST$")>;
|
|
|
|
|
|
|
|
def : InstRW<[A53WriteVLD2], (instregex "LD4i(8|16|32|64)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD2], (instregex "LD4Rv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD5], (instregex "LD4Fourv(8b|4h|2s|1d|16b|8h|4s)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD4], (instregex "LD4Fourv(2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVLD2, WriteAdr], (instregex "LD4i(8|16|32|64)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVLD2, WriteAdr], (instregex "LD4Rv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVLD5, WriteAdr], (instregex "LD4Fourv(8b|4h|2s|1d|16b|8h|4s)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVLD4, WriteAdr], (instregex "LD4Fourv(2d)_POST$")>;
|
2014-05-17 01:15:33 +08:00
|
|
|
|
|
|
|
//---
|
|
|
|
// Vector Stores
|
|
|
|
//---
|
2014-05-20 06:59:51 +08:00
|
|
|
def : InstRW<[A53WriteVST1], (instregex "ST1i(8|16|32|64)$")>;
|
|
|
|
def : InstRW<[A53WriteVST1], (instregex "ST1Onev(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVST1], (instregex "ST1Twov(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVST2], (instregex "ST1Threev(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVST2], (instregex "ST1Fourv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVST1, WriteAdr], (instregex "ST1i(8|16|32|64)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVST1, WriteAdr], (instregex "ST1Onev(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVST1, WriteAdr], (instregex "ST1Twov(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVST2, WriteAdr], (instregex "ST1Threev(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVST2, WriteAdr], (instregex "ST1Fourv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
|
|
|
|
|
|
|
|
def : InstRW<[A53WriteVST1], (instregex "ST2i(8|16|32|64)$")>;
|
|
|
|
def : InstRW<[A53WriteVST1], (instregex "ST2Twov(8b|4h|2s)$")>;
|
|
|
|
def : InstRW<[A53WriteVST2], (instregex "ST2Twov(16b|8h|4s|2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVST1, WriteAdr], (instregex "ST2i(8|16|32|64)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVST1, WriteAdr], (instregex "ST2Twov(8b|4h|2s)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVST2, WriteAdr], (instregex "ST2Twov(16b|8h|4s|2d)_POST$")>;
|
|
|
|
|
|
|
|
def : InstRW<[A53WriteVST2], (instregex "ST3i(8|16|32|64)$")>;
|
|
|
|
def : InstRW<[A53WriteVST3], (instregex "ST3Threev(8b|4h|2s|1d|16b|8h|4s)$")>;
|
|
|
|
def : InstRW<[A53WriteVST2], (instregex "ST3Threev(2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVST2, WriteAdr], (instregex "ST3i(8|16|32|64)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVST3, WriteAdr], (instregex "ST3Threev(8b|4h|2s|1d|16b|8h|4s)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVST2, WriteAdr], (instregex "ST3Threev(2d)_POST$")>;
|
|
|
|
|
|
|
|
def : InstRW<[A53WriteVST2], (instregex "ST4i(8|16|32|64)$")>;
|
|
|
|
def : InstRW<[A53WriteVST3], (instregex "ST4Fourv(8b|4h|2s|1d|16b|8h|4s)$")>;
|
|
|
|
def : InstRW<[A53WriteVST2], (instregex "ST4Fourv(2d)$")>;
|
|
|
|
def : InstRW<[A53WriteVST2, WriteAdr], (instregex "ST4i(8|16|32|64)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVST3, WriteAdr], (instregex "ST4Fourv(8b|4h|2s|1d|16b|8h|4s)_POST$")>;
|
|
|
|
def : InstRW<[A53WriteVST2, WriteAdr], (instregex "ST4Fourv(2d)_POST$")>;
|
2014-05-17 01:15:33 +08:00
|
|
|
|
|
|
|
//---
|
|
|
|
// Floating Point MAC, DIV, SQRT
|
|
|
|
//---
|
|
|
|
def : InstRW<[A53WriteFMAC], (instregex "^FN?M(ADD|SUB).*")>;
|
|
|
|
def : InstRW<[A53WriteFMAC], (instregex "^FML(A|S).*")>;
|
|
|
|
def : InstRW<[A53WriteFDivSP], (instrs FDIVSrr)>;
|
|
|
|
def : InstRW<[A53WriteFDivDP], (instrs FDIVDrr)>;
|
|
|
|
def : InstRW<[A53WriteFDivSP], (instregex "^FDIVv.*32$")>;
|
|
|
|
def : InstRW<[A53WriteFDivDP], (instregex "^FDIVv.*64$")>;
|
|
|
|
def : InstRW<[A53WriteFSqrtSP], (instregex "^.*SQRT.*32$")>;
|
|
|
|
def : InstRW<[A53WriteFSqrtDP], (instregex "^.*SQRT.*64$")>;
|
2014-04-19 05:22:04 +08:00
|
|
|
|
|
|
|
}
|