xref: /llvm-project/llvm/test/CodeGen/ARM/fast-call-frame-restore.ll (revision bed1c7f061aa12417aa081e334afdba45767b938)
1; RUN: llc -mtriple=armv7-linux-gnueabi %s -o - | FileCheck %s
2
3declare void @bar(ptr, i32, i32, i32, i32)
4
5define void @foo(i32 %amt) optnone noinline {
6  br label %next
7
8next:
9  %mem = alloca i8;, i32 %amt
10  br label %next1
11
12next1:
13  call void @bar(ptr %mem, i32 undef, i32 undef, i32 undef, i32 undef)
14; CHECK: sub sp, sp, #8
15; CHECK: bl bar
16; CHECK: add sp, sp, #8
17
18  ret void
19}
20