19 lines · plain
1; RUN: llc < %s -mtriple=thumbv7-apple-darwin -mcpu=cortex-a8 -arm-atomic-cfg-tidy=0 -O2 | FileCheck %s2; rdar://74939083 4; Make sure the result of the first dynamic_alloc isn't copied back to sp more5; than once. We'll deal with poor codegen later.6 7define void @t() nounwind ssp {8entry:9; CHECK-LABEL: t:10 %size = mul i32 8, 211; CHECK: sub.w r0, sp, #1612; CHECK: mov sp, r013 %vla_a = alloca i8, i32 %size, align 814; CHECK: sub.w r0, sp, #1615; CHECK: mov sp, r016 %vla_b = alloca i8, i32 %size, align 817 unreachable18}19