1 ; RUN: llc -mtriple thumbv7-windows -filetype asm -o - %s | FileCheck %s
3 declare arm_aapcs_vfpcc i32 @num_entries()
5 define arm_aapcs_vfpcc void @test___builtin_alloca() "no-stack-arg-probe" {
7 %array = alloca i8*, align 4
8 %call = call arm_aapcs_vfpcc i32 @num_entries()
9 %mul = mul i32 4, %call
10 %0 = alloca i8, i32 %mul
11 store i8* %0, i8** %array, align 4
15 ; CHECK: bl num_entries
16 ; CHECK: movs [[R1:r[0-9]+]], #7
17 ; CHECK: add.w [[R0:r[0-9]+]], [[R1]], [[R0]], lsl #2
18 ; CHECK: bic [[R0]], [[R0]], #7
19 ; CHECK-NOT: bl __chkstk
20 ; CHECK: sub.w [[R0]], sp, [[R0]]
21 ; CHECK: mov sp, [[R0]]