1 # RUN: llc -o - %s -run-pass=prologepilog | FileCheck %s
4 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
5 target triple = "armv7--none-eabi"
7 define hidden void @_Z3foov(i32 %P0, ...) {
9 %V1 = alloca [4075 x i8], align 8
10 %tmp3 = alloca i8, i32 undef, align 8
14 declare dso_local void @_Z3barv() noreturn
18 # Check that the register scavenger does pick r5 (not preserved in prolog) for
19 # materialising a stack frame address when the function ends in throwing an
21 # CHECK: $sp = frame-setup STMDB_UPD $sp, 14, $noreg, killed $r4, killed $r10, killed $r11, killed $lr
25 - { id: 0, name: V1, type: default, offset: 0, size: 5000, alignment: 8,
26 stack-id: default, callee-saved-register: '', callee-saved-restored: true,
27 local-offset: -4080, debug-info-variable: '', debug-info-expression: '',
28 debug-info-location: '' }
29 - { id: 1, name: tmp3, type: variable-sized, offset: 0, alignment: 1,
30 stack-id: default, callee-saved-register: '', callee-saved-restored: true,
31 local-offset: -4112, debug-info-variable: '', debug-info-expression: '',
32 debug-info-location: '' }
33 - { id: 2, name: '', type: spill-slot, offset: 0, size: 4, alignment: 4,
34 stack-id: default, callee-saved-register: '', callee-saved-restored: true,
35 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
39 $r0 = MOVi 0, 14, $noreg, $noreg
40 $r1 = MOVi 0, 14, $noreg, $noreg
41 $r2 = MOVi 0, 14, $noreg, $noreg
42 $r3 = MOVi 0, 14, $noreg, $noreg
43 $r4 = MOVi 0, 14, $noreg, $noreg
44 STRi12 killed $lr, %stack.2, 0, 14, $noreg :: (store 4 into %stack.2)
45 BL @_Z3barv, csr_aapcs, implicit-def dead $lr, implicit $sp, implicit killed $r0, implicit killed $r1, implicit killed $r2, implicit killed $r3, implicit killed $r4, implicit-def $sp