1 ; RUN: llc < %s | FileCheck %s
2 ; Make sure we save/restore lr in the prologue of a function that's too large.
7 target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
8 target triple = "thumbv6m-unknown-unknown-eabi"
10 define dso_local i32 @a(i32 %x, ptr nocapture %p) {
12 switch i32 %x, label %return [
706 store i32 3, ptr %p, align 4
710 %retval.0 = phi i32 [ 3, %GO3 ], [ 2, %GO2 ], [ 1, %entry ]