1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -run-pass=legalizer %s -o - \
6 define ptr @alloca32() {
8 %ptr0 = alloca i32, align 4
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: '' }
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
27 PseudoRET implicit $x10