summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonIICHVX.td
blob: a804c5a80d032119c7dee283f635c7f4dd9f4324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//===--- HexagonIICHVX.td -------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

def CVI_GATHER_PSEUDO : InstrItinClass;
def CVI_VA            : InstrItinClass;

class HVXItin {
  list<InstrItinData> HVXItin_list = [
    InstrItinData<CVI_VA,
      [InstrStage<1, [SLOT0,SLOT1,SLOT2,SLOT3], 0>,
       InstrStage<1, [CVI_XLANE,CVI_SHIFT, CVI_MPY0, CVI_MPY1]>],
      [9, 7, 7, 7], [HVX_FWD, HVX_FWD, HVX_FWD]>,

    // Used by Gather Pseudo Instructions which are expanded into
    // V6_vgather* and V6_vS32b_new_ai. Even though these instructions
    // use CVI_ST resource, it's not included below to avoid having more than
    // 4 InstrStages and thus changing 'MaxResTerms' to 5.
    InstrItinData <CVI_GATHER_PSEUDO,
      [InstrStage<1, [SLOT0], 0>,
       InstrStage<1, [CVI_LD], 0>, InstrStage<1, [CVI_ST], 0>,
       InstrStage<1, [CVI_MPY01, CVI_XLSHF]>]>];
}
OpenPOWER on IntegriCloud