1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -mtriple=riscv32 -run-pass=legalizer %s -o - \ 3# RUN: | FileCheck %s 4--- | 5 6 define ptr @alloca32() { 7 entry: 8 %ptr0 = alloca i32, align 4 9 ret ptr %ptr0 10 } 11 12... 13--- 14name: alloca32 15stack: 16 - { id: 0, name: ptr0, type: default, offset: 0, size: 4, alignment: 4, 17 stack-id: default, callee-saved-register: '', callee-saved-restored: true, 18 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' } 19body: | 20 bb.1.entry: 21 ; CHECK-LABEL: name: alloca32 22 ; CHECK: [[FRAME_INDEX:%[0-9]+]]:_(p0) = G_FRAME_INDEX %stack.0.ptr0 23 ; CHECK-NEXT: $x10 = COPY [[FRAME_INDEX]](p0) 24 ; CHECK-NEXT: PseudoRET implicit $x10 25 %0:_(p0) = G_FRAME_INDEX %stack.0.ptr0 26 $x10 = COPY %0(p0) 27 PseudoRET implicit $x10 28 29... 30