aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/Target/RISCV/RISCVGISelAddressing.rccdesc
blob: f69ab816a34d48406b42fb15ca0b55929377e55b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# SPDX-License-Identifier: GPL-3.0-or-later

selection_rules:
  -
    id: select_g_frame_index
    priority: 100
    match:
      opcode: G_FRAME_INDEX
      result_type: { kind: pointer, bits: 64 }
      operand_banks:
        - { index: 0, bank: GPR }
    apply:
      instructions:
        - opcode: ADDI
          root: true
          operands: [{ operand: 0 }, { operand: 1 }, { immediate: 0 }]