aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/ARM/fast-call-frame-restore.ll
blob: 4496af8075b372be604d2a9ca576d618197f4eee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: llc -mtriple=armv7-linux-gnueabi %s -o - | FileCheck %s

declare void @bar(ptr, i32, i32, i32, i32)

define void @foo(i32 %amt) optnone noinline {
  br label %next

next:
  %mem = alloca i8;, i32 %amt
  br label %next1

next1:
  call void @bar(ptr %mem, i32 undef, i32 undef, i32 undef, i32 undef)
; CHECK: sub sp, sp, #8
; CHECK: bl bar
; CHECK: add sp, sp, #8

  ret void
}