2 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin | FileCheck %s
4 %struct.buf = type opaque
6 declare void @bar() nounwind optsize
8 define void @foo() nounwind optsize {
14 %m.i = alloca %struct.buf*, align 4
18 br i1 undef, label %bb3, label %bb2
21 call void @bar() nounwind optsize
22 br i1 undef, label %bb, label %bb3
25 br i1 undef, label %return, label %bb
29 ; 'mov sp, r7' would have left sp in an invalid state
30 ; CHECK-NOT: mov sp, r7
31 ; CHECK-NOT: sub, sp, #4