• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -O0 < %s | FileCheck %s
2
3; For noreturn function with StackAlignment 8 (function contains call/alloc),
4; check that lr is saved to keep the stack aligned.
5; CHECK: push    {lr}
6
7target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
8target triple = "thumbv5e-none-linux-gnueabi"
9
10define dso_local i32 @f() noreturn nounwind {
11entry:
12  call i32 @llvm.arm.space(i32 2048, i32 undef)
13  tail call i32 @exit(i32 0)
14  unreachable
15}
16
17declare i32 @llvm.arm.space(i32, i32)
18declare dso_local i32 @exit(i32)
19