xref: /llvm-project/llvm/test/CodeGen/ARM/Windows/vla-cpsr.ll (revision bed1c7f061aa12417aa081e334afdba45767b938)
1; RUN: llc -mtriple thumbv7-windows-itanium -filetype asm -o /dev/null %s -print-after=finalize-isel 2>&1 | FileCheck %s
2
3declare arm_aapcs_vfpcc void @g(ptr) local_unnamed_addr
4
5define arm_aapcs_vfpcc void @f(i32 %i) local_unnamed_addr {
6entry:
7  %vla = alloca i8, i32 %i, align 1
8  call arm_aapcs_vfpcc void @g(ptr nonnull %vla)
9  ret void
10}
11
12; CHECK: tBL 14, $noreg, &__chkstk, implicit-def $lr, implicit $sp, implicit killed $r4, implicit-def $r4, implicit-def dead $r12, implicit-def dead $cpsr
13
14