1 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin -mcpu=cortex-a8 -O3 | FileCheck %s
2 ; rdar://7493908
4 ; Make sure the result of the first dynamic_alloc isn't copied back to sp more
5 ; than once. We'll deal with poor codegen later.
7 define void @t() nounwind ssp {
8 entry:
9 ; CHECK-LABEL: t:
10 %size = mul i32 8, 2
11 ; CHECK: subs r0, #16
12 ; CHECK: mov sp, r0
13 %vla_a = alloca i8, i32 %size, align 8
14 ; CHECK: subs r0, #16
15 ; CHECK: mov sp, r0
16 %vla_b = alloca i8, i32 %size, align 8
17 unreachable
18 }