brintos

brintos / llvm-project-archived public Read only

0
0
Text · 419 B · 2b5721d Raw
20 lines · plain
1; RUN: llc < %s -mtriple=i686-pc-win32 | FileCheck %s2 3; Allocas with unknown size in the entry block are dynamic.4define void @foo(i32 %n) {5  %m = alloca i32, i32 %n6  ret void7}8; CHECK-LABEL: _foo:9; CHECK: calll __chkstk10; CHECK: retl11 12; Use of inalloca implies that that the alloca is not static.13define void @bar() {14  %m = alloca inalloca i3215  ret void16}17; CHECK-LABEL: _bar:18; CHECK: pushl %eax19; CHECK: retl20