34 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=riscv32 -run-pass=regbankselect %s -o - \3# RUN: | FileCheck %s4# RUN: llc -mtriple=riscv64 -run-pass=regbankselect %s -o - \5# RUN: | FileCheck %s6--- |7 define ptr @frame_index() {8 entry:9 %x = alloca i32, align 410 ret ptr %x11 }12 13...14---15name: frame_index16legalized: true17registers:18 - { id: 0, class: _, preferred-register: '' }19stack:20 - { id: 0, name: x, type: default, offset: 0, size: 4, alignment: 4,21 stack-id: default, callee-saved-register: '', callee-saved-restored: true,22 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }23body: |24 bb.1.entry:25 ; CHECK-LABEL: name: frame_index26 ; CHECK: [[FRAME_INDEX:%[0-9]+]]:gprb(p0) = G_FRAME_INDEX %stack.0.x27 ; CHECK-NEXT: $x10 = COPY [[FRAME_INDEX]](p0)28 ; CHECK-NEXT: PseudoRET implicit $x1029 %0:_(p0) = G_FRAME_INDEX %stack.0.x30 $x10 = COPY %0(p0)31 PseudoRET implicit $x1032 33...34