33 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=riscv32 -run-pass=instruction-select %s -o - \3# RUN: | FileCheck %s4--- |5 define ptr @frame_index() {6 entry:7 %x = alloca i32, align 48 ret ptr %x9 }10 11...12---13name: frame_index14legalized: true15regBankSelected: true16registers:17 - { id: 0, class: gprb, preferred-register: '' }18stack:19 - { id: 0, name: x, type: default, offset: 0, size: 4, alignment: 4,20 stack-id: default, callee-saved-register: '', callee-saved-restored: true,21 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }22body: |23 bb.1.entry:24 ; CHECK-LABEL: name: frame_index25 ; CHECK: [[ADDI:%[0-9]+]]:gpr = ADDI %stack.0.x, 026 ; CHECK-NEXT: $x10 = COPY [[ADDI]]27 ; CHECK-NEXT: PseudoRET implicit $x1028 %0:gprb(p0) = G_FRAME_INDEX %stack.0.x29 $x10 = COPY %0(p0)30 PseudoRET implicit $x1031 32...33