Home | History | Annotate | Download | only in Windows
      1 ; RUN: llc -mtriple thumbv7-windows -filetype asm -o - %s | FileCheck %s
      2 
      3 declare arm_aapcs_vfpcc i32 @num_entries()
      4 
      5 define arm_aapcs_vfpcc void @test___builtin_alloca() "no-stack-arg-probe" {
      6 entry:
      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
     12   ret void
     13 }
     14 
     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]]
     22