1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7 | FileCheck %s
3 ; When a function does a dynamic stack allocation, the function's stack size is
4 ; reported as UINT64_MAX.
6 ; CHECK-LABEL: .section __LLVM_STACKMAPS,__llvm_stackmaps
7 ; CHECK-NEXT: __LLVM_StackMaps:
11 ; CHECK-NEXT: .short 0
19 ; Functions and stack size
20 ; CHECK-NEXT: .quad _f
21 ; CHECK-NEXT: .quad -1
23 define void @f(i32 %nelems) {
25 %mem = alloca i32, i32 %nelems
26 call void (i64, i32, ...) @llvm.experimental.stackmap(i64 0, i32 0, ptr %mem)
30 declare void @llvm.experimental.stackmap(i64, i32, ...)