1 ; RUN: llc < %s -mtriple=arm64-linux-gnu | FileCheck %s
3 ; When a function does a dynamic stack allocation, the function's stack size
4 ; is reported as UINT64_MAX.
6 ; CHECK-LABEL: .section .llvm_stackmaps
7 ; CHECK-NEXT: __LLVM_StackMaps:
11 ; CHECK-NEXT: .hword 0
19 ; Functions and stack size
20 ; CHECK-NEXT: .xword f
21 ; CHECK-NEXT: .xword -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, ...)