diff options
Diffstat (limited to 'backend/lib/Target/RISCV/RISCVGISelAddressing.rccdesc')
| -rw-r--r-- | backend/lib/Target/RISCV/RISCVGISelAddressing.rccdesc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/backend/lib/Target/RISCV/RISCVGISelAddressing.rccdesc b/backend/lib/Target/RISCV/RISCVGISelAddressing.rccdesc new file mode 100644 index 0000000..f69ab81 --- /dev/null +++ b/backend/lib/Target/RISCV/RISCVGISelAddressing.rccdesc @@ -0,0 +1,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 }] |
