linux-packaging-mono/external/llvm/test/CodeGen/X86/windows-itanium-alloca.ll
Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

17 lines
362 B
LLVM

; RUN: llc -mtriple i686-windows-itanium -filetype asm -o - %s | FileCheck %s
target datalayout = "e-m:w-p:32:32-i64:64-f80:32-n8:16:32-S32"
target triple = "i686--windows-itanium"
declare void @external(i8*)
define dllexport void @alloca(i32 %sz) {
entry:
%vla = alloca i8, i32 %sz, align 1
call void @external(i8* %vla)
ret void
}
; CHECK: __chkstk