Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=i686-pc-win32 | FileCheck %s
      2 
      3 ; Allocas with unknown size in the entry block are dynamic.
      4 define void @foo(i32 %n) {
      5   %m = alloca i32, i32 %n
      6   ret void
      7 }
      8 ; CHECK-LABEL: _foo:
      9 ; CHECK: calll __chkstk
     10 ; CHECK: retl
     11 
     12 ; Use of inalloca implies that that the alloca is not static.
     13 define void @bar() {
     14   %m = alloca inalloca i32
     15   ret void
     16 }
     17 ; CHECK-LABEL: _bar:
     18 ; CHECK: calll __chkstk
     19 ; CHECK: retl
     20