1 ; RUN: llc -O0 < %s | FileCheck %s
3 ; For noreturn function with StackAlignment 8 (function contains call/alloc),
4 ; check that lr is saved to keep the stack aligned.
7 target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
8 target triple = "thumbv5e-none-linux-gnueabi"
10 define dso_local i32 @f() noreturn nounwind {
12 call i32 @llvm.arm.space(i32 2048, i32 undef)
13 tail call i32 @exit(i32 0)
17 declare i32 @llvm.arm.space(i32, i32)
18 declare dso_local i32 @exit(i32)