1; RUN: llc -mtriple thumbv7em-apple-unknown-eabi-macho %s -o - -O0 | FileCheck %s 2 3; CHECK: add r7, sp, #{{[1-9]+}} 4 5define void @foo1() { 6 call void asm sideeffect "", "~{r4}"() 7 call void @foo2() 8 ret void 9} 10 11declare void @foo2() 12 13; CHECK: _bar: 14; CHECK-NEXT: .cfi_startproc 15; CHECK-NEXT: @ %bb.0: 16; CHECK-NEXT: subw sp, sp, #3800 17; CHECK-NEXT: .cfi_def_cfa_offset 3800 18; CHECK-NEXT: addw sp, sp, #3800 19; CHECK-NEXT: bx lr 20; CHECK-NEXT: .cfi_endproc 21 22define void @bar() { 23 %a1 = alloca [3800 x i8], align 4 24 %p = getelementptr inbounds [3800 x i8], [3800 x i8]* %a1, i32 0, i32 0 25 ret void 26} 27