2014-02-01 07:45:12 +08:00
|
|
|
; RUN: llc < %s -mtriple=i686-pc-win32 | FileCheck %s
|
|
|
|
|
|
|
|
; Allocas with unknown size in the entry block are dynamic.
|
|
|
|
define void @foo(i32 %n) {
|
|
|
|
%m = alloca i32, i32 %n
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
; CHECK-LABEL: _foo:
|
|
|
|
; CHECK: calll __chkstk
|
|
|
|
; CHECK: retl
|
|
|
|
|
|
|
|
; Use of inalloca implies that that the alloca is not static.
|
|
|
|
define void @bar() {
|
2014-03-09 14:41:58 +08:00
|
|
|
%m = alloca inalloca i32
|
2014-02-01 07:45:12 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
; CHECK-LABEL: _bar:
|
|
|
|
; CHECK: calll __chkstk
|
|
|
|
; CHECK: retl
|