1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -run-pass=regbankselect %s -o - \
4 # RUN: llc -mtriple=riscv64 -run-pass=regbankselect %s -o - \
7 define ptr @frame_index() {
9 %x = alloca i32, align 4
18 - { id: 0, class: _, preferred-register: '' }
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: '' }
25 ; CHECK-LABEL: name: frame_index
26 ; CHECK: [[FRAME_INDEX:%[0-9]+]]:gprb(p0) = G_FRAME_INDEX %stack.0.x
27 ; CHECK-NEXT: $x10 = COPY [[FRAME_INDEX]](p0)
28 ; CHECK-NEXT: PseudoRET implicit $x10
29 %0:_(p0) = G_FRAME_INDEX %stack.0.x
31 PseudoRET implicit $x10